public interface UserMapperService
Modifier and Type | Method and Description |
---|---|
Set<String> |
getAvailableMappings()
Gives access to the contributed Mapping names
|
UserMapper |
getMapper(String mappingName)
returns the named mapper is any
|
NuxeoPrincipal |
getOrCreateAndUpdateNuxeoPrincipal(String mappingName,
Object userObject)
Should retrieve (create if needed) and update the NuxeoPrincipal according to the given userObject
|
NuxeoPrincipal |
getOrCreateAndUpdateNuxeoPrincipal(String mappingName,
Object userObject,
boolean createIfNeeded,
boolean update,
Map<String,Serializable> params)
Should retrieve (create if needed) and update the NuxeoPrincipal according to the given userObject
|
Object |
wrapNuxeoPrincipal(String mappingName,
NuxeoPrincipal principal,
Object nativePrincipal,
Map<String,Serializable> params)
Wrap the
NuxeoPrincipal as the userObject used in the external authentication system * |
NuxeoPrincipal getOrCreateAndUpdateNuxeoPrincipal(String mappingName, Object userObject) throws NuxeoException
mappingName
- the name of the contributed mapping to useuserObject
- the native userObjectNuxeoPrincipal
NuxeoException
NuxeoPrincipal getOrCreateAndUpdateNuxeoPrincipal(String mappingName, Object userObject, boolean createIfNeeded, boolean update, Map<String,Serializable> params) throws NuxeoException
mappingName
- the name of the contributed mapping to useuserObject
- the native userObjectcreateIfNeeded
- flag to allow creation (default is true)update
- flag to run update (default is true)NuxeoPrincipal
NuxeoException
Object wrapNuxeoPrincipal(String mappingName, NuxeoPrincipal principal, Object nativePrincipal, Map<String,Serializable> params) throws NuxeoException
NuxeoPrincipal
as the userObject used in the external authentication system *mappingName
- the name of the contributed mapping to useprincipal
- the NuxeoPrincipal
to wrapnativePrincipal
- the principal Object in the target system (can be null)NuxeoException
Set<String> getAvailableMappings()
UserMapper getMapper(String mappingName) throws NuxeoException
mappingName
- NuxeoException
Copyright © 2015 Nuxeo SA. All rights reserved.