Class OfBizWorkflowDescriptorStore

java.lang.Object
com.atlassian.jira.workflow.OfBizWorkflowDescriptorStore
All Implemented Interfaces:
WorkflowDescriptorStore

public class OfBizWorkflowDescriptorStore extends Object implements WorkflowDescriptorStore
Provides an OfBiz implementation of a WorkflowDescriptorStore
Since:
v3.13
  • Field Details

  • Constructor Details

    • OfBizWorkflowDescriptorStore

      public OfBizWorkflowDescriptorStore(OfBizDelegator ofBizDelegator)
  • Method Details

    • getWorkflow

      public ImmutableWorkflowDescriptor getWorkflow(String name) throws com.opensymphony.workflow.FactoryException
      Description copied from interface: WorkflowDescriptorStore
      Retrieves a WorkflowDescriptor from the underlying store. Returns null if no WorkflowDescriptor can be found
      Specified by:
      getWorkflow in interface WorkflowDescriptorStore
      Parameters:
      name - The workflow name
      Returns:
      Null or the matching WorkflowDescriptor
      Throws:
      com.opensymphony.workflow.FactoryException - If there's an error constructing the WorkflowDescriptor from its underlying representation
    • removeWorkflow

      public boolean removeWorkflow(String name)
      Description copied from interface: WorkflowDescriptorStore
      Removes a workflow from the underlying store.
      Specified by:
      removeWorkflow in interface WorkflowDescriptorStore
      Parameters:
      name - The workflow name
      Returns:
      true if any records were delete, false otherwise
    • saveWorkflow

      public boolean saveWorkflow(String name, com.opensymphony.workflow.loader.WorkflowDescriptor workflowDescriptor, boolean replace) throws DataAccessException
      Description copied from interface: WorkflowDescriptorStore
      Saves or updates a workflowDescriptor. If the descriptor already exists, and the replace flag is true, an update will be done. Otherwise, this method will simply create a new value in the database (if none exists yet).
      Specified by:
      saveWorkflow in interface WorkflowDescriptorStore
      Parameters:
      name - The name of the workflow
      workflowDescriptor - The WorkflowDescriptor to save/update in the underlying store
      replace - true if an update should be done, if the workflow already exists, false otherwise
      Returns:
      true if the update was carried out successfully, false otherwise
      Throws:
      DataAccessException - If there was a problem, storing the workflowdescriptor
    • getWorkflowNames

      public String[] getWorkflowNames()
      Description copied from interface: WorkflowDescriptorStore
      Returns an array of all the workflowNames stored.
      Specified by:
      getWorkflowNames in interface WorkflowDescriptorStore
      Returns:
      an array of all the workflowNames stored.
    • getAllJiraWorkflowDTOs

      public List<JiraWorkflowDTO> getAllJiraWorkflowDTOs()
      Description copied from interface: WorkflowDescriptorStore
      Returns a list of all the workflows stored in the underlying store.
      Specified by:
      getAllJiraWorkflowDTOs in interface WorkflowDescriptorStore
      Returns:
      A list of JiraWorkflowDTOs