Package org.nuxeo.usermapper.extension
Interface UserMapper
-
- All Known Implementing Classes:
AbstractUserMapper,GroovyUserMapper,KeycloakUserMapper,NashornUserMapper
public interface UserMapperInterface for class providing a named implementation for theUserMapperService- Since:
- 7.4
- Author:
- tiry
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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 userObjectvoidinit(Map<String,String> params)Init callback to receive the parameters set inside the descriptorvoidrelease()Release callback : called when the plugin is about to be unloadedObjectwrapNuxeoPrincipal(NuxeoPrincipal principal, Object nativePrincipal, Map<String,Serializable> params)Wrap theNuxeoPrincipalas the userObject used in the external authentication system
-
-
-
Method Detail
-
getOrCreateAndUpdateNuxeoPrincipal
NuxeoPrincipal getOrCreateAndUpdateNuxeoPrincipal(Object userObject)
Should retrieve (create if needed) and update the NuxeoPrincipal according to the given userObject- Parameters:
userObject- the object representing the user in the external system
-
getOrCreateAndUpdateNuxeoPrincipal
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- 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)
-
wrapNuxeoPrincipal
Object wrapNuxeoPrincipal(NuxeoPrincipal principal, Object nativePrincipal, Map<String,Serializable> params)
Wrap theNuxeoPrincipalas the userObject used in the external authentication system- Parameters:
principal- the NuxeoPrincipalnativePrincipal- the native object to represent the principal in the target system
-
init
void init(Map<String,String> params) throws Exception
Init callback to receive the parameters set inside the descriptor- Throws:
Exception
-
release
void release()
Release callback : called when the plugin is about to be unloaded
-
-