|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.invitation.site.InviteHelper
public class InviteHelper
Helper class to house utility methods common to more than one Invite Service Web Script
Constructor Summary | |
---|---|
InviteHelper()
|
Method Summary | |
---|---|
static void |
cleanUpStaleInviteeResources(java.lang.String inviteeUserName,
MutableAuthenticationDao authenticationDao,
PersonService personService,
WorkflowService workflowService)
Clean up invitee user account and person node when no longer in use. |
static void |
completeInviteTask(java.lang.String inviteId,
QName fullTaskName,
java.lang.String transitionId,
WorkflowService workflowService)
Complete the specified Invite Workflow Task for the invite workflow instance associated with the given invite ID, and follow the given transition upon completing the task |
static java.util.List |
findInvitePendingTasks(java.lang.String inviteeUserName,
WorkflowService workflowService)
Find invitePending tasks (in-progress) by the given invitee user name |
static WorkflowTask |
findInviteStartTask(java.lang.String inviteId,
WorkflowService workflowService)
Find an invite start task by the given task id. |
static InviteInfo |
getPendingInviteInfo(WorkflowTask startInviteTask,
ServiceRegistry serviceRegistry,
SiteService siteService)
Returns an InviteInfo instance for the given startInvite task (used for rendering the response). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InviteHelper()
Method Detail |
---|
public static WorkflowTask findInviteStartTask(java.lang.String inviteId, WorkflowService workflowService)
public static java.util.List findInvitePendingTasks(java.lang.String inviteeUserName, WorkflowService workflowService)
public static InviteInfo getPendingInviteInfo(WorkflowTask startInviteTask, ServiceRegistry serviceRegistry, SiteService siteService)
startInviteTask
- startInvite task to get invite info properties fromserviceRegistry
- service registry instancesiteService
- site service instance
public static void cleanUpStaleInviteeResources(java.lang.String inviteeUserName, MutableAuthenticationDao authenticationDao, PersonService personService, WorkflowService workflowService)
inviteeUserName
- authenticationDao
- personService
- workflowService
- public static void completeInviteTask(java.lang.String inviteId, QName fullTaskName, java.lang.String transitionId, WorkflowService workflowService)
inviteId
- the invite ID of the invite workflow instance for which
we want to complete the given taskfullTaskName
- qualified name of invite workflow task to completetransitionId
- the task transition to take on completion of
the task (or null, for the default transition)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |