Package org.nuxeo.ecm.user.invite
Class DefaultInvitationUserFactory
- java.lang.Object
-
- org.nuxeo.ecm.user.invite.DefaultInvitationUserFactory
-
- All Implemented Interfaces:
InvitationUserFactory
public class DefaultInvitationUserFactory extends Object implements InvitationUserFactory
-
-
Field Summary
Fields Modifier and Type Field Description static String
PASSWORD_KEY
-
Constructor Summary
Constructors Constructor Description DefaultInvitationUserFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
acceptGroup(NuxeoPrincipal originatingPrincipal, String groupName)
NuxeoPrincipal
doCreateUser(CoreSession session, DocumentModel registrationDoc, UserRegistrationConfiguration configuration)
Handle user creationvoid
doPostUserCreation(CoreSession session, DocumentModel registrationDoc, NuxeoPrincipal user)
Called just after the user is createdprotected 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.
-
-
-
Field Detail
-
PASSWORD_KEY
public static final String PASSWORD_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
doPostUserCreation
public void doPostUserCreation(CoreSession session, DocumentModel registrationDoc, NuxeoPrincipal user) throws UserRegistrationException
Description copied from interface:InvitationUserFactory
Called just after the user is created- Specified by:
doPostUserCreation
in interfaceInvitationUserFactory
- Throws:
UserRegistrationException
-
doCreateUser
public NuxeoPrincipal doCreateUser(CoreSession session, DocumentModel registrationDoc, UserRegistrationConfiguration configuration) throws UserRegistrationException
Description copied from interface:InvitationUserFactory
Handle user creation- Specified by:
doCreateUser
in interfaceInvitationUserFactory
- Throws:
UserRegistrationException
-
filterGroups
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. Administrators accept all groups.- Since:
- 10.2
-
acceptGroup
protected boolean acceptGroup(NuxeoPrincipal originatingPrincipal, String groupName)
- Since:
- 10.2
-
-