public abstract class AbstractStaticSynchronizableContentsCollection extends Object implements SynchronizableContentsCollection, Configurable
AbstractSynchronizableContentsCollection
Modifier and Type | Field and Description |
---|---|
protected String |
_contentPrefix
The prefix of the contents
|
protected String |
_contentType
The handled content type
|
protected String |
_id
The id
|
protected int |
_initialActionId
The id of the initial action of the workflow
|
protected I18nizableText |
_label
The label
|
protected List<String> |
_languages
The handled languages
|
protected String |
_modelId
The id of controller
|
protected Map<String,Object> |
_modelParamValues
The untyped values of controller's parameters
|
protected boolean |
_removalSync
True if removal sync
|
protected String |
_reportMails
The report mails
|
protected String |
_restrictedField
The path to the metadata holding the 'restricted' property
|
protected SCCSearchModelConfiguration |
_searchModelConfiguration
Search model configuration for search tool
|
protected int |
_synchronizeActionId
The id of the synchronize action of the workflow
|
protected boolean |
_synchronizeExistingContentsOnly
The id of the content operator to use
|
protected String |
_synchronizingContentOperator
The id of the content operator to use
|
protected int |
_validateActionId
The id of the validate action of the workflow
|
protected boolean |
_validateAfterImport
True to validate contents after import
|
protected String |
_workflowName
The name of the workflow
|
COLLECTION_ID_PROPERTY
Constructor and Description |
---|
AbstractStaticSynchronizableContentsCollection() |
Modifier and Type | Method and Description |
---|---|
protected List<String> |
_parseLanguages(Configuration configuration)
Parse languages configuration
|
protected Map<String,Object> |
_parseParameters(Configuration configuration)
Parse parameters' values
|
void |
configure(Configuration configuration) |
protected abstract void |
configureDataSource(Configuration configuration)
Configure the data source parameters.
|
protected abstract void |
configureSearchModel()
Configure the search model used by SCCSearchTool.
|
protected void |
configureStaticParams(Configuration configuration)
Called in
configure(Configuration) for first configurations needed. |
String |
getContentPrefix()
Get the prefix to use for the creation of contents
|
String |
getContentType()
Get the type of content handled by this collection
|
String |
getId()
Get the id of synchronizable collection.
|
int |
getInitialActionId()
Get the id of the initial action of the workflow
|
I18nizableText |
getLabel()
Get the label of synchronizable collection
|
List<String> |
getLanguages()
Get the languages handled by this collection
|
Map<String,Object> |
getParameterValues()
Get the untyped values of parameters for controller
|
String |
getReportMails()
If an exception occurs during synchronization, an error report mail will be sent to those email addresses (separated by new lines)
|
String |
getRestrictedField()
Get the path of boolean metadata for restricted content.
|
SCCSearchModelConfiguration |
getSearchModelConfiguration()
Get the search UI model for search tool (columns, criterias, url for buttons, etc.)
|
int |
getSynchronizeActionId()
Get the id of the synchronize action of the workflow
|
String |
getSynchronizeCollectionModelId()
Get the id of controller responsible of synchronization of this collection
|
String |
getSynchronizingContentOperator()
Gets the id of the
SynchronizingContentOperator extension to use during synchronization |
int |
getValidateActionId()
Get the id of the validate action of the workflow
|
String |
getWorkflowName()
Get the name of the workflow to use for the synchronized contents
|
boolean |
removalSync()
When returns true, a content created by a previous synchro will be removed if it does not exist anymore during the current synchro.
|
boolean |
synchronizeExistingContentsOnly()
True to synchronize only existing contents
|
boolean |
validateAfterImport()
True to validate the contents after import
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContent, getExternalOnlyFields, getIdField, getLocalAndExternalFields, getTotalCount, handleRightAssignmentContext, importContent, populate, search, synchronizeContent, updateSyncInformations
protected I18nizableText _label
protected String _restrictedField
protected String _contentType
protected List<String> _languages
protected Map<String,Object> _modelParamValues
protected boolean _removalSync
protected String _workflowName
protected int _initialActionId
protected int _synchronizeActionId
protected int _validateActionId
protected String _contentPrefix
protected boolean _validateAfterImport
protected String _reportMails
protected String _synchronizingContentOperator
protected boolean _synchronizeExistingContentsOnly
protected SCCSearchModelConfiguration _searchModelConfiguration
public AbstractStaticSynchronizableContentsCollection()
public void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
ConfigurationException
protected void configureStaticParams(Configuration configuration) throws ConfigurationException
configure(Configuration)
for first configurations needed.configuration
- Configuration to readConfigurationException
- If an error occursprotected abstract void configureDataSource(Configuration configuration) throws ConfigurationException
configuration
- Configuration to readConfigurationException
- If an error occursprotected abstract void configureSearchModel()
public String getId()
SynchronizableContentsCollection
getId
in interface SynchronizableContentsCollection
public I18nizableText getLabel()
SynchronizableContentsCollection
getLabel
in interface SynchronizableContentsCollection
public String getContentType()
SynchronizableContentsCollection
getContentType
in interface SynchronizableContentsCollection
public List<String> getLanguages()
SynchronizableContentsCollection
getLanguages
in interface SynchronizableContentsCollection
public String getRestrictedField()
SynchronizableContentsCollection
getRestrictedField
in interface SynchronizableContentsCollection
public String getSynchronizeCollectionModelId()
SynchronizableContentsCollection
getSynchronizeCollectionModelId
in interface SynchronizableContentsCollection
public Map<String,Object> getParameterValues()
SynchronizableContentsCollection
getParameterValues
in interface SynchronizableContentsCollection
public boolean removalSync()
SynchronizableContentsCollection
removalSync
in interface SynchronizableContentsCollection
public String getWorkflowName()
SynchronizableContentsCollection
getWorkflowName
in interface SynchronizableContentsCollection
public int getInitialActionId()
SynchronizableContentsCollection
getInitialActionId
in interface SynchronizableContentsCollection
public int getSynchronizeActionId()
SynchronizableContentsCollection
getSynchronizeActionId
in interface SynchronizableContentsCollection
public int getValidateActionId()
SynchronizableContentsCollection
getValidateActionId
in interface SynchronizableContentsCollection
public String getContentPrefix()
SynchronizableContentsCollection
getContentPrefix
in interface SynchronizableContentsCollection
public boolean validateAfterImport()
SynchronizableContentsCollection
validateAfterImport
in interface SynchronizableContentsCollection
public String getReportMails()
SynchronizableContentsCollection
getReportMails
in interface SynchronizableContentsCollection
public String getSynchronizingContentOperator()
SynchronizableContentsCollection
SynchronizingContentOperator
extension to use during synchronizationgetSynchronizingContentOperator
in interface SynchronizableContentsCollection
SynchronizingContentOperator
extension to use during synchronizationpublic boolean synchronizeExistingContentsOnly()
SynchronizableContentsCollection
synchronizeExistingContentsOnly
in interface SynchronizableContentsCollection
public SCCSearchModelConfiguration getSearchModelConfiguration()
SynchronizableContentsCollection
getSearchModelConfiguration
in interface SynchronizableContentsCollection
SCCSearchModelConfiguration
protected Map<String,Object> _parseParameters(Configuration configuration) throws ConfigurationException
configuration
- The root configurationConfigurationException
- if an error occurredprotected List<String> _parseLanguages(Configuration configuration) throws ConfigurationException
configuration
- the configurationConfigurationException
- if an error occurred