Class GrouperWorkflowInstanceService

java.lang.Object
edu.internet2.middleware.grouper.app.workflow.GrouperWorkflowInstanceService

public class GrouperWorkflowInstanceService extends Object
  • Constructor Details

    • GrouperWorkflowInstanceService

      public GrouperWorkflowInstanceService()
  • Method Details

    • getWorkflowInstance

      public static GrouperWorkflowInstance getWorkflowInstance(String attributeAssignId)
      get workflow instance by attribute assign id
      Parameters:
      attributeAssignId -
      Returns:
    • getWorkflowInstances

      public static List<GrouperWorkflowInstance> getWorkflowInstances(Group group)
      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

      public static Set<Group> 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

      public static boolean subjectAlreadySubmittedWorkflow(Subject subject, Group group)
      did this subject already submit workflow
      Parameters:
      subject -
      group -
      Returns:
    • getWorkflowInstancesSubmitted

      public static List<GrouperWorkflowInstance> getWorkflowInstancesSubmitted(Subject subject)
      get list of instances submitted
      Parameters:
      subject -
      Returns:
    • subjectWhoInitiatedWorkflow

      public static Subject subjectWhoInitiatedWorkflow(GrouperWorkflowInstance instance)
      find subject who initiated workflow from log entries
      Parameters:
      instance -
      Returns:
    • getWorkflowInstancesWaitingForApproval

      public static List<GrouperWorkflowInstance> getWorkflowInstancesWaitingForApproval(Subject subject)
      get instances waiting for approval for this subject
      Parameters:
      subject -
      Returns:
    • canInstanceBeViewed

      public static boolean canInstanceBeViewed(GrouperWorkflowInstance instance, Subject subject)
      can the given instance be viewed by the given subject
      Parameters:
      instance -
      subject -
      Returns:
    • canInstanceBeApproved

      public static boolean canInstanceBeApproved(GrouperWorkflowInstance instance, Subject subject)
      can the given instance be approved by the given subject
      Parameters:
      instance -
      subject -
      Returns:
    • getApprovers

      public static List<Subject> getApprovers(GrouperWorkflowApprovalState approvalState)
      get list of approvers for given approval state
      Parameters:
      approvalState -
      Returns:
    • getCurrentHtmlContent

      public static String getCurrentHtmlContent(GrouperWorkflowInstance instance)
      retrieves current html content from workflow instance
      Parameters:
      workflow - instance
      Returns: