|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DraftWorkflowStore
This store is used to persist copies of active workflows. This is useful when editing an active workflow, without applying any of the changes yet.
Method Summary | |
---|---|
JiraWorkflow |
createDraftWorkflow(java.lang.String authorName,
JiraWorkflow parentWorkflow)
Creates a temporary workflow linked back to the named active workflow by id. |
boolean |
deleteDraftWorkflow(java.lang.String parentWorkflowName)
Removes a temporary workflow linked to the workflow name. |
JiraWorkflow |
getDraftWorkflow(java.lang.String parentWorkflowName)
This will retrieve an draft workflow that is related to the named saved workflow. |
JiraWorkflow |
updateDraftWorkflow(java.lang.String username,
java.lang.String parentWorkflowName,
JiraWorkflow workflow)
Updates a temporary workflow with the one provided for the parent workflow name passed in. |
JiraWorkflow |
updateDraftWorkflowWithoutAudit(java.lang.String parentWorkflowName,
JiraWorkflow workflow)
Updates a temporary workflow with the one provided for the parent workflow name passed in. |
Method Detail |
---|
JiraWorkflow getDraftWorkflow(java.lang.String parentWorkflowName) throws DataAccessException
parentWorkflowName
- of the saved parent workflow.
JiraDraftWorkflow
.
DataAccessException
- DataAccessExceptionJiraWorkflow createDraftWorkflow(java.lang.String authorName, JiraWorkflow parentWorkflow) throws DataAccessException, java.lang.IllegalStateException, java.lang.IllegalArgumentException
authorName
- The username of the user making the editparentWorkflow
- The parent workflow to copy for the draft workflow.
JiraDraftWorkflow
.
DataAccessException
- if there are any db errors
java.lang.IllegalStateException
- thrown if you are adding an draft workflow which already exists for the
provided parent workflow
java.lang.IllegalArgumentException
- If the username is nullboolean deleteDraftWorkflow(java.lang.String parentWorkflowName) throws DataAccessException
parentWorkflowName
- of the saved parent workflow.
DataAccessException
- RuntimeException wrapper around a DB Exception.JiraWorkflow updateDraftWorkflow(java.lang.String username, java.lang.String parentWorkflowName, JiraWorkflow workflow) throws DataAccessException
username
- is the username of the user updating this draft workflow.parentWorkflowName
- of the saved parent workflow.workflow
- The JiraWorkflow
to use for the update.
JiraDraftWorkflow
.
DataAccessException
- RuntimeException wrapper around a DB Exception.JiraWorkflow updateDraftWorkflowWithoutAudit(java.lang.String parentWorkflowName, JiraWorkflow workflow) throws DataAccessException
updateDraftWorkflow(String, String, JiraWorkflow)
instead.
parentWorkflowName
- of the saved parent workflow.workflow
- The JiraWorkflow
to use for the update.
JiraDraftWorkflow
.
DataAccessException
- RuntimeException wrapper around a DB Exception.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |