Package org.nuxeo.usermapper.service
Interface UserMapperService
-
- All Known Implementing Classes:
UserMapperComponent
public interface UserMapperService
This service allows to map Nuxeo Users with users coming from external system like SSO or IDM.- Since:
- 7.4
- Author:
- tiry
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<String>
getAvailableMappings()
Gives access to the contributed Mapping namesUserMapper
getMapper(String mappingName)
returns the named mapper is anyNuxeoPrincipal
getOrCreateAndUpdateNuxeoPrincipal(String mappingName, Object userObject)
Should retrieve (create if needed) and update the NuxeoPrincipal according to the given userObjectNuxeoPrincipal
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 userObjectObject
wrapNuxeoPrincipal(String mappingName, NuxeoPrincipal principal, Object nativePrincipal, Map<String,Serializable> params)
Wrap theNuxeoPrincipal
as the userObject used in the external authentication system *
-
-
-
Method Detail
-
getOrCreateAndUpdateNuxeoPrincipal
NuxeoPrincipal getOrCreateAndUpdateNuxeoPrincipal(String mappingName, Object userObject) throws NuxeoException
Should retrieve (create if needed) and update the NuxeoPrincipal according to the given userObject- Parameters:
mappingName
- the name of the contributed mapping to useuserObject
- the native userObject- Returns:
- the matching
NuxeoPrincipal
- Throws:
NuxeoException
-
getOrCreateAndUpdateNuxeoPrincipal
NuxeoPrincipal getOrCreateAndUpdateNuxeoPrincipal(String mappingName, Object userObject, boolean createIfNeeded, boolean update, Map<String,Serializable> params) throws NuxeoException
Should retrieve (create if needed) and update the NuxeoPrincipal according to the given userObject- Parameters:
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)- Returns:
- the matching
NuxeoPrincipal
- Throws:
NuxeoException
-
wrapNuxeoPrincipal
Object wrapNuxeoPrincipal(String mappingName, NuxeoPrincipal principal, Object nativePrincipal, Map<String,Serializable> params) throws NuxeoException
Wrap theNuxeoPrincipal
as the userObject used in the external authentication system *- Parameters:
mappingName
- the name of the contributed mapping to useprincipal
- theNuxeoPrincipal
to wrapnativePrincipal
- the principal Object in the target system (can be null)- Throws:
NuxeoException
-
getAvailableMappings
Set<String> getAvailableMappings()
Gives access to the contributed Mapping names
-
getMapper
UserMapper getMapper(String mappingName) throws NuxeoException
returns the named mapper is any- Throws:
NuxeoException
-
-