Package org.nuxeo.usermapper.extension
Class GroovyUserMapper
- java.lang.Object
-
- org.nuxeo.usermapper.extension.AbstractUserMapper
-
- org.nuxeo.usermapper.extension.GroovyUserMapper
-
- All Implemented Interfaces:
UserMapper
public class GroovyUserMapper extends AbstractUserMapper
Implement theUserMapper
using Groovy Scripting for the mapping part- Since:
- 7.4
- Author:
- tiry
-
-
Field Summary
Fields Modifier and Type Field Description protected groovy.lang.GroovyClassLoader
loader
protected Class<?>
mapperClass
protected String
mapperSource
protected Class<?>
wrapperClass
protected String
wrapperSource
-
Fields inherited from class org.nuxeo.usermapper.extension.AbstractUserMapper
log
-
-
Constructor Summary
Constructors Constructor Description GroovyUserMapper(String mapperScript, String wrapperScript)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init(Map<String,String> params)
Init callback to receive the parameters set inside the descriptorvoid
release()
Release callback : called when the plugin is about to be unloadedprotected void
resolveAttributes(Object userObject, Map<String,Serializable> searchAttributes, Map<String,Serializable> userAttributes, Map<String,Serializable> profileAttributes)
Object
wrapNuxeoPrincipal(NuxeoPrincipal principal, Object userObject, Map<String,Serializable> params)
Wrap theNuxeoPrincipal
as the userObject used in the external authentication system-
Methods inherited from class org.nuxeo.usermapper.extension.AbstractUserMapper
createPrincipal, getOrCreateAndUpdateNuxeoPrincipal, getOrCreateAndUpdateNuxeoPrincipal, getUserManager, updatePrincipal, updateProfile
-
-
-
-
Method Detail
-
init
public void init(Map<String,String> params)
Description copied from interface:UserMapper
Init 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:
resolveAttributes
in classAbstractUserMapper
-
wrapNuxeoPrincipal
public Object wrapNuxeoPrincipal(NuxeoPrincipal principal, Object userObject, Map<String,Serializable> params)
Description copied from interface:UserMapper
Wrap theNuxeoPrincipal
as 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:UserMapper
Release callback : called when the plugin is about to be unloaded
-
-