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 StringPASSWORD_KEY
-
Constructor Summary
Constructors Constructor Description DefaultInvitationUserFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanacceptGroup(NuxeoPrincipal originatingPrincipal, String groupName)NuxeoPrincipaldoCreateUser(CoreSession session, DocumentModel registrationDoc, UserRegistrationConfiguration configuration)Handle user creationvoiddoPostUserCreation(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:InvitationUserFactoryCalled just after the user is created- Specified by:
doPostUserCreationin interfaceInvitationUserFactory- Throws:
UserRegistrationException
-
doCreateUser
public NuxeoPrincipal doCreateUser(CoreSession session, DocumentModel registrationDoc, UserRegistrationConfiguration configuration) throws UserRegistrationException
Description copied from interface:InvitationUserFactoryHandle user creation- Specified by:
doCreateUserin 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
-
-