public interface UserInvitationService
Modifier and Type | Interface and Description |
---|---|
static class |
UserInvitationService.ValidationMethod |
Modifier and Type | Field and Description |
---|---|
static String |
REGISTRATION_CONFIGURATION_NAME |
static String |
REGISTRATION_DATA_DOC |
static String |
REGISTRATION_DATA_USER |
Modifier and Type | Method and Description |
---|---|
void |
acceptRegistrationRequest(String requestId,
Map<String,Serializable> additionnalInfo)
accept the registration request
|
void |
checkRequestId(String requestId)
The method checks if the request id is a valid one.
|
NuxeoPrincipal |
createUser(CoreSession session,
DocumentModel registrationDoc) |
void |
deleteRegistrationRequests(CoreSession session,
List<DocumentModel> registrationDoc)
Delete a registration document
|
UserRegistrationConfiguration |
getConfiguration() |
UserRegistrationConfiguration |
getConfiguration(DocumentModel requestDoc) |
UserRegistrationConfiguration |
getConfiguration(String name)
Return specific configuration for the specified name
|
Set<String> |
getConfigurationsName()
List all registered onfiguration name
|
String |
getNameEventRegistrationAccepted() |
String |
getNameEventRegistrationRejected() |
String |
getNameEventRegistrationSubmitted() |
String |
getNameEventRegistrationValidated() |
RegistrationRules |
getRegistrationRules(String configurationName)
Get registration rules adapter
|
DocumentModel |
getRegistrationRulesDocument(CoreSession session,
String configurationName)
Get documentmodel that stores request configuration using RegistrationConfiguration facet.
|
DocumentModelList |
getRegistrationsForUser(String docId,
String username,
String configurationName)
Retrieve registrations for a document givent the username
|
DocumentModel |
getUserRegistrationModel(String configurationName)
Create a document model for the UserRegistration doctype.
|
void |
rejectRegistrationRequest(String requestId,
Map<String,Serializable> additionnalInfo)
reject the registration request
|
void |
reviveRegistrationRequests(CoreSession session,
List<DocumentModel> registrationDocs)
Send a mail to the invited user to revive his invitation If an error occured while sending an email, it logs it
and continue.
|
String |
submitRegistrationRequest(DocumentModel userRegistrationModel,
Map<String,Serializable> additionnalInfo,
UserInvitationService.ValidationMethod validationMethod,
boolean autoAccept)
Stores a registration request and return a unique ID for it
|
String |
submitRegistrationRequest(String configurationName,
DocumentModel userRegistrationModel,
Map<String,Serializable> additionnalInfo,
UserInvitationService.ValidationMethod validationMethod,
boolean autoAccept)
Stores a resgitration request like submitRegistrationRequest with Document information
|
Map<String,Serializable> |
validateRegistration(String requestId,
Map<String,Serializable> additionnalInfo)
Validate a registration request and generate the target User
|
Map<String,Serializable> |
validateRegistrationAndSendEmail(String requestId,
Map<String,Serializable> additionnalInfo)
Validate a registration request and generate the target User
|
static final String REGISTRATION_CONFIGURATION_NAME
static final String REGISTRATION_DATA_DOC
static final String REGISTRATION_DATA_USER
DocumentModel getUserRegistrationModel(String configurationName)
configurationName
- The name of the configuration.String submitRegistrationRequest(DocumentModel userRegistrationModel, Map<String,Serializable> additionnalInfo, UserInvitationService.ValidationMethod validationMethod, boolean autoAccept) throws UserRegistrationException
UserRegistrationException
void acceptRegistrationRequest(String requestId, Map<String,Serializable> additionnalInfo) throws UserRegistrationException
requestId
- UserRegistrationException
void rejectRegistrationRequest(String requestId, Map<String,Serializable> additionnalInfo) throws UserRegistrationException
requestId
- UserRegistrationException
Map<String,Serializable> validateRegistration(String requestId, Map<String,Serializable> additionnalInfo)
requestId
- Map<String,Serializable> validateRegistrationAndSendEmail(String requestId, Map<String,Serializable> additionnalInfo) throws UserRegistrationException
requestId
- UserRegistrationException
NuxeoPrincipal createUser(CoreSession session, DocumentModel registrationDoc) throws UserRegistrationException
UserRegistrationException
void reviveRegistrationRequests(CoreSession session, List<DocumentModel> registrationDocs)
void deleteRegistrationRequests(CoreSession session, List<DocumentModel> registrationDoc)
UserRegistrationConfiguration getConfiguration()
DocumentModelList getRegistrationsForUser(String docId, String username, String configurationName)
UserRegistrationConfiguration getConfiguration(String name)
name
- configuration nameUserRegistrationConfiguration getConfiguration(DocumentModel requestDoc)
DocumentModel getRegistrationRulesDocument(CoreSession session, String configurationName)
session
- String submitRegistrationRequest(String configurationName, DocumentModel userRegistrationModel, Map<String,Serializable> additionnalInfo, UserInvitationService.ValidationMethod validationMethod, boolean autoAccept) throws UserRegistrationException
UserRegistrationException
RegistrationRules getRegistrationRules(String configurationName)
Set<String> getConfigurationsName()
void checkRequestId(String requestId) throws UserRegistrationException
requestId
- The value of the request id.UserRegistrationException
String getNameEventRegistrationSubmitted()
String getNameEventRegistrationAccepted()
String getNameEventRegistrationRejected()
String getNameEventRegistrationValidated()
Copyright © 2016 Nuxeo SA. All rights reserved.