Package org.nuxeo.usermapper.extension
Class AbstractUserMapper
java.lang.Object
org.nuxeo.usermapper.extension.AbstractUserMapper
- All Implemented Interfaces:
UserMapper
- Direct Known Subclasses:
GroovyUserMapper
,NashornUserMapper
Provide default implementation for interaction with the
UserManager
.- Since:
- 7.4
- Author:
- tiry
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected DocumentModel
createPrincipal
(Map<String, Serializable> attributes) getOrCreateAndUpdateNuxeoPrincipal
(Object userObject) Should retrieve (create if needed) and update the NuxeoPrincipal according to the given userObjectgetOrCreateAndUpdateNuxeoPrincipal
(Object userObject, boolean createIfNeeded, boolean update, Map<String, Serializable> params) Should retrieve (create if needed) and update the NuxeoPrincipal according to the given userObjectprotected abstract void
resolveAttributes
(Object userObject, Map<String, Serializable> searchAttributes, Map<String, Serializable> userAttributes, Map<String, Serializable> profileAttributes) protected void
updatePrincipal
(Map<String, Serializable> attributes, DocumentModel userModel) protected void
updateProfile
(CoreSession session, Map<String, Serializable> attributes, DocumentModel userProfile) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.nuxeo.usermapper.extension.UserMapper
init, release, wrapNuxeoPrincipal
-
Constructor Details
-
AbstractUserMapper
public AbstractUserMapper()
-
-
Method Details
-
getOrCreateAndUpdateNuxeoPrincipal
Description copied from interface:UserMapper
Should retrieve (create if needed) and update the NuxeoPrincipal according to the given userObject- Specified by:
getOrCreateAndUpdateNuxeoPrincipal
in interfaceUserMapper
- Parameters:
userObject
- the object representing the user in the external system
-
getOrCreateAndUpdateNuxeoPrincipal
public NuxeoPrincipal getOrCreateAndUpdateNuxeoPrincipal(Object userObject, boolean createIfNeeded, boolean update, Map<String, Serializable> params) Description copied from interface:UserMapper
Should retrieve (create if needed) and update the NuxeoPrincipal according to the given userObject- Specified by:
getOrCreateAndUpdateNuxeoPrincipal
in interfaceUserMapper
- Parameters:
userObject
- the object representing the user in the external systemcreateIfNeeded
- flag to allow creation (default is true)update
- flag to run update (default is true)
-
updatePrincipal
-
updateProfile
protected void updateProfile(CoreSession session, Map<String, Serializable> attributes, DocumentModel userProfile) -
createPrincipal
-
resolveAttributes
protected abstract void resolveAttributes(Object userObject, Map<String, Serializable> searchAttributes, Map<String, Serializable> userAttributes, Map<String, Serializable> profileAttributes) -
getUserManager
-