public class OfBizWorkflowDescriptorStore extends Object implements WorkflowDescriptorStore
WorkflowDescriptorStore
Modifier and Type | Field and Description |
---|---|
static String |
DESCRIPTOR_ENTITY_FIELD |
static String |
NAME_ENTITY_FIELD |
static String |
WORKFLOW_ENTITY_NAME |
Constructor and Description |
---|
OfBizWorkflowDescriptorStore(OfBizDelegator ofBizDelegator) |
Modifier and Type | Method and Description |
---|---|
List<JiraWorkflowDTO> |
getAllJiraWorkflowDTOs()
Returns a list of all the workflows stored in the underlying store.
|
ImmutableWorkflowDescriptor |
getWorkflow(String name)
Retrieves a
WorkflowDescriptor from the underlying store. |
String[] |
getWorkflowNames()
Returns an array of all the workflowNames stored.
|
boolean |
removeWorkflow(String name)
Removes a workflow from the underlying store.
|
boolean |
saveWorkflow(String name,
com.opensymphony.workflow.loader.WorkflowDescriptor workflowDescriptor,
boolean replace)
Saves or updates a workflowDescriptor.
|
public static final String WORKFLOW_ENTITY_NAME
public static final String NAME_ENTITY_FIELD
public static final String DESCRIPTOR_ENTITY_FIELD
public OfBizWorkflowDescriptorStore(OfBizDelegator ofBizDelegator)
public ImmutableWorkflowDescriptor getWorkflow(String name) throws com.opensymphony.workflow.FactoryException
WorkflowDescriptorStore
WorkflowDescriptor
from the underlying store. Returns
null if no WorkflowDescriptor can be foundgetWorkflow
in interface WorkflowDescriptorStore
name
- The workflow namecom.opensymphony.workflow.FactoryException
- If there's an error constructing the WorkflowDescriptor from its underlying representationpublic boolean removeWorkflow(String name)
WorkflowDescriptorStore
removeWorkflow
in interface WorkflowDescriptorStore
name
- The workflow namepublic boolean saveWorkflow(String name, com.opensymphony.workflow.loader.WorkflowDescriptor workflowDescriptor, boolean replace) throws DataAccessException
WorkflowDescriptorStore
saveWorkflow
in interface WorkflowDescriptorStore
name
- The name of the workflowworkflowDescriptor
- The WorkflowDescriptor
to save/update in the underlying storereplace
- true if an update should be done, if the workflow already exists, false otherwiseDataAccessException
- If there was a problem, storing the workflowdescriptorpublic String[] getWorkflowNames()
WorkflowDescriptorStore
getWorkflowNames
in interface WorkflowDescriptorStore
public List<JiraWorkflowDTO> getAllJiraWorkflowDTOs()
WorkflowDescriptorStore
getAllJiraWorkflowDTOs
in interface WorkflowDescriptorStore
JiraWorkflowDTO
sCopyright © 2002-2021 Atlassian. All Rights Reserved.