public class DefaultInvitationUserFactory extends Object implements InvitationUserFactory
Modifier and Type | Field and Description |
---|---|
static String |
PASSWORD_KEY |
Constructor and Description |
---|
DefaultInvitationUserFactory() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
acceptGroup(NuxeoPrincipal originatingPrincipal,
String groupName) |
NuxeoPrincipal |
doCreateUser(CoreSession session,
DocumentModel registrationDoc,
UserRegistrationConfiguration configuration)
Handle user creation
|
void |
doPostUserCreation(CoreSession session,
DocumentModel registrationDoc,
NuxeoPrincipal user)
Called just after the user is created
|
protected List<String> |
filterGroups(DocumentModel registrationDoc,
UserRegistrationConfiguration configuration)
Filter group by computing the intersection of the group in the registration doc and the groups of the user that
created the request.
|
public static final String PASSWORD_KEY
public DefaultInvitationUserFactory()
public void doPostUserCreation(CoreSession session, DocumentModel registrationDoc, NuxeoPrincipal user) throws UserRegistrationException
InvitationUserFactory
doPostUserCreation
in interface InvitationUserFactory
UserRegistrationException
public NuxeoPrincipal doCreateUser(CoreSession session, DocumentModel registrationDoc, UserRegistrationConfiguration configuration) throws UserRegistrationException
InvitationUserFactory
doCreateUser
in interface InvitationUserFactory
UserRegistrationException
protected List<String> filterGroups(DocumentModel registrationDoc, UserRegistrationConfiguration configuration)
registrationDoc
- configuration
- protected boolean acceptGroup(NuxeoPrincipal originatingPrincipal, String groupName)
originatingPrincipal
- groupName
- Copyright © 2018 Nuxeo. All rights reserved.