Package org.nuxeo.usermapper.extension
Class AbstractUserMapper
- java.lang.Object
-
- org.nuxeo.usermapper.extension.AbstractUserMapper
-
- All Implemented Interfaces:
UserMapper
- Direct Known Subclasses:
GroovyUserMapper
,NashornUserMapper
public abstract class AbstractUserMapper extends Object implements UserMapper
Provide default implementation for interaction with theUserManager
.- Since:
- 7.4
- Author:
- tiry
-
-
Constructor Summary
Constructors Constructor Description AbstractUserMapper()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected DocumentModel
createPrincipal(Map<String,Serializable> attributes)
NuxeoPrincipal
getOrCreateAndUpdateNuxeoPrincipal(Object userObject)
Should retrieve (create if needed) and update the NuxeoPrincipal according to the given userObjectNuxeoPrincipal
getOrCreateAndUpdateNuxeoPrincipal(Object userObject, boolean createIfNeeded, boolean update, Map<String,Serializable> params)
Should retrieve (create if needed) and update the NuxeoPrincipal according to the given userObjectUserManager
getUserManager()
protected 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
-
-
-
-
Field Detail
-
log
protected static final Log log
-
-
Method Detail
-
getOrCreateAndUpdateNuxeoPrincipal
public NuxeoPrincipal getOrCreateAndUpdateNuxeoPrincipal(Object userObject)
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
protected void updatePrincipal(Map<String,Serializable> attributes, DocumentModel userModel)
-
updateProfile
protected void updateProfile(CoreSession session, Map<String,Serializable> attributes, DocumentModel userProfile)
-
createPrincipal
protected DocumentModel createPrincipal(Map<String,Serializable> attributes)
-
resolveAttributes
protected abstract void resolveAttributes(Object userObject, Map<String,Serializable> searchAttributes, Map<String,Serializable> userAttributes, Map<String,Serializable> profileAttributes)
-
getUserManager
public UserManager getUserManager()
-
-