com.atlassian.jira.workflow
Class JiraDraftWorkflow

java.lang.Object
  extended by com.atlassian.jira.workflow.AbstractJiraWorkflow
      extended by com.atlassian.jira.workflow.JiraDraftWorkflow
All Implemented Interfaces:
JiraWorkflow, java.lang.Comparable<JiraWorkflow>

public class JiraDraftWorkflow
extends AbstractJiraWorkflow

This class represents an draft workflow, that is a copy of an active workflow that may be edited, (and eventually) be used to overwrite an active workflow. It is stored in a separate database table from the main workflows.

Since:
v3.13

Field Summary
 
Fields inherited from class com.atlassian.jira.workflow.AbstractJiraWorkflow
workflowManager
 
Fields inherited from interface com.atlassian.jira.workflow.JiraWorkflow
ACTION_ORIGIN_STEP_ID, ACTION_TYPE_ALL, ACTION_TYPE_COMMON, ACTION_TYPE_GLOBAL, ACTION_TYPE_INITIAL, ACTION_TYPE_ORDINARY, DEFAULT_WORKFLOW_NAME, DRAFT, JIRA_META_ATTRIBUTE_ALLOWED_LIST, JIRA_META_ATTRIBUTE_EDIT_ALLOWED, JIRA_META_ATTRIBUTE_EXCLUDE_RESOLUTION, JIRA_META_ATTRIBUTE_I18N, JIRA_META_ATTRIBUTE_I18N_SUBMIT, JIRA_META_ATTRIBUTE_INCLUDE_RESOLUTION, JIRA_META_ATTRIBUTE_KEY_PREFIX, JIRA_META_ATTRIBUTE_PERMISSION, JIRA_META_UPDATE_AUTHOR_NAME, JIRA_META_UPDATED_DATE, LIVE, STEP_STATUS_KEY, WORKFLOW_DESCRIPTION_ATTRIBUTE, WORKFLOW_VIEW_FIELDLAYOUT_KEY_ATTRIBUTE
 
Constructor Summary
protected JiraDraftWorkflow(java.lang.String name, WorkflowManager workflowManager, com.opensymphony.workflow.loader.WorkflowDescriptor workflowDescriptor)
           
 
Method Summary
 java.lang.String getName()
           
 boolean isDraftWorkflow()
          This method will always return true as this implementation is always used for draft Workflows.
 boolean isEditable()
          A draft Workflow is always editable.
 
Methods inherited from class com.atlassian.jira.workflow.AbstractJiraWorkflow
compareTo, equals, getActionsForScreen, getActionsWithResult, getActionType, getAllActions, getDescription, getDescriptor, getLinkedStatus, getLinkedStatuses, getLinkedStatusObject, getLinkedStatusObjects, getLinkedStep, getMode, getNextActionId, getPostFunctionsForTransition, getStepsForTransition, getStepsWithAction, getUpdateAuthorName, getUpdatedDate, hasDraftWorkflow, hashCode, isActive, isCommonAction, isDefault, isGlobalAction, isInitialAction, isOrdinaryAction, isSystemWorkflow, removeStep, reset
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JiraDraftWorkflow

protected JiraDraftWorkflow(java.lang.String name,
                            WorkflowManager workflowManager,
                            com.opensymphony.workflow.loader.WorkflowDescriptor workflowDescriptor)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface JiraWorkflow
Specified by:
getName in class AbstractJiraWorkflow

isEditable

public boolean isEditable()
                   throws WorkflowException
A draft Workflow is always editable.

Specified by:
isEditable in interface JiraWorkflow
Overrides:
isEditable in class AbstractJiraWorkflow
Returns:
true
Throws:
WorkflowException
See Also:
JiraWorkflow.isEditable()

isDraftWorkflow

public boolean isDraftWorkflow()
This method will always return true as this implementation is always used for draft Workflows.

Returns:
true
See Also:
JiraWorkflow.isDraftWorkflow()


Copyright © 2002-2010 Atlassian. All Rights Reserved.