Package org.nuxeo.ecm.user.invite
Class DefaultInvitationUserFactory
java.lang.Object
org.nuxeo.ecm.user.invite.DefaultInvitationUserFactory
- All Implemented Interfaces:
InvitationUserFactory
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanacceptGroup(NuxeoPrincipal originatingPrincipal, String groupName) doCreateUser(CoreSession session, DocumentModel registrationDoc, UserRegistrationConfiguration configuration) Handle user creationvoiddoPostUserCreation(CoreSession session, DocumentModel registrationDoc, NuxeoPrincipal user) Called just after the user is createdfilterGroups(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 Details
-
PASSWORD_KEY
- See Also:
-
-
Constructor Details
-
DefaultInvitationUserFactory
public DefaultInvitationUserFactory()
-
-
Method Details
-
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
- Since:
- 10.2
-