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 DocumentModelcreatePrincipal(Map<String,Serializable> attributes)NuxeoPrincipalgetOrCreateAndUpdateNuxeoPrincipal(Object userObject)Should retrieve (create if needed) and update the NuxeoPrincipal according to the given userObjectNuxeoPrincipalgetOrCreateAndUpdateNuxeoPrincipal(Object userObject, boolean createIfNeeded, boolean update, Map<String,Serializable> params)Should retrieve (create if needed) and update the NuxeoPrincipal according to the given userObjectUserManagergetUserManager()protected abstract voidresolveAttributes(Object userObject, Map<String,Serializable> searchAttributes, Map<String,Serializable> userAttributes, Map<String,Serializable> profileAttributes)protected voidupdatePrincipal(Map<String,Serializable> attributes, DocumentModel userModel)protected voidupdateProfile(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 Detail
-
AbstractUserMapper
public AbstractUserMapper()
-
-
Method Detail
-
getOrCreateAndUpdateNuxeoPrincipal
public NuxeoPrincipal getOrCreateAndUpdateNuxeoPrincipal(Object userObject)
Description copied from interface:UserMapperShould retrieve (create if needed) and update the NuxeoPrincipal according to the given userObject- Specified by:
getOrCreateAndUpdateNuxeoPrincipalin 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:UserMapperShould retrieve (create if needed) and update the NuxeoPrincipal according to the given userObject- Specified by:
getOrCreateAndUpdateNuxeoPrincipalin 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()
-
-