public class GroovyUserMapper extends AbstractUserMapper
UserMapper
using Groovy Scripting for the mapping partModifier and Type | Field and Description |
---|---|
protected groovy.lang.GroovyClassLoader |
loader |
protected Class<?> |
mapperClass |
protected String |
mapperSource |
protected Class<?> |
wrapperClass |
protected String |
wrapperSource |
log, userManager
Constructor and Description |
---|
GroovyUserMapper(String mapperScript,
String wrapperScript) |
Modifier and Type | Method and Description |
---|---|
void |
init(Map<String,String> params)
Init callback to receive the parameters set inside the descriptor
|
void |
release()
Release callback : called when the plugin is about to be unloaded
|
protected 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 the
NuxeoPrincipal as the userObject used in the external authentication system |
createPrincipal, getOrCreateAndUpdateNuxeoPrincipal, getOrCreateAndUpdateNuxeoPrincipal, updatePrincipal, updateProfile
protected final String mapperSource
protected final String wrapperSource
protected groovy.lang.GroovyClassLoader loader
protected Class<?> mapperClass
protected Class<?> wrapperClass
public GroovyUserMapper(String mapperScript, String wrapperScript)
public void init(Map<String,String> params)
UserMapper
protected void resolveAttributes(Object userObject, Map<String,Serializable> searchAttributes, Map<String,Serializable> userAttributes, Map<String,Serializable> profileAttributes)
resolveAttributes
in class AbstractUserMapper
public Object wrapNuxeoPrincipal(NuxeoPrincipal principal, Object userObject, Map<String,Serializable> params)
UserMapper
NuxeoPrincipal
as the userObject used in the external authentication systemprincipal
- the NuxeoPrincipaluserObject
- the native object to represent the principal in the target systempublic void release()
UserMapper
Copyright © 2016 Nuxeo SA. All rights reserved.