Package org.nuxeo.ecm.user.invite
Class DefaultInvitationUserFactory
java.lang.Object
org.nuxeo.ecm.user.invite.DefaultInvitationUserFactory
- All Implemented Interfaces:
InvitationUserFactory
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
acceptGroup
(NuxeoPrincipal originatingPrincipal, String groupName) doCreateUser
(CoreSession session, DocumentModel registrationDoc, UserRegistrationConfiguration configuration) Handle user creationvoid
doPostUserCreation
(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: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
- Since:
- 10.2
-