Class SQLSynchronizableUDOrgunitCollection
- java.lang.Object
-
- org.ametys.plugins.contentio.synchronize.AbstractStaticSynchronizableContentsCollection
-
- org.ametys.plugins.contentio.synchronize.AbstractSynchronizableContentsCollection
-
- org.ametys.plugins.contentio.synchronize.AbstractSimpleSynchronizableContentsCollection
-
- org.ametys.plugins.contentio.synchronize.impl.AbstractDataSourceSynchronizableContentsCollection
-
- org.ametys.plugins.contentio.synchronize.impl.SQLSynchronizableContentsCollection
-
- org.ametys.plugins.userdirectory.synchronize.SQLSynchronizableUDOrgunitCollection
-
- All Implemented Interfaces:
SynchronizableContentsCollection
,Component
,Configurable
,Serviceable
public class SQLSynchronizableUDOrgunitCollection extends SQLSynchronizableContentsCollection
Synchronizable collection for UD Orgunits
-
-
Field Summary
-
Fields inherited from class org.ametys.plugins.contentio.synchronize.impl.SQLSynchronizableContentsCollection
_sqlCollectionDAO
-
Fields inherited from class org.ametys.plugins.contentio.synchronize.impl.AbstractDataSourceSynchronizableContentsCollection
__PARAM_DATASOURCE_ID, __PARAM_FIELD_ID, __PARAM_MAPPING, __PARAM_MAPPING_ATTRIBUTE, __PARAM_MAPPING_METADATA_REF, __PARAM_MAPPING_SYNCHRO, _columnsAndCriteria, _extFields, _jsonUtils, _mapping, _syncFields
-
Fields inherited from class org.ametys.plugins.contentio.synchronize.AbstractSimpleSynchronizableContentsCollection
_contentHelper, _synchronizingContentOperatorEP
-
Fields inherited from class org.ametys.plugins.contentio.synchronize.AbstractSynchronizableContentsCollection
_contentTypeEP, _currentUserProvider, _hasGlobalError, _i18nUtils, _nbCreatedContents, _nbDeletedContents, _nbError, _nbNotChangedContents, _nbSynchronizedContents, _observationManager, _synchroComponent, SCC_UNIQUE_ID
-
Fields inherited from class org.ametys.plugins.contentio.synchronize.AbstractStaticSynchronizableContentsCollection
_contentDAO, _contentPrefix, _contentType, _id, _initialActionId, _label, _languages, _modelId, _modelParamValues, _removalSync, _reportMails, _resolver, _restrictedField, _sccHelper, _searchModelConfiguration, _synchronizeActionId, _synchronizeExistingContentsOnly, _synchronizingContentOperator, _validateActionId, _validateAfterImport, _workflowName
-
Fields inherited from interface org.ametys.plugins.contentio.synchronize.SynchronizableContentsCollection
COLLECTION_ID_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description SQLSynchronizableUDOrgunitCollection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
_additionalOperations(ModifiableDefaultContent orgUnit, Map<String,List<Object>> remoteValues, org.slf4j.Logger logger)
Do additional operationsprotected boolean
_addNewEntries(ModifiableDefaultContent orgUnitContent, ModifiableModelAwareRepeater userRepeater, Map<Integer,ModifiableModelAwareRepeaterEntry> repeaterEntriesPosition, Map<String,String> orgUnitUsers, List<String> importedUsers, org.slf4j.Logger logger)
Add the new entriesprivate void
_applyChanges(WorkflowAwareContent content, int actionId, String comment)
protected int
_deleteContents(List<Content> contentsToRemove, org.slf4j.Logger logger)
Delete contents.protected void
_fillOrgUnitUserMap(Map<String,Map<String,String>> orgUnitUsers, String remoteOrgUnitKey, String loginColumnName, String roleColumnName, Map<String,Object> normalizedUserMap, org.slf4j.Logger logger)
Fill the orgUnitUsers mapprivate int
_getNextPositionEntry(int position, Map<Integer,ModifiableModelAwareRepeaterEntry> repeaterEntriesPosition)
protected Content
_getOrgUnitContentFromRemoteId(String remoteId, String lang, org.slf4j.Logger logger)
Get orgunit content from the remote Idprotected Map<String,Map<String,String>>
_getOrgUnitUser(org.slf4j.Logger logger)
Get orgUnit user mapprotected Map<String,Object>
_getSearchParameters(Map<String,Object> parameters, int offset, int limit, List<Object> sort, List<String> columns)
Get the parameters map for mybatis searchprotected Map<String,Object>
_getSearchUserParameters(String orgUnitColumnKey, org.slf4j.Logger logger)
Get the parameters map for user mybatis searchprotected Content
_getUserContent(String loginValue, String lang, org.slf4j.Logger logger)
Get user content from login valueprotected String
_getUserIdValue(Content userContent, org.slf4j.Logger logger)
Get the user id valueprotected List<ModifiableDefaultContent>
_importOrSynchronizeContent(String idValue, String lang, Map<String,List<Object>> remoteValues, boolean forceImport, org.slf4j.Logger logger)
Imports or synchronizes a content for a given languageList<ModifiableDefaultContent>
_internalPopulate(org.slf4j.Logger logger)
Internal implementation ofAbstractSynchronizableContentsCollection.populate(Logger)
protected boolean
_removeRelationForUser(ModifiableDefaultContent orgUnitContent, Content userContent)
Remove relation for userprotected boolean
_reorderEntries(ModifiableModelAwareRepeater userRepeater, Map<Integer,ModifiableModelAwareRepeaterEntry> repeaterEntriesPosition, org.slf4j.Logger logger)
Reorder repeater entries if neededprotected void
_setContentsRelationWithParentOrgunit(List<ModifiableDefaultContent> orgUnitContents, org.slf4j.Logger logger)
Set all orgunit parents relation for each synchronized contentprotected boolean
_setInvertRelationForUser(ModifiableDefaultContent orgUnitContent, Content userContent)
Set invert relation for userprotected void
_setRelationWithParentOrgunit(ModifiableDefaultContent parentContent, ModifiableDefaultContent childContent, org.slf4j.Logger logger)
Set the relation between the orgunit parent and its childprotected boolean
_synchronizedRepeaterEntries(ModifiableDefaultContent orgUnitContent, ModifiableModelAwareRepeater userRepeater, Map<Integer,ModifiableModelAwareRepeaterEntry> repeaterEntriesPosition, Map<String,String> orgUnitUsers, List<String> importedUsers, org.slf4j.Logger logger)
Synchronize entries already importedprotected boolean
_synchronizeUserRepeater(ModifiableDefaultContent orgUnitContent, Map<String,String> orgUnitUsers, org.slf4j.Logger logger)
True if the user repeater needs changesprotected boolean
_synchronizeUserRepeaterOperation(ModifiableDefaultContent orgUnitContent, String orgUnitIdValue, org.slf4j.Logger logger)
Synchronize user repeater for orgunit contentprotected boolean
additionalImportOperations(ModifiableDefaultContent content, Map<String,List<Object>> remoteValues, Map<String,Object> importParams, org.slf4j.Logger logger)
Add specific fields to the content.protected boolean
additionalSynchronizeOperations(ModifiableDefaultContent content, Map<String,List<Object>> remoteValues, org.slf4j.Logger logger)
Add specific fields to the content.String
getLoginUserColumnName()
Get the login user column nameString
getLoginUserMetadataName()
Get the login user metadata nameString
getOrgunitJoinColumnNameForUser()
Get the name of the orgunit join column name of the user tableString
getOrgUnitRemoteIdColumnName()
Get the orgunit remote id column nameString
getRoleUserColumnName()
Get the role user column nameString
getUserSortColumnName()
Get the user sort column nameString
getUserTableName()
Get the name of user SQL tableboolean
handleRightAssignmentContext()
Return true if aRightAssignmentContext
should be automatically generated for the contents of this SCCprotected Map<String,Map<String,Object>>
internalSearch(Map<String,Object> parameters, int offset, int limit, List<Object> sort, org.slf4j.Logger logger)
Search values and return the result without any treatment.boolean
isUserSortPrevail()
True if the SQL sort for users prevailList<ModifiableDefaultContent>
populate(org.slf4j.Logger logger)
Populates contentsvoid
service(ServiceManager smanager)
-
Methods inherited from class org.ametys.plugins.contentio.synchronize.impl.SQLSynchronizableContentsCollection
_checkIdObjectValue, _getNormalizedSearchResult, _getTotalCounParameters, _normalizeSearchResult, getTableName, getTotalCount
-
Methods inherited from class org.ametys.plugins.contentio.synchronize.impl.AbstractDataSourceSynchronizableContentsCollection
configureDataSource, configureSearchModel, getDataSourceId, getExternalOnlyFields, getIdField, getLocalAndExternalFields, getMapping, getRemoteValues, putIdParameter
-
Methods inherited from class org.ametys.plugins.contentio.synchronize.AbstractSimpleSynchronizableContentsCollection
_fillContent, _getContentsToRemove, _getIdFieldValue, _handleContent, _importContent, _importOrSynchronizeContent, _importOrSynchronizeContents, _isHandled, _synchronizeContent, additionalCommonOperations, configure, createContentAction, getContent, getTransformedRemoteValues, importContent, search, synchronizeContent, updateSyncInformations, validateContent
-
Methods inherited from class org.ametys.plugins.contentio.synchronize.AbstractSynchronizableContentsCollection
_getContentPathQuery, _getExpressionsList, _getMetadataHolder, _isParamNotEmpty, _removeEmptyParameters, _removeMetadataIfExists, _synchronizeMetadata, _updateRelation, _updateRelation, applyChanges, applyChanges, createContentAction, deleteUnexistingContents, empty, sendErrorMail, updateSCCProperty, validateContent
-
Methods inherited from class org.ametys.plugins.contentio.synchronize.AbstractStaticSynchronizableContentsCollection
_parseLanguages, _parseParameters, configureStaticParams, getContentPrefix, getContentType, getId, getInitialActionId, getLabel, getLanguages, getParameterValues, getReportMails, getRestrictedField, getSearchModelConfiguration, getSynchronizeActionId, getSynchronizeCollectionModelId, getSynchronizingContentOperator, getValidateActionId, getWorkflowName, removalSync, synchronizeExistingContentsOnly, validateAfterImport
-
-
-
-
Field Detail
-
ORGUNIT_REMOTE_ID_INTERNAL_METADATA
public static final String ORGUNIT_REMOTE_ID_INTERNAL_METADATA
The internal metadata name for orgUnit remote sql id- See Also:
- Constant Field Values
-
__PARAM_SQL_TABLE_USER
private static final String __PARAM_SQL_TABLE_USER
- See Also:
- Constant Field Values
-
__PARAM_SQL_ORGUNIT_JOIN_COLUMN_NAME
private static final String __PARAM_SQL_ORGUNIT_JOIN_COLUMN_NAME
- See Also:
- Constant Field Values
-
__PARAM_LOGIN_USER_METADATA_NAME
private static final String __PARAM_LOGIN_USER_METADATA_NAME
- See Also:
- Constant Field Values
-
__PARAM_SQL_LOGIN_USER_COLUMN_NAME
private static final String __PARAM_SQL_LOGIN_USER_COLUMN_NAME
- See Also:
- Constant Field Values
-
__PARAM_SQL_ROLE_USER_COLUMN_NAME
private static final String __PARAM_SQL_ROLE_USER_COLUMN_NAME
- See Also:
- Constant Field Values
-
__PARAM_SQL_ORGUNIT_REMOTE_ID_COLUMN_NAME
private static final String __PARAM_SQL_ORGUNIT_REMOTE_ID_COLUMN_NAME
- See Also:
- Constant Field Values
-
__PARAM_SQL_USER_SORT_COLUMN_NAME
private static final String __PARAM_SQL_USER_SORT_COLUMN_NAME
- See Also:
- Constant Field Values
-
__PARAM_SQL_USER_SORT_PREVAIL_NAME
private static final String __PARAM_SQL_USER_SORT_PREVAIL_NAME
- See Also:
- Constant Field Values
-
_orgUnitParents
protected Map<String,String> _orgUnitParents
The map which link orgunit with this parent
-
_orgUnitUsers
protected Map<String,Map<String,String>> _orgUnitUsers
The map which link orgunit with users (userId and role)
-
_orgUnitRemoteIds
protected Map<String,String> _orgUnitRemoteIds
The map which link orgunit with sql remote ids
-
_orgUnitsToApplyChanges
protected Set<WorkflowAwareContent> _orgUnitsToApplyChanges
The set of orgunits to apply changes
-
_sqlUserDAO
protected SQLUserSearchDAO _sqlUserDAO
The sql user search DAO
-
_orgChartPageHandler
protected OrganisationChartPageHandler _orgChartPageHandler
The organisation chart page handler
-
_contentWorkflowHelper
protected ContentWorkflowHelper _contentWorkflowHelper
The content workflow helper
-
_userProvider
protected CurrentUserProvider _userProvider
The current user provider
-
_outgoingReferencesExtractor
protected OutgoingReferencesExtractor _outgoingReferencesExtractor
The OutgoingReferences extractor
-
_deleteOrgUnitComponent
protected DeleteOrgUnitComponent _deleteOrgUnitComponent
The delete orgUnit component
-
-
Constructor Detail
-
SQLSynchronizableUDOrgunitCollection
public SQLSynchronizableUDOrgunitCollection()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classSQLSynchronizableContentsCollection
- Throws:
ServiceException
-
handleRightAssignmentContext
public boolean handleRightAssignmentContext()
Description copied from interface:SynchronizableContentsCollection
Return true if aRightAssignmentContext
should be automatically generated for the contents of this SCC- Returns:
- true to automatically generate a
RightAssignmentContext
. Return false if the rights of contents of this SCC are handle by its ownRightAssignmentContext
-
getUserTableName
public String getUserTableName()
Get the name of user SQL table- Returns:
- The user SQL table name
-
getOrgunitJoinColumnNameForUser
public String getOrgunitJoinColumnNameForUser()
Get the name of the orgunit join column name of the user table- Returns:
- The name of the orgunit join column name
-
getLoginUserMetadataName
public String getLoginUserMetadataName()
Get the login user metadata name- Returns:
- The login user metadata name
-
getLoginUserColumnName
public String getLoginUserColumnName()
Get the login user column name- Returns:
- The login user column name
-
getRoleUserColumnName
public String getRoleUserColumnName()
Get the role user column name- Returns:
- The role user column name
-
getUserSortColumnName
public String getUserSortColumnName()
Get the user sort column name- Returns:
- The user sort column name
-
getOrgUnitRemoteIdColumnName
public String getOrgUnitRemoteIdColumnName()
Get the orgunit remote id column name- Returns:
- The orgunit remote id column name
-
isUserSortPrevail
public boolean isUserSortPrevail()
True if the SQL sort for users prevail- Returns:
- true if the SQL sort for users prevail
-
_getSearchParameters
protected Map<String,Object> _getSearchParameters(Map<String,Object> parameters, int offset, int limit, List<Object> sort, List<String> columns)
Description copied from class:SQLSynchronizableContentsCollection
Get the parameters map for mybatis search- Overrides:
_getSearchParameters
in classSQLSynchronizableContentsCollection
- Parameters:
parameters
- the filter parameteroffset
- the offsetlimit
- the limitsort
- the sort mapcolumns
- the list of columns- Returns:
- the parameter map
-
internalSearch
protected Map<String,Map<String,Object>> internalSearch(Map<String,Object> parameters, int offset, int limit, List<Object> sort, org.slf4j.Logger logger)
Description copied from class:AbstractSimpleSynchronizableContentsCollection
Search values and return the result without any treatment.- Overrides:
internalSearch
in classSQLSynchronizableContentsCollection
- Parameters:
parameters
- Search parameters to restrict the searchoffset
- Begin of the searchlimit
- Number of resultssort
- Sort of results (ignored for LDAP results)logger
- The logger- Returns:
- Map of results without any treatment.
-
populate
public List<ModifiableDefaultContent> populate(org.slf4j.Logger logger)
Description copied from interface:SynchronizableContentsCollection
Populates contents- Specified by:
populate
in interfaceSynchronizableContentsCollection
- Overrides:
populate
in classAbstractSimpleSynchronizableContentsCollection
- Parameters:
logger
- The logger- Returns:
- Return the populated contents (imported or synchronized)
-
_internalPopulate
public List<ModifiableDefaultContent> _internalPopulate(org.slf4j.Logger logger)
Description copied from class:AbstractSynchronizableContentsCollection
Internal implementation ofAbstractSynchronizableContentsCollection.populate(Logger)
- Overrides:
_internalPopulate
in classAbstractSimpleSynchronizableContentsCollection
- Parameters:
logger
- The logger- Returns:
- The list of created/synchronized contents
-
_importOrSynchronizeContent
protected List<ModifiableDefaultContent> _importOrSynchronizeContent(String idValue, String lang, Map<String,List<Object>> remoteValues, boolean forceImport, org.slf4j.Logger logger)
Description copied from class:AbstractSimpleSynchronizableContentsCollection
Imports or synchronizes a content for a given language- Overrides:
_importOrSynchronizeContent
in classAbstractSimpleSynchronizableContentsCollection
- Parameters:
idValue
- The unique identifier of the contentlang
- The language of content to import or synchronizeremoteValues
- The remote valuesforceImport
- To force import and ignoring the synchronize existing contents only optionlogger
- The logger- Returns:
- The list of imported and synchronized contents
-
additionalSynchronizeOperations
protected boolean additionalSynchronizeOperations(ModifiableDefaultContent content, Map<String,List<Object>> remoteValues, org.slf4j.Logger logger)
Description copied from class:AbstractSimpleSynchronizableContentsCollection
Add specific fields to the content.- Overrides:
additionalSynchronizeOperations
in classAbstractSimpleSynchronizableContentsCollection
- Parameters:
content
- Content to updateremoteValues
- Values of the contentlogger
- The logger- Returns:
true
if there are changes
-
additionalImportOperations
protected boolean additionalImportOperations(ModifiableDefaultContent content, Map<String,List<Object>> remoteValues, Map<String,Object> importParams, org.slf4j.Logger logger)
Description copied from class:AbstractSimpleSynchronizableContentsCollection
Add specific fields to the content.- Overrides:
additionalImportOperations
in classAbstractSimpleSynchronizableContentsCollection
- Parameters:
content
- Content to updateremoteValues
- Values of the contentimportParams
- Import parameterslogger
- The logger- Returns:
true
if there are changes
-
_additionalOperations
protected boolean _additionalOperations(ModifiableDefaultContent orgUnit, Map<String,List<Object>> remoteValues, org.slf4j.Logger logger)
Do additional operations- Parameters:
orgUnit
- the orgUnit contentremoteValues
- the remote valueslogger
- the logger- Returns:
- true if changes
-
_getOrgUnitUser
protected Map<String,Map<String,String>> _getOrgUnitUser(org.slf4j.Logger logger)
Get orgUnit user map- Parameters:
logger
- the logger- Returns:
- the orgUnit user map
-
_fillOrgUnitUserMap
protected void _fillOrgUnitUserMap(Map<String,Map<String,String>> orgUnitUsers, String remoteOrgUnitKey, String loginColumnName, String roleColumnName, Map<String,Object> normalizedUserMap, org.slf4j.Logger logger)
Fill the orgUnitUsers map- Parameters:
orgUnitUsers
- the orgunit user mapremoteOrgUnitKey
- the remote keyloginColumnName
- the login column nameroleColumnName
- the role column namenormalizedUserMap
- the normalized search user maplogger
- the logger
-
_setContentsRelationWithParentOrgunit
protected void _setContentsRelationWithParentOrgunit(List<ModifiableDefaultContent> orgUnitContents, org.slf4j.Logger logger)
Set all orgunit parents relation for each synchronized content- Parameters:
orgUnitContents
- the synchronized contentlogger
- the logger
-
_setRelationWithParentOrgunit
protected void _setRelationWithParentOrgunit(ModifiableDefaultContent parentContent, ModifiableDefaultContent childContent, org.slf4j.Logger logger) throws com.opensymphony.workflow.WorkflowException
Set the relation between the orgunit parent and its child- Parameters:
parentContent
- the parent contentchildContent
- the child contentlogger
- the logger- Throws:
com.opensymphony.workflow.WorkflowException
- if an error occurred
-
_applyChanges
private void _applyChanges(WorkflowAwareContent content, int actionId, String comment) throws com.opensymphony.workflow.WorkflowException
- Throws:
com.opensymphony.workflow.WorkflowException
-
_synchronizeUserRepeaterOperation
protected boolean _synchronizeUserRepeaterOperation(ModifiableDefaultContent orgUnitContent, String orgUnitIdValue, org.slf4j.Logger logger) throws com.opensymphony.workflow.WorkflowException
Synchronize user repeater for orgunit content- Parameters:
orgUnitContent
- the orgunit contentorgUnitIdValue
- the orgUnit id valuelogger
- the logger- Returns:
- true if changes
- Throws:
com.opensymphony.workflow.WorkflowException
- if an error occurred
-
_synchronizeUserRepeater
protected boolean _synchronizeUserRepeater(ModifiableDefaultContent orgUnitContent, Map<String,String> orgUnitUsers, org.slf4j.Logger logger) throws com.opensymphony.workflow.WorkflowException
True if the user repeater needs changes- Parameters:
orgUnitContent
- the orgUnit contentorgUnitUsers
- the map of orgunit userslogger
- the logger- Returns:
- true if the user repeater needs changes
- Throws:
com.opensymphony.workflow.WorkflowException
- if an error occurred
-
_synchronizedRepeaterEntries
protected boolean _synchronizedRepeaterEntries(ModifiableDefaultContent orgUnitContent, ModifiableModelAwareRepeater userRepeater, Map<Integer,ModifiableModelAwareRepeaterEntry> repeaterEntriesPosition, Map<String,String> orgUnitUsers, List<String> importedUsers, org.slf4j.Logger logger) throws com.opensymphony.workflow.WorkflowException
Synchronize entries already imported- Parameters:
orgUnitContent
- the orgUnit contentuserRepeater
- the user repeaterrepeaterEntriesPosition
- the entries with the new positionsorgUnitUsers
- the orgUnit usersimportedUsers
- the user login already imported in the repeaterlogger
- the logger- Returns:
- true if new entries are added
- Throws:
com.opensymphony.workflow.WorkflowException
- if an error occurred
-
_addNewEntries
protected boolean _addNewEntries(ModifiableDefaultContent orgUnitContent, ModifiableModelAwareRepeater userRepeater, Map<Integer,ModifiableModelAwareRepeaterEntry> repeaterEntriesPosition, Map<String,String> orgUnitUsers, List<String> importedUsers, org.slf4j.Logger logger) throws com.opensymphony.workflow.WorkflowException
Add the new entries- Parameters:
orgUnitContent
- the orgUnit contentuserRepeater
- the user repeaterrepeaterEntriesPosition
- the entries with the new positionsorgUnitUsers
- the orgUnit usersimportedUsers
- the user login already imported in the repeaterlogger
- the logger- Returns:
- true if new entries are added
- Throws:
com.opensymphony.workflow.WorkflowException
- if an error occurred
-
_reorderEntries
protected boolean _reorderEntries(ModifiableModelAwareRepeater userRepeater, Map<Integer,ModifiableModelAwareRepeaterEntry> repeaterEntriesPosition, org.slf4j.Logger logger)
Reorder repeater entries if needed- Parameters:
userRepeater
- the user repeaterrepeaterEntriesPosition
- the repeater entries with the new positionslogger
- the logger- Returns:
- true if the entries are reordered
-
_getNextPositionEntry
private int _getNextPositionEntry(int position, Map<Integer,ModifiableModelAwareRepeaterEntry> repeaterEntriesPosition)
-
_setInvertRelationForUser
protected boolean _setInvertRelationForUser(ModifiableDefaultContent orgUnitContent, Content userContent) throws com.opensymphony.workflow.WorkflowException
Set invert relation for user- Parameters:
orgUnitContent
- the orgUnit contentuserContent
- the user content- Returns:
- true if changes
- Throws:
com.opensymphony.workflow.WorkflowException
- if an error occurred
-
_removeRelationForUser
protected boolean _removeRelationForUser(ModifiableDefaultContent orgUnitContent, Content userContent) throws com.opensymphony.workflow.WorkflowException
Remove relation for user- Parameters:
orgUnitContent
- the orgUnit contentuserContent
- the user content- Returns:
- true if changes
- Throws:
com.opensymphony.workflow.WorkflowException
- if an error occurred
-
_getUserContent
protected Content _getUserContent(String loginValue, String lang, org.slf4j.Logger logger)
Get user content from login value- Parameters:
loginValue
- the login valuelang
- the languagelogger
- the logger- Returns:
- the user content
-
_getOrgUnitContentFromRemoteId
protected Content _getOrgUnitContentFromRemoteId(String remoteId, String lang, org.slf4j.Logger logger)
Get orgunit content from the remote Id- Parameters:
remoteId
- the remote Idlang
- the languagelogger
- the logger- Returns:
- the orgunit content
-
_getSearchUserParameters
protected Map<String,Object> _getSearchUserParameters(String orgUnitColumnKey, org.slf4j.Logger logger)
Get the parameters map for user mybatis search- Parameters:
orgUnitColumnKey
- the column name of the orgunit keylogger
- the logger- Returns:
- the parameter map
-
_getUserIdValue
protected String _getUserIdValue(Content userContent, org.slf4j.Logger logger)
Get the user id value- Parameters:
userContent
- the user contentlogger
- the logger- Returns:
- the user id value
-
_deleteContents
protected int _deleteContents(List<Content> contentsToRemove, org.slf4j.Logger logger)
Description copied from class:AbstractSynchronizableContentsCollection
Delete contents.- Overrides:
_deleteContents
in classAbstractSynchronizableContentsCollection
- Parameters:
contentsToRemove
- List of contents to removelogger
- The logger- Returns:
- the number of deleted contents
-
-