public abstract class AbstractUserMapper extends Object implements UserMapper
UserManager
.Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
AbstractUserMapper() |
Modifier and Type | Method and 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 userObject
|
NuxeoPrincipal |
getOrCreateAndUpdateNuxeoPrincipal(Object userObject,
boolean createIfNeeded,
boolean update,
Map<String,Serializable> params)
Should retrieve (create if needed) and update the NuxeoPrincipal according to the given userObject
|
UserManager |
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
init, release, wrapNuxeoPrincipal
protected static final org.apache.commons.logging.Log log
public AbstractUserMapper()
public NuxeoPrincipal getOrCreateAndUpdateNuxeoPrincipal(Object userObject)
UserMapper
getOrCreateAndUpdateNuxeoPrincipal
in interface UserMapper
userObject
- the object representing the user in the external systempublic NuxeoPrincipal getOrCreateAndUpdateNuxeoPrincipal(Object userObject, boolean createIfNeeded, boolean update, Map<String,Serializable> params)
UserMapper
getOrCreateAndUpdateNuxeoPrincipal
in interface UserMapper
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)protected void updatePrincipal(Map<String,Serializable> attributes, DocumentModel userModel)
protected void updateProfile(CoreSession session, Map<String,Serializable> attributes, DocumentModel userProfile)
protected DocumentModel createPrincipal(Map<String,Serializable> attributes)
protected abstract void resolveAttributes(Object userObject, Map<String,Serializable> searchAttributes, Map<String,Serializable> userAttributes, Map<String,Serializable> profileAttributes)
public UserManager getUserManager()
Copyright © 2018 Nuxeo. All rights reserved.