Package org.nuxeo.usermapper.extension
Class GroovyUserMapper
java.lang.Object
org.nuxeo.usermapper.extension.AbstractUserMapper
org.nuxeo.usermapper.extension.GroovyUserMapper
- All Implemented Interfaces:
UserMapper
Implement the
UserMapper using Groovy Scripting for the mapping part- Since:
- 7.4
- Author:
- tiry
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInit callback to receive the parameters set inside the descriptorvoidrelease()Release callback : called when the plugin is about to be unloadedprotected voidresolveAttributes(Object userObject, Map<String, Serializable> searchAttributes, Map<String, Serializable> userAttributes, Map<String, Serializable> profileAttributes) wrapNuxeoPrincipal(NuxeoPrincipal principal, Object userObject, Map<String, Serializable> params) Wrap theNuxeoPrincipalas the userObject used in the external authentication systemMethods inherited from class org.nuxeo.usermapper.extension.AbstractUserMapper
createPrincipal, getOrCreateAndUpdateNuxeoPrincipal, getOrCreateAndUpdateNuxeoPrincipal, getUserManager, updatePrincipal, updateProfile
-
Field Details
-
mapperSource
-
wrapperSource
-
loader
protected groovy.lang.GroovyClassLoader loader -
mapperClass
-
wrapperClass
-
-
Constructor Details
-
GroovyUserMapper
-
-
Method Details
-
init
Description copied from interface:UserMapperInit callback to receive the parameters set inside the descriptor -
resolveAttributes
protected void resolveAttributes(Object userObject, Map<String, Serializable> searchAttributes, Map<String, Serializable> userAttributes, Map<String, Serializable> profileAttributes) - Specified by:
resolveAttributesin classAbstractUserMapper
-
wrapNuxeoPrincipal
public Object wrapNuxeoPrincipal(NuxeoPrincipal principal, Object userObject, Map<String, Serializable> params) Description copied from interface:UserMapperWrap theNuxeoPrincipalas the userObject used in the external authentication system- Parameters:
principal- the NuxeoPrincipaluserObject- the native object to represent the principal in the target system
-
release
public void release()Description copied from interface:UserMapperRelease callback : called when the plugin is about to be unloaded
-