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
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected DocumentModelcreatePrincipal(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 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, waitMethods inherited from interface org.nuxeo.usermapper.extension.UserMapper
init, release, wrapNuxeoPrincipal 
- 
Constructor Details
- 
AbstractUserMapper
public AbstractUserMapper() 
 - 
 - 
Method Details
- 
getOrCreateAndUpdateNuxeoPrincipal
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
 - 
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
 
 -