public class LDAPSynchronizableContentsCollection extends AbstractDataSourceSynchronizableContentsCollection implements Component, Initializable
SynchronizableContentsCollection
to be synchronized with a LDAP data sourceModifier and Type | Field and Description |
---|---|
private static int |
__DEFAULT_PAGE_SIZE |
private static String |
__PARAM_LDAP_FILTER |
private static String |
__PARAM_LDAP_RELATIVE_DN |
private static String |
__PARAM_LDAP_SCOPE |
protected LDAPCollectionHelper |
_ldapHelper
The helper for LDAP connection
|
protected int |
_pageSize
The page size
|
__PARAM_DATASOURCE_ID, __PARAM_FIELD_ID, __PARAM_MAPPING, __PARAM_MAPPING_ATTRIBUTE, __PARAM_MAPPING_METADATA_REF, __PARAM_MAPPING_SYNCHRO, _columnsAndCriteria, _extFields, _jsonUtils, _mapping, _syncFields
_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, _workflowName
COLLECTION_ID_PROPERTY
Constructor and Description |
---|
LDAPSynchronizableContentsCollection() |
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.
|
protected String |
getFilter()
Get the LDAP filter
|
protected String |
getRelativeDN()
Get the LDAP relative DN
|
protected String |
getSearchScope()
Get the scope for LDAP search
|
void |
initialize() |
protected Map<String,Map<String,Object>> |
internalSearch(Map<String,Object> parameters,
int offset,
int limit,
List<Object> sort,
Logger logger)
Search values and return the result without any treatment.
|
void |
service(ServiceManager serviceManager) |
getDataSourceId, getExternalOnlyFields, getIdField, getLocalAndExternalFields, getMapping, getRemoteValues, putIdParameter
_fillContent, _getContentsToRemove, _getIdFieldValue, _handleContent, _importContent, _importOrSynchronizeContent, _importOrSynchronizeContent, _importOrSynchronizeContents, _internalPopulate, _isHandled, _synchronizeContent, additionalImportOperations, additionalSynchronizeOperations, configure, createContentAction, getContent, getTotalCount, getTransformedRemoteValues, importContent, 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, validateAfterImport
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handleRightAssignmentContext
private static final String __PARAM_LDAP_SCOPE
private static final String __PARAM_LDAP_RELATIVE_DN
private static final String __PARAM_LDAP_FILTER
private static final int __DEFAULT_PAGE_SIZE
protected int _pageSize
protected LDAPCollectionHelper _ldapHelper
public LDAPSynchronizableContentsCollection()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
service
in class AbstractDataSourceSynchronizableContentsCollection
ServiceException
public void initialize() throws Exception
initialize
in interface Initializable
Exception
protected void configureDataSource(Configuration configuration) throws ConfigurationException
AbstractStaticSynchronizableContentsCollection
configureDataSource
in class AbstractDataSourceSynchronizableContentsCollection
configuration
- Configuration to readConfigurationException
- If an error occursprotected Map<String,Map<String,Object>> internalSearch(Map<String,Object> parameters, int offset, int limit, List<Object> sort, Logger logger)
AbstractSimpleSynchronizableContentsCollection
internalSearch
in class AbstractSimpleSynchronizableContentsCollection
parameters
- Search parameters to restrict the searchoffset
- Begin of the searchlimit
- Number of resultssort
- Sort of results (ignored for LDAP results)logger
- The loggerprotected String getSearchScope()
protected String getRelativeDN()
protected void configureSearchModel()
AbstractStaticSynchronizableContentsCollection
configureSearchModel
in class AbstractDataSourceSynchronizableContentsCollection