public class DefaultRegistrationUserFactory extends Object implements RegistrationUserFactory
Constructor and Description |
---|
DefaultRegistrationUserFactory() |
Modifier and Type | Method and Description |
---|---|
NuxeoPrincipal |
createUser(CoreSession session,
DocumentModel registrationDoc) |
DocumentModel |
doAddDocumentPermission(CoreSession session,
DocumentModel registrationDoc) |
NuxeoPrincipal |
doCreateUser(CoreSession session,
DocumentModel registrationDoc)
Handle user creation
|
void |
doPostAddDocumentPermission(CoreSession session,
DocumentModel registrationDoc,
DocumentModel document)
Called just after the right is setted
|
void |
doPostUserCreation(CoreSession session,
DocumentModel registrationDoc,
NuxeoPrincipal user)
Called just after the user is created
|
public NuxeoPrincipal createUser(CoreSession session, DocumentModel registrationDoc) throws ClientException, UserRegistrationException
createUser
in interface RegistrationUserFactory
ClientException
UserRegistrationException
createUser(org.nuxeo.ecm.core.api.CoreSession, org.nuxeo.ecm.core.api.DocumentModel)
public void doPostUserCreation(CoreSession session, DocumentModel registrationDoc, NuxeoPrincipal user) throws ClientException, UserRegistrationException
RegistrationUserFactory
doPostUserCreation
in interface RegistrationUserFactory
ClientException
UserRegistrationException
public NuxeoPrincipal doCreateUser(CoreSession session, DocumentModel registrationDoc) throws ClientException, UserRegistrationException
RegistrationUserFactory
doCreateUser
in interface RegistrationUserFactory
ClientException
UserRegistrationException
public DocumentModel doAddDocumentPermission(CoreSession session, DocumentModel registrationDoc) throws ClientException
doAddDocumentPermission
in interface RegistrationUserFactory
ClientException
UserRegistrationComponent.addRightsOnDoc(org.nuxeo.ecm.core.api.CoreSession, org.nuxeo.ecm.core.api.DocumentModel)
public void doPostAddDocumentPermission(CoreSession session, DocumentModel registrationDoc, DocumentModel document) throws ClientException
RegistrationUserFactory
doPostAddDocumentPermission
in interface RegistrationUserFactory
ClientException
UserRegistrationComponent.addRightsOnDoc(org.nuxeo.ecm.core.api.CoreSession, org.nuxeo.ecm.core.api.DocumentModel)
Copyright © 2013 Nuxeo SA. All Rights Reserved.