public class UserPopulationSynchronizableContentsCollection extends AbstractSynchronizableContentsCollection
SynchronizableContentsCollection
to be synchronized with a UserPopulation
of the CMS.Modifier and Type | Field and Description |
---|---|
private static int |
__LDAP_DEFAULT_PAGE_SIZE |
protected static String |
__PARAM_EMAIL_METADATA_NAME
Name of parameter for the email metadata
|
protected static String |
__PARAM_FIRSTNAME_METADATA_NAME
Name of parameter for the firstname metadata
|
protected static String |
__PARAM_LASTNAME_METADATA_NAME
Name of parameter for the lastname metadata
|
protected static String |
__PARAM_LOGIN_METADATA_NAME
Name of parameter for the login metadata
|
protected static String |
__PARAM_MAPPING
Name of parameter holding the fields mapping
|
protected static String |
__PARAM_MAPPING_ATTRIBUTE_PREFIX
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 static String |
__PARAM_POPULATION_ID
Name of parameter holding the id of population
|
protected JSONUtils |
_jsonUtils
The JSON utils
|
protected ServiceManager |
_manager
The service manager
|
protected UserPopulationDAO |
_userPopulationDAO
The DAO for user populations
|
_contentDAO, _contentPrefix, _contentType, _contentTypeEP, _contentTypesHelper, _currentUserProvider, _hasGlobalError, _i18nUtils, _id, _initialActionId, _label, _languagesManager, _modelId, _modelParamValues, _nbError, _observationManager, _removalSync, _reportMails, _resolver, _restrictedField, _synchronizingContentOperator, _synchronizingContentOperatorEP, _validateActionId, _validateAfterImport, _workflowName, _workflowProvider
COLLECTION_ID_PROPERTY
Constructor and Description |
---|
UserPopulationSynchronizableContentsCollection() |
Modifier and Type | Method and Description |
---|---|
private Set<String> |
_getUserDirectoryKeys(Map<String,Object> field,
String prefix) |
protected void |
_internalPopulate(Logger logger)
Internal implementation of
AbstractSynchronizableContentsCollection.populate(Logger) |
String |
getEmailMetadata()
Get the metadata name for the email
|
Set<String> |
getExternalOnlyFields()
Get the path of field that are valued externally only.
|
String |
getFirstNameMetadata()
Get the metadata name for the first name
|
String |
getIdField()
Get the path of metadata holding the unique identifier
|
String |
getLastNameMetadata()
Get the metadata name for the last name
|
Set<String> |
getLocalAndExternalFields()
Get the path of tri-state fields (with local and external values)
|
String |
getLoginMetadata()
Get the metadata name for the login
|
Map<String,Map<String,List<String>>> |
getMapping()
Get the field mapping
|
String |
getPopulationId()
Get the id of the user population
|
protected void |
importContentFromLdap(LdapUserDirectory userDirectory,
Logger logger)
Populate contents from a LDAP user directory of the population
|
void |
service(ServiceManager manager) |
_getContent, _getContentName, _getIdFieldValue, _handleContent, _isHandled, _parseParameters, applyChanges, configure, createContentAction, deleteUnexistingContents, getContentPrefix, getContentType, getId, getInitialActionId, getLabel, getParameterValues, getReportMails, getRestrictedField, getSynchronizeCollectionModelId, getSynchronizingContentOperator, getValidateActionId, getWorkflowName, importContent, importContent, populate, removalSync, sendErrorMail, synchronizeContent, updateSCCProperty, validateAfterImport, validateContent
protected static final String __PARAM_POPULATION_ID
protected static final String __PARAM_LOGIN_METADATA_NAME
protected static final String __PARAM_FIRSTNAME_METADATA_NAME
protected static final String __PARAM_LASTNAME_METADATA_NAME
protected static final String __PARAM_EMAIL_METADATA_NAME
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_PREFIX
private static final int __LDAP_DEFAULT_PAGE_SIZE
protected UserPopulationDAO _userPopulationDAO
protected ServiceManager _manager
protected JSONUtils _jsonUtils
public UserPopulationSynchronizableContentsCollection()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class AbstractSynchronizableContentsCollection
ServiceException
protected void _internalPopulate(Logger logger)
AbstractSynchronizableContentsCollection
AbstractSynchronizableContentsCollection.populate(Logger)
_internalPopulate
in class AbstractSynchronizableContentsCollection
logger
- The loggerprotected void importContentFromLdap(LdapUserDirectory userDirectory, Logger logger)
userDirectory
- The LDAP user directorylogger
- The loggerpublic String getPopulationId()
public String getIdField()
SynchronizableContentsCollection
public String getLoginMetadata()
public String getFirstNameMetadata()
public String getLastNameMetadata()
public String getEmailMetadata()
public Set<String> getExternalOnlyFields()
SynchronizableContentsCollection
public Set<String> getLocalAndExternalFields()
SynchronizableContentsCollection
public Map<String,Map<String,List<String>>> getMapping()