public interface InvitationService
Modifier and Type | Method and Description |
---|---|
Invitation |
accept(String invitationId,
String ticket)
For a Nominated Invitation invitee accepts this invitation
|
void |
acceptNominatedInvitation(String siteName,
String invitee,
String role,
String inviter)
Moderator approves this invitation
|
Invitation |
approve(String invitationId,
String reason)
Moderator approves this invitation
|
void |
approveModeratedInvitation(String siteName,
String invitee,
String role,
String reviewer)
Moderator approves this invitation
|
Invitation |
cancel(String invitationId)
cancel this request
|
void |
cancelInvitation(String siteName,
String invitee,
String inviteId,
String currentInviteId)
Inviter cancels this invitation
|
void |
deleteAuthenticationIfUnused(String invitee,
String currentInviteId)
Clean up invitee user account and person node when no longer in use.
|
Invitation |
getInvitation(String invitationId)
get an invitation from its invitation id
|
List<String> |
getInvitationServiceWorkflowNames()
Get the names of the workflows managed by the invitation service.
|
ModeratedInvitation |
inviteModerated(String inviteeComments,
String inviteeUserName,
Invitation.ResourceType resourceType,
String resourceName,
String inviteeRole)
Start the invitation process for a ModeratedInvitation
|
NominatedInvitation |
inviteNominated(String inviteeUserName,
Invitation.ResourceType resourceType,
String resourceName,
String inviteeRole,
String acceptUrl,
String rejectUrl)
Start the invitation process for a NominatedInvitation for a user who does not yet have an Alfresco User Name The server path is calculated based on the sysAdmin parameters
|
NominatedInvitation |
inviteNominated(String inviteeUserName,
Invitation.ResourceType resourceType,
String resourceName,
String inviteeRole,
String serverPath,
String acceptUrl,
String rejectUrl)
Start the invitation process for a NominatedInvitation for a user who does not yet have an Alfresco User Name
|
NominatedInvitation |
inviteNominated(String inviteeFirstName,
String inviteeLastName,
String inviteeEmail,
Invitation.ResourceType resourceType,
String resourceName,
String inviteeRole,
String acceptUrl,
String rejectUrl)
Start the invitation process for a NominatedInvitation for a user who does not yet have an Alfresco User NameA new user name will be generated as part of the invitation
process.
|
NominatedInvitation |
inviteNominated(String inviteeFirstName,
String inviteeLastName,
String inviteeEmail,
Invitation.ResourceType resourceType,
String resourceName,
String inviteeRole,
String serverPath,
String acceptUrl,
String rejectUrl)
Start the invitation process for a NominatedInvitation for a user who does not yet have an Alfresco User NameA new user name will be generated as part of the invitation
process.
|
boolean |
isSendEmails() |
List<Invitation> |
listPendingInvitationsForInvitee(String invitee)
list Invitations for a specific person
|
List<Invitation> |
listPendingInvitationsForInvitee(String invitee,
Invitation.ResourceType resourceType) |
List<Invitation> |
listPendingInvitationsForResource(Invitation.ResourceType resourceType,
String resourceName)
list Invitations for a specific resource
|
Invitation |
reject(String invitationId,
String reason)
User or moderator rejects this request
|
void |
rejectModeratedInvitation(String siteName,
String invitee,
String role,
String reviewer,
String resourceType,
String reviewComments)
Moderator rejects this invitation
|
List<Invitation> |
searchInvitation(InvitationSearchCriteria criteria)
Deprecated.
|
List<Invitation> |
searchInvitation(InvitationSearchCriteria criteria,
int limit)
This is the general search invitation method returning
Invitation
This is the recommended method to use for searching invitations; Consider
that the performance of the method will be greatly influenced by the
limit specified |
void |
sendModeratedInvitation(String invitationId,
String emailTemplateXpath,
String emailSubjectKey,
Map<String,Object> variables)
Sends the site join request notification email using the given template, subject localization key, and variables.
|
void |
sendNominatedInvitation(String inviteId,
Map<String,Object> executionVariables)
Deprecated.
|
void |
sendNominatedInvitation(String inviteId,
String emailTemplateXpath,
String emailSubjectKey,
Map<String,Object> executionVariables)
Sends the invite email using the given template, subject localization key, and variables.
|
ModeratedInvitation |
updateModeratedInvitation(String inviteeId,
String siteShortName,
String inviteeComments)
Update the invitee comments for an existing moderated invitation
|
@NotAuditable List<String> getInvitationServiceWorkflowNames()
@Auditable(parameters={"inviteeUserName","resourceType","resourceName","inviteeRole","acceptUrl","rejectUrl"}) NominatedInvitation inviteNominated(String inviteeUserName, Invitation.ResourceType resourceType, String resourceName, String inviteeRole, String acceptUrl, String rejectUrl)
inviteeUserName
- Alfresco user name of who should be invitedResourceType
- resourceTyperesourceName
- inviteeRole
- acceptUrl
- rejectUrl
- InvitationException
InvitationExceptionUserError
InvitationExceptionForbidden
@Auditable(parameters={"inviteeFirstName","inviteeLastName","inviteeEmail","resourceType","resourceName","inviteeRole","acceptUrl","rejectUrl"}) NominatedInvitation inviteNominated(String inviteeFirstName, String inviteeLastName, String inviteeEmail, Invitation.ResourceType resourceType, String resourceName, String inviteeRole, String acceptUrl, String rejectUrl)
inviteeFirstName
- inviteeLastName
- inviteeEmail
- Invitation.ResourceType
- resourceTyperesourceName
- inviteeRole
- acceptUrl
- rejectUrl
- InvitationException
InvitationExceptionUserError
InvitationExceptionForbidden
@Auditable(parameters={"inviteeUserName","resourceType","resourceName","inviteeRole","serverPath","acceptUrl","rejectUrl"}) NominatedInvitation inviteNominated(String inviteeUserName, Invitation.ResourceType resourceType, String resourceName, String inviteeRole, String serverPath, String acceptUrl, String rejectUrl)
inviteeUserName
- Alfresco user name of who should be invitedResourceType
- resourceTyperesourceName
- inviteeRole
- serverPath
- acceptUrl
- rejectUrl
- InvitationException
InvitationExceptionUserError
InvitationExceptionForbidden
@Auditable(parameters={"inviteeFirstName","inviteeLastName","inviteeEmail","resourceType","resourceName","inviteeRole","serverPath","acceptUrl","rejectUrl"}) NominatedInvitation inviteNominated(String inviteeFirstName, String inviteeLastName, String inviteeEmail, Invitation.ResourceType resourceType, String resourceName, String inviteeRole, String serverPath, String acceptUrl, String rejectUrl)
inviteeFirstName
- inviteeLastName
- inviteeEmail
- StringresourceType
- Invitation.ResourceTyperesourceName
- StringinviteeRole
- serverPath
- acceptUrl
- rejectUrl
- StringInvitationException
InvitationExceptionUserError
InvitationExceptionForbidden
@Auditable(parameters={"inviteeComments","inviteeUserName","resourceType","resourceName","inviteeRole"}) ModeratedInvitation inviteModerated(String inviteeComments, String inviteeUserName, Invitation.ResourceType resourceType, String resourceName, String inviteeRole)
inviteeUserName
- who is to be invitedInvitation.ResourceType
- resourceType what resource type ?resourceName
- which resourceinviteeRole
- which role ?@Auditable(parameters={"inviteeId","siteShortName","inviteeComments"}) ModeratedInvitation updateModeratedInvitation(String inviteeId, String siteShortName, String inviteeComments)
inviteeId
- siteShortName
- inviteeComments
- @Auditable(parameters={"invitationId","reason"}) Invitation accept(String invitationId, String ticket)
request
- ticket
- @Auditable(parameters={"invitationId","reason"}) Invitation approve(String invitationId, String reason)
invitationId
- the request to approvereason
- - comments about the acceptance@Auditable(parameters={"invitationId","reason"}) Invitation reject(String invitationId, String reason)
invitationId
- reason
- @Auditable(parameters={"siteName","Invitee","role","inviter"}) void acceptNominatedInvitation(String siteName, String invitee, String role, String inviter)
siteName
- invitee
- role
- inviter
- @Auditable(parameters={"siteName","Invitee","role","reviewer"}) void approveModeratedInvitation(String siteName, String invitee, String role, String reviewer)
siteName
- invitee
- role
- reviewer
- @Auditable(parameters={"siteName","Invitee","role","reviewer","resourceType","reviewComments"}) void rejectModeratedInvitation(String siteName, String invitee, String role, String reviewer, String resourceType, String reviewComments)
siteName
- invitee
- role
- reviewer
- resourceType
- reviewComments
- @Auditable(parameters={"siteName","Invitee","inviteId","currentInviteId"}) void cancelInvitation(String siteName, String invitee, String inviteId, String currentInviteId)
siteName
- invitee
- inviteId
- currentInviteId
- @Auditable(parameters="invitationId") Invitation cancel(String invitationId)
@Auditable(parameters={"Invitee","currentInviteId"}) void deleteAuthenticationIfUnused(String invitee, String currentInviteId)
invitee
- currentInviteId
- @Auditable(parameters="inviteId") void sendNominatedInvitation(String inviteId, Map<String,Object> executionVariables)
inviteId
- executionVariables
- #sendNominatedInvitation(String, String, String, Map)}
@Auditable(parameters="inviteId") void sendNominatedInvitation(String inviteId, String emailTemplateXpath, String emailSubjectKey, Map<String,Object> executionVariables)
inviteId
- emailTemplateXpath
- the XPath to the email template in the repositoryemailSubjectKey
- the subject of the emailexecutionVariables
- the variables used to populate the email@NotAuditable Invitation getInvitation(String invitationId)
invitationId;
- @NotAuditable List<Invitation> listPendingInvitationsForInvitee(String invitee)
@NotAuditable List<Invitation> listPendingInvitationsForInvitee(String invitee, Invitation.ResourceType resourceType)
@NotAuditable List<Invitation> listPendingInvitationsForResource(Invitation.ResourceType resourceType, String resourceName)
resourceType
- resourceName
- @NotAuditable List<Invitation> searchInvitation(InvitationSearchCriteria criteria)
Invitation
This method has a hardcoded limit of 200 invitations to return. It has
been deprecated and it is recommended to use the overloaded version for
which you can specify an appropriate limit depending on the needscriteria
- InvitationSearchCriteria
search criteria@NotAuditable List<Invitation> searchInvitation(InvitationSearchCriteria criteria, int limit)
Invitation
This is the recommended method to use for searching invitations; Consider
that the performance of the method will be greatly influenced by the
limit specifiedcriteria
- search criterialimit
- maximum number of IDs to return. If less than 1, there is no
limit.@NotAuditable boolean isSendEmails()
@Auditable(parameters="inviteId") void sendModeratedInvitation(String invitationId, String emailTemplateXpath, String emailSubjectKey, Map<String,Object> variables)
invitationId
- emailTemplateXpath
- emailSubjectKey
- variables
- Copyright © 2005–2017 Alfresco Software. All rights reserved.