public class GroovyUserMapper extends AbstractUserMapper
UserMapper using Groovy Scripting for the mapping part| Modifier and Type | Field and Description | 
|---|---|
protected groovy.lang.GroovyClassLoader | 
loader  | 
protected Class<?> | 
mapperClass  | 
protected String | 
mapperSource  | 
protected Class<?> | 
wrapperClass  | 
protected String | 
wrapperSource  | 
log| 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, getUserManager, updatePrincipal, updateProfileprotected 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)
UserMapperprotected void resolveAttributes(Object userObject, Map<String,Serializable> searchAttributes, Map<String,Serializable> userAttributes, Map<String,Serializable> profileAttributes)
resolveAttributes in class AbstractUserMapperpublic Object wrapNuxeoPrincipal(NuxeoPrincipal principal, Object userObject, Map<String,Serializable> params)
UserMapperNuxeoPrincipal as the userObject used in the external authentication systemprincipal - the NuxeoPrincipaluserObject - the native object to represent the principal in the target systempublic void release()
UserMapperCopyright © 2019 Nuxeo. All rights reserved.