java.lang.Object | |
↳ | com.atlassian.jira.workflow.CachingWorkflowDescriptorStore |
Used to cache workflowDescriptors in JIRA. This caches ImmutableWorkflowDescriptor
s.
These objects are very heavy weight and ideally we would not cache them, but it is the only way to
quickly give JIRA access to workflow objects. This is because the safe thing to cache is the workflow XML string but
converting this to an object graph will be expensive. Also please note that the implementation of
ImmutableWorkflowDescriptor
cannot guarantee 100% immutability.
JiraWorkflowFactory
, but it adds
some more concurrency controls to ensure consistency with the underlying store (such as the
OfBizWorkflowDescriptorStore
)
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a list of all the workflows stored in the underlying store.
| |||||||||||
Retrieves a com.opensymphony.workflow.loader.WorkflowDescriptor from the underlying store.
| |||||||||||
Returns an array of all the workflowNames stored.
| |||||||||||
Removes a workflow from the underlying store.
| |||||||||||
Saves or updates a workflowDescriptor.
|
[Expand]
Inherited Methods | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object | |||||||||||||||||||||
From interface
com.atlassian.jira.workflow.WorkflowDescriptorStore
|
Returns a list of all the workflows stored in the underlying store.
JiraWorkflowDTO
s
Retrieves a com.opensymphony.workflow.loader.WorkflowDescriptor from the underlying store. Returns null if no WorkflowDescriptor can be found
name | The workflow name |
---|
FactoryException |
---|
Returns an array of all the workflowNames stored.
Removes a workflow from the underlying store.
name | The workflow name |
---|
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).
name | The name of the workflow |
---|---|
workflowDescriptor | The com.opensymphony.workflow.loader.WorkflowDescriptor to save/update in the underlying store |
replace | true if an update should be done, if the workflow already exists, false otherwise |
DataAccessException |
---|