public class ShibbolethUserMapper extends Object implements UserMapper
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_REGISTRATION |
protected static String |
groupSchemaName |
protected UserManager |
userManager |
protected static String |
userSchemaName |
| Constructor and Description |
|---|
ShibbolethUserMapper() |
| Modifier and Type | Method and Description |
|---|---|
protected DocumentModel |
createUser(ShibbolethUserInfo userInfo) |
protected UserInvitationService |
fetchService() |
NuxeoPrincipal |
getOrCreateAndUpdateNuxeoPrincipal(Object userObject)
Should retrieve (create if needed) and update the NuxeoPrincipal according to the given userObject
|
NuxeoPrincipal |
getOrCreateAndUpdateNuxeoPrincipal(Object userObject,
boolean createIfNeeded,
boolean update,
Map<String,Serializable> params)
Should retrieve (create if needed) and update the NuxeoPrincipal according to the given userObject
|
String |
getTargetRepositoryName() |
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 |
updateACP(String userName,
String email,
DocumentModel userDoc) |
Object |
wrapNuxeoPrincipal(NuxeoPrincipal principal,
Object nativePrincipal,
Map<String,Serializable> params)
Wrap the
NuxeoPrincipal as the userObject used in the external authentication system |
public static final String DEFAULT_REGISTRATION
protected static String userSchemaName
protected static String groupSchemaName
protected UserManager userManager
public ShibbolethUserMapper()
public NuxeoPrincipal getOrCreateAndUpdateNuxeoPrincipal(Object userObject)
UserMappergetOrCreateAndUpdateNuxeoPrincipal in interface UserMapperuserObject - the object representing the user in the external systemprotected UserInvitationService fetchService()
public NuxeoPrincipal getOrCreateAndUpdateNuxeoPrincipal(Object userObject, boolean createIfNeeded, boolean update, Map<String,Serializable> params)
UserMappergetOrCreateAndUpdateNuxeoPrincipal in interface UserMapperuserObject - the object representing the user in the external systemcreateIfNeeded - flag to allow creation (default is true)update - flag to run update (default is true)protected void updateACP(String userName, String email, DocumentModel userDoc)
protected DocumentModel createUser(ShibbolethUserInfo userInfo)
public void init(Map<String,String> params) throws Exception
UserMapperinit in interface UserMapperExceptionpublic Object wrapNuxeoPrincipal(NuxeoPrincipal principal, Object nativePrincipal, Map<String,Serializable> params)
UserMapperNuxeoPrincipal as the userObject used in the external authentication systemwrapNuxeoPrincipal in interface UserMapperprincipal - the NuxeoPrincipalnativePrincipal - the native object to represent the principal in the target systempublic void release()
UserMapperrelease in interface UserMapperpublic String getTargetRepositoryName()
Copyright © 2018 Nuxeo. All rights reserved.