Class UserSCCHelper
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.plugins.userdirectory.synchronize.UserSCCHelper
-
- All Implemented Interfaces:
LogEnabled
,Component
public class UserSCCHelper extends AbstractLogEnabled implements Component
Helper for user directory.
-
-
Field Summary
Fields Modifier and Type Field Description static String
ROLE
The avalon role.static String
USER_UNIQUE_ID_METADATA_NAME
The unique id metadata name for content type userstatic String
USERS_LOGIN_METADATA_NAME
The login metadata namestatic String
USERS_METADATA_NAME
The user metadata namestatic String
USERS_POPULATION_METADATA_NAME
The populationId metadata name
-
Constructor Summary
Constructors Constructor Description UserSCCHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
synchronizeUserMetadata(String newLogin, String newPopulation, ModifiableDefaultContent content, org.slf4j.Logger logger)
Synchronize user metadata-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Field Detail
-
USER_UNIQUE_ID_METADATA_NAME
public static final String USER_UNIQUE_ID_METADATA_NAME
The unique id metadata name for content type user- See Also:
- Constant Field Values
-
USERS_METADATA_NAME
public static final String USERS_METADATA_NAME
The user metadata name- See Also:
- Constant Field Values
-
USERS_LOGIN_METADATA_NAME
public static final String USERS_LOGIN_METADATA_NAME
The login metadata name- See Also:
- Constant Field Values
-
USERS_POPULATION_METADATA_NAME
public static final String USERS_POPULATION_METADATA_NAME
The populationId metadata name- See Also:
- Constant Field Values
-
-
Constructor Detail
-
UserSCCHelper
public UserSCCHelper()
-
-
Method Detail
-
synchronizeUserMetadata
public boolean synchronizeUserMetadata(String newLogin, String newPopulation, ModifiableDefaultContent content, org.slf4j.Logger logger)
Synchronize user metadata- Parameters:
newLogin
- the new loginnewPopulation
- the new populationcontent
- the contentlogger
- the logger- Returns:
- true if changes are made
-
-