public class NashornUserMapper extends AbstractUserMapper
UserMapper implementation using Nashorn to implement logic using JavaScript| Modifier and Type | Field and Description |
|---|---|
protected String |
mapperSource |
protected String |
wrapperSource |
log| Constructor and Description |
|---|
NashornUserMapper(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
public NashornUserMapper(String mapperScript, String wrapperScript)
public 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 init(Map<String,String> params) throws Exception
UserMapperExceptionpublic void release()
UserMapperprotected void resolveAttributes(Object userObject, Map<String,Serializable> searchAttributes, Map<String,Serializable> userAttributes, Map<String,Serializable> profileAttributes)
resolveAttributes in class AbstractUserMapperCopyright © 2018 Nuxeo. All rights reserved.