public class SQLSynchronizableUsersCollection extends SQLSynchronizableContentsCollection
Modifier and Type | Field and Description |
---|---|
private static String |
__PARAM_POPULATION_ID |
private static String |
__PARAM_SQL_TABLE_LOGIN |
protected DeleteUserComponent |
_deleteUserComponent
The delete user component
|
protected UserManager |
_userManager
The user manager
|
protected UserSCCHelper |
_userSCCHelper
The user SCC helper
|
_sqlCollectionDAO
__PARAM_DATASOURCE_ID, __PARAM_FIELD_ID, __PARAM_MAPPING, __PARAM_MAPPING_ATTRIBUTE, __PARAM_MAPPING_METADATA_REF, __PARAM_MAPPING_SYNCHRO, _columnsAndCriteria, _extFields, _jsonUtils, _mapping, _syncFields
_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 |
---|
SQLSynchronizableUsersCollection() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
_checkIdObjectValue(String remoteKey,
Object idObjectValue,
Logger logger)
Check if the id object value is correct
|
protected boolean |
_fillContent(Map<String,List<Object>> remoteValues,
ModifiableDefaultContent content,
boolean create,
Logger logger)
Fill the content with remote values.
|
protected Map<String,Object> |
_getSearchParameters(Map<String,Object> parameters,
int offset,
int limit,
List<Object> sort,
List<String> columns)
Get the parameters map for mybatis search
|
protected void |
deleteUnexistingContents(Logger logger)
Delete contents created by a previous synchronization which does not exist anymore in remote source
|
String |
getIdField()
Get the path of metadata holding the unique identifier
|
String |
getLoginSQLColumnName()
Get the login column name of user SQL table
|
Map<String,List<String>> |
getMapping()
Get the field mapping
|
String |
getPopulationId()
Get population Id
|
void |
service(ServiceManager smanager) |
_getNormalizedSearchResult, _getTotalCounParameters, _normalizeSearchResult, getTableName, getTotalCount, internalSearch
configureDataSource, configureSearchModel, getDataSourceId, getExternalOnlyFields, getLocalAndExternalFields, getRemoteValues, putIdParameter
_getContentsToRemove, _getIdFieldValue, _handleContent, _importContent, _importOrSynchronizeContent, _importOrSynchronizeContent, _importOrSynchronizeContents, _internalPopulate, _isHandled, _synchronizeContent, additionalCommonOperations, additionalImportOperations, additionalSynchronizeOperations, configure, createContentAction, getContent, getTransformedRemoteValues, importContent, populate, search, synchronizeContent, updateSyncInformations, validateContent
_getContentPathQuery, _getExpressionsList, _getMetadataHolder, _isParamNotEmpty, _removeEmptyParameters, _removeMetadataIfExists, _synchronizeMetadata, _updateRelation, _updateRelation, applyChanges, applyChanges, createContentAction, 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
private static final String __PARAM_SQL_TABLE_LOGIN
private static final String __PARAM_POPULATION_ID
protected UserSCCHelper _userSCCHelper
protected UserManager _userManager
protected DeleteUserComponent _deleteUserComponent
public SQLSynchronizableUsersCollection()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class SQLSynchronizableContentsCollection
ServiceException
public String getIdField()
SynchronizableContentsCollection
getIdField
in interface SynchronizableContentsCollection
getIdField
in class AbstractDataSourceSynchronizableContentsCollection
public Map<String,List<String>> getMapping()
AbstractDataSourceSynchronizableContentsCollection
getMapping
in class AbstractDataSourceSynchronizableContentsCollection
public String getLoginSQLColumnName()
public String getPopulationId()
protected Map<String,Object> _getSearchParameters(Map<String,Object> parameters, int offset, int limit, List<Object> sort, List<String> columns)
SQLSynchronizableContentsCollection
_getSearchParameters
in class SQLSynchronizableContentsCollection
parameters
- the filter parameteroffset
- the offsetlimit
- the limitsort
- the sort mapcolumns
- the list of columnsprotected boolean _fillContent(Map<String,List<Object>> remoteValues, ModifiableDefaultContent content, boolean create, Logger logger)
AbstractSimpleSynchronizableContentsCollection
_fillContent
in class AbstractSimpleSynchronizableContentsCollection
remoteValues
- The remote valuescontent
- The content to synchronizecreate
- true
if content is creating, false if it is updatedlogger
- The loggertrue
if changes were madeprotected boolean _checkIdObjectValue(String remoteKey, Object idObjectValue, Logger logger)
SQLSynchronizableContentsCollection
_checkIdObjectValue
in class SQLSynchronizableContentsCollection
remoteKey
- the remove keyidObjectValue
- the id object valuelogger
- the loggerprotected void deleteUnexistingContents(Logger logger)
AbstractSynchronizableContentsCollection
deleteUnexistingContents
in class AbstractSynchronizableContentsCollection
logger
- The logger