public class InviteHelper extends Object implements org.springframework.beans.factory.InitializingBean
| Constructor and Description |
|---|
InviteHelper() |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptNominatedInvitation(Map<String,Object> executionVariables) |
void |
addSiteMembership(String invitee,
String siteName,
String role,
String runAsUser,
boolean overrideExisting)
Add Invitee to Site with the site role that the inviter "started" the invite process with
|
void |
afterPropertiesSet() |
void |
approveModeratedInvitation(Map<String,Object> executionVariables) |
void |
cancelInvitation(Map<String,Object> executionVariables,
String currentInviteId) |
void |
deleteAuthenticationIfUnused(String inviteeUserName,
String currentInviteId)
Clean up invitee user account and person node when no longer in use.
|
List<WorkflowTask> |
findInvitePendingTasks(String inviteeUserName)
Find invitePending tasks (in-progress) by the given invitee user name
|
WorkflowTask |
findInviteStartTask(String inviteId)
Find an invite start task by the given task id.
|
InviteInfo |
getPendingInviteInfo(WorkflowTask startInviteTask)
Returns an InviteInfo instance for the given startInvite task
(used for rendering the response).
|
void |
rejectModeratedInvitation(Map<String,Object> vars) |
void |
sendNominatedInvitation(String inviteId,
Map<String,Object> executionVariables) |
void |
setMessageService(MessageService messageService) |
void |
setRepositoryHelper(Repository repositoryHelper) |
void |
setServiceRegistry(ServiceRegistry serviceRegistry) |
public static final String NAME
public void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic void acceptNominatedInvitation(Map<String,Object> executionVariables)
public WorkflowTask findInviteStartTask(String inviteId)
public List<WorkflowTask> findInvitePendingTasks(String inviteeUserName)
public InviteInfo getPendingInviteInfo(WorkflowTask startInviteTask)
startInviteTask - startInvite task to get invite info properties fromserviceRegistry - service registry instancepublic void addSiteMembership(String invitee, String siteName, String role, String runAsUser, boolean overrideExisting)
invitee - siteName - role - runAsUser - siteService - overrideExisting - public void deleteAuthenticationIfUnused(String inviteeUserName, String currentInviteId)
inviteeUserName - currentInviteId - TODOauthenticationservice - personService - workflowService - public void cancelInvitation(Map<String,Object> executionVariables, String currentInviteId)
executionVariables - public void sendNominatedInvitation(String inviteId, Map<String,Object> executionVariables)
public void approveModeratedInvitation(Map<String,Object> executionVariables)
public void rejectModeratedInvitation(Map<String,Object> vars)
vars - public void setMessageService(MessageService messageService)
messageService - the messageService to setpublic void setRepositoryHelper(Repository repositoryHelper)
repositoryHelper - the repositoryHelper to setpublic void setServiceRegistry(ServiceRegistry serviceRegistry)
serviceRegistry - the serviceRegistry to setCopyright © 2005–2014 Alfresco Software. All rights reserved.