public abstract class AbstractDataSourceSynchronizableContentsCollection extends AbstractSimpleSynchronizableContentsCollection
SynchronizableContentsCollection
to be synchronized with a data sourceModifier and Type | Field and Description |
---|---|
protected static String |
__PARAM_DATASOURCE_ID
Name of parameter holding the data source id
|
protected static String |
__PARAM_FIELD_ID
Name of parameter holding the data source id
|
protected static String |
__PARAM_MAPPING
Name of parameter holding the fields mapping
|
protected static String |
__PARAM_MAPPING_ATTRIBUTE
Name of parameter into mapping holding the remote attribute
|
protected static String |
__PARAM_MAPPING_METADATA_REF
Name of parameter into mapping holding the path of metadata
|
protected static String |
__PARAM_MAPPING_SYNCHRO
Name of parameter into mapping holding the synchronized property
|
protected Set<String> |
_columnsAndCriteria
Columns and criteria for search
|
protected Set<String> |
_extFields
External fields
|
protected JSONUtils |
_jsonUtils
The JSON Utils
|
protected Map<String,List<String>> |
_mapping
Mapping of the metadata with source data
|
protected Set<String> |
_syncFields
Synchronized fields
|
_contentHelper, _sccHelper, _synchronizingContentOperatorEP
_contentDAO, _contentTypeEP, _currentUserProvider, _hasGlobalError, _i18nUtils, _nbCreatedContents, _nbDeletedContents, _nbError, _nbNotChangedContents, _nbSynchronizedContents, _observationManager, _resolver, _synchroComponent, SCC_UNIQUE_ID
_contentPrefix, _contentType, _id, _initialActionId, _label, _languages, _modelId, _modelParamValues, _removalSync, _reportMails, _restrictedField, _searchModelConfiguration, _synchronizeActionId, _synchronizeExistingContentsOnly, _synchronizingContentOperator, _validateActionId, _validateAfterImport, _workflowName
COLLECTION_ID_PROPERTY
Constructor and Description |
---|
AbstractDataSourceSynchronizableContentsCollection() |
Modifier and Type | Method and Description |
---|---|
protected void |
configureDataSource(Configuration configuration)
Configure the data source parameters.
|
protected void |
configureSearchModel()
Configure the search model used by SCCSearchTool.
|
String |
getDataSourceId()
Get the id of data source
|
Set<String> |
getExternalOnlyFields(Map<String,Object> additionalParameters)
Get the path of field that are valued externally only.
|
String |
getIdField()
Get the path of metadata holding the unique identifier
|
Set<String> |
getLocalAndExternalFields(Map<String,Object> additionalParameters)
Get the path of tri-state fields (with local and external values)
|
Map<String,List<String>> |
getMapping()
Get the field mapping
|
protected Map<String,Map<String,List<Object>>> |
getRemoteValues(Map<String,Object> parameters,
Logger logger)
Search values and return the result organized by metadata
|
protected Map<String,Object> |
putIdParameter(String idValue)
Set search parameters for the ID value.
|
void |
service(ServiceManager smanager) |
_fillContent, _getContentsToRemove, _getIdFieldValue, _handleContent, _importContent, _importOrSynchronizeContent, _importOrSynchronizeContent, _importOrSynchronizeContents, _internalPopulate, _isHandled, _synchronizeContent, additionalCommonOperations, additionalImportOperations, additionalSynchronizeOperations, configure, createContentAction, getContent, getTotalCount, getTransformedRemoteValues, importContent, internalSearch, populate, search, synchronizeContent, updateSyncInformations, validateContent
_getContentPathQuery, _getExpressionsList, _getMetadataHolder, _isParamNotEmpty, _removeEmptyParameters, _removeMetadataIfExists, _synchronizeMetadata, _updateRelation, _updateRelation, applyChanges, applyChanges, createContentAction, deleteUnexistingContents, sendErrorMail, updateSCCProperty, validateContent
_parseLanguages, _parseParameters, configureStaticParams, getContentPrefix, getContentType, getId, getInitialActionId, getLabel, getLanguages, getParameterValues, getReportMails, getRestrictedField, getSearchModelConfiguration, getSynchronizeActionId, getSynchronizeCollectionModelId, getSynchronizingContentOperator, getValidateActionId, getWorkflowName, removalSync, synchronizeExistingContentsOnly, validateAfterImport
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handleRightAssignmentContext
protected static final String __PARAM_DATASOURCE_ID
protected static final String __PARAM_FIELD_ID
protected static final String __PARAM_MAPPING
protected static final String __PARAM_MAPPING_SYNCHRO
protected static final String __PARAM_MAPPING_METADATA_REF
protected static final String __PARAM_MAPPING_ATTRIBUTE
protected JSONUtils _jsonUtils
protected Set<String> _columnsAndCriteria
protected Set<String> _syncFields
protected Set<String> _extFields
public AbstractDataSourceSynchronizableContentsCollection()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class AbstractSimpleSynchronizableContentsCollection
ServiceException
public String getIdField()
SynchronizableContentsCollection
public String getDataSourceId()
protected void configureDataSource(Configuration configuration) throws ConfigurationException
AbstractStaticSynchronizableContentsCollection
configureDataSource
in class AbstractStaticSynchronizableContentsCollection
configuration
- Configuration to readConfigurationException
- If an error occursprotected void configureSearchModel()
AbstractStaticSynchronizableContentsCollection
configureSearchModel
in class AbstractStaticSynchronizableContentsCollection
public Set<String> getExternalOnlyFields(Map<String,Object> additionalParameters)
SynchronizableContentsCollection
additionalParameters
- Additional parameterspublic Set<String> getLocalAndExternalFields(Map<String,Object> additionalParameters)
SynchronizableContentsCollection
additionalParameters
- Additional parameterspublic Map<String,List<String>> getMapping()
protected Map<String,Object> putIdParameter(String idValue)
AbstractSimpleSynchronizableContentsCollection
putIdParameter
in class AbstractSimpleSynchronizableContentsCollection
idValue
- Value to searchprotected Map<String,Map<String,List<Object>>> getRemoteValues(Map<String,Object> parameters, Logger logger)
AbstractSimpleSynchronizableContentsCollection
getRemoteValues
in class AbstractSimpleSynchronizableContentsCollection
parameters
- Search parameters to restrict the searchlogger
- The logger