public abstract class AbstractDataSourceSynchronizableContentsCollection extends AbstractSimpleSynchronizableContentsCollection
SynchronizableContentsCollection to be synchronized with a data source| Modifier 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, _languagesManager, _sccHelper, _synchronizingContentOperatorEP_contentDAO, _contentTypeEP, _currentUserProvider, _hasGlobalError, _i18nUtils, _nbCreatedContents, _nbDeletedContents, _nbError, _nbNotChangedContents, _nbSynchronizedContents, _observationManager, _resolver, _synchroComponent, SCC_UNIQUE_ID_contentPrefix, _contentType, _id, _initialActionId, _label, _modelId, _modelParamValues, _removalSync, _reportMails, _restrictedField, _searchModelConfiguration, _synchronizeExistingContentsOnly, _synchronizingContentOperator, _validateActionId, _validateAfterImport, _workflowNameCOLLECTION_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, 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_parseParameters, configureStaticParams, getContentPrefix, getContentType, getId, getInitialActionId, getLabel, getParameterValues, getReportMails, getRestrictedField, getSearchModelConfiguration, getSynchronizeCollectionModelId, getSynchronizingContentOperator, getValidateActionId, getWorkflowName, removalSync, synchronizeExistingContentsOnly, validateAfterImportclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleRightAssignmentContextprotected 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 Serviceableservice in class AbstractSimpleSynchronizableContentsCollectionServiceExceptionpublic String getIdField()
SynchronizableContentsCollectionpublic String getDataSourceId()
protected void configureDataSource(Configuration configuration) throws ConfigurationException
AbstractStaticSynchronizableContentsCollectionconfigureDataSource in class AbstractStaticSynchronizableContentsCollectionconfiguration - Configuration to readConfigurationException - If an error occursprotected void configureSearchModel()
AbstractStaticSynchronizableContentsCollectionconfigureSearchModel in class AbstractStaticSynchronizableContentsCollectionpublic Set<String> getExternalOnlyFields(Map<String,Object> additionalParameters)
SynchronizableContentsCollectionadditionalParameters - Additional parameterspublic Set<String> getLocalAndExternalFields(Map<String,Object> additionalParameters)
SynchronizableContentsCollectionadditionalParameters - Additional parameterspublic Map<String,List<String>> getMapping()
protected Map<String,Object> putIdParameter(String idValue)
AbstractSimpleSynchronizableContentsCollectionputIdParameter in class AbstractSimpleSynchronizableContentsCollectionidValue - Value to searchprotected Map<String,Map<String,List<Object>>> getRemoteValues(Map<String,Object> parameters, Logger logger)
AbstractSimpleSynchronizableContentsCollectiongetRemoteValues in class AbstractSimpleSynchronizableContentsCollectionparameters - Search parameters to restrict the searchlogger - The logger