Class GrouperWorkflowInstanceService
java.lang.Object
edu.internet2.middleware.grouper.app.workflow.GrouperWorkflowInstanceService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
approveWorkflow
(GrouperWorkflowInstance instance, Subject subject, Map<GrouperWorkflowConfigParam, String> paramNamesValues) approve workflowstatic boolean
canInstanceBeApproved
(GrouperWorkflowInstance instance, Subject subject) can the given instance be approved by the given subjectstatic boolean
canInstanceBeViewed
(GrouperWorkflowInstance instance, Subject subject) can the given instance be viewed by the given subjectstatic void
disapproveWorkflow
(GrouperWorkflowInstance instance, Subject subject, Map<GrouperWorkflowConfigParam, String> paramNamesValues) disapprove workflowgetApprovers
(GrouperWorkflowApprovalState approvalState) get list of approvers for given approval statestatic String
getCurrentHtmlContent
(GrouperWorkflowInstance instance) retrieves current html content from workflow instancestatic GrouperWorkflowInstance
getWorkflowInstance
(String attributeAssignId) get workflow instance by attribute assign idstatic List<GrouperWorkflowInstance>
getWorkflowInstances
(Group group) get workflow instances for a given groupstatic List<GrouperWorkflowInstance>
getWorkflowInstances
(Group group, String grouperWorkflowConfigId) get workflow instances for a given group and worklfow config idstatic List<GrouperWorkflowInstance>
getWorkflowInstancesSubmitted
(Subject subject) get list of instances submittedstatic List<GrouperWorkflowInstance>
get instances waiting for approval for this subjectstatic void
saveInitiateStateInstance
(GrouperWorkflowConfig grouperWorkflowConfig, Subject subject, Map<GrouperWorkflowConfigParam, String> paramNamesValues, Group group) save instance when workflow is initiatedstatic void
saveOrUpdateWorkflowInstance
(GrouperWorkflowInstance workflowInstance, GrouperObject grouperObject) save workflow instance attributesstatic boolean
subjectAlreadySubmittedWorkflow
(Subject subject, Group group) did this subject already submit workflowstatic Subject
find subject who initiated workflow from log entries
-
Constructor Details
-
GrouperWorkflowInstanceService
public GrouperWorkflowInstanceService()
-
-
Method Details
-
getWorkflowInstance
get workflow instance by attribute assign id- Parameters:
attributeAssignId
-- Returns:
-
getWorkflowInstances
get workflow instances for a given group- Parameters:
group
-- Returns:
-
getWorkflowInstances
public static List<GrouperWorkflowInstance> getWorkflowInstances(Group group, String grouperWorkflowConfigId) get workflow instances for a given group and worklfow config id- Parameters:
group
-- Returns:
-
findGroupsWithWorkflowInstance
- Returns:
- set of groups that have workflow instances
-
saveOrUpdateWorkflowInstance
public static void saveOrUpdateWorkflowInstance(GrouperWorkflowInstance workflowInstance, GrouperObject grouperObject) save workflow instance attributes- Parameters:
workflowInstance
-grouperObject
-
-
approveWorkflow
public static void approveWorkflow(GrouperWorkflowInstance instance, Subject subject, Map<GrouperWorkflowConfigParam, String> paramNamesValues) approve workflow- Parameters:
instance
-subject
-
-
disapproveWorkflow
public static void disapproveWorkflow(GrouperWorkflowInstance instance, Subject subject, Map<GrouperWorkflowConfigParam, String> paramNamesValues) disapprove workflow- Parameters:
instance
-subject
-
-
saveInitiateStateInstance
public static void saveInitiateStateInstance(GrouperWorkflowConfig grouperWorkflowConfig, Subject subject, Map<GrouperWorkflowConfigParam, String> paramNamesValues, Group group) save instance when workflow is initiated -
subjectAlreadySubmittedWorkflow
did this subject already submit workflow- Parameters:
subject
-group
-- Returns:
-
getWorkflowInstancesSubmitted
get list of instances submitted- Parameters:
subject
-- Returns:
-
subjectWhoInitiatedWorkflow
find subject who initiated workflow from log entries- Parameters:
instance
-- Returns:
-
getWorkflowInstancesWaitingForApproval
get instances waiting for approval for this subject- Parameters:
subject
-- Returns:
-
canInstanceBeViewed
can the given instance be viewed by the given subject- Parameters:
instance
-subject
-- Returns:
-
canInstanceBeApproved
can the given instance be approved by the given subject- Parameters:
instance
-subject
-- Returns:
-
getApprovers
get list of approvers for given approval state- Parameters:
approvalState
-- Returns:
-
getCurrentHtmlContent
retrieves current html content from workflow instance- Parameters:
workflow
- instance- Returns:
-