public class WorkflowHeaderDelegate extends Object implements WorkflowHeader
WorkflowHeader.WorkflowMode<T extends WorkflowHeader>
Modifier and Type | Field and Description |
---|---|
static Pattern |
MY_PREFERENCES_REST |
protected TraceContext |
traceContext |
static Pattern |
WORKFLOW_ID |
Constructor and Description |
---|
WorkflowHeaderDelegate() |
public static final Pattern MY_PREFERENCES_REST
public static Pattern WORKFLOW_ID
@Inject protected TraceContext traceContext
public String getWorkflowName()
getWorkflowName
in interface WorkflowHeader
public String getWorkflowDescription()
getWorkflowDescription
in interface WorkflowHeader
public boolean isSystem()
isSystem
in interface WorkflowHeader
public ProjectSharedBy sharedBy()
sharedBy
in interface WorkflowHeader
public List<String> getSharedProjects()
getSharedProjects
in interface WorkflowHeader
public boolean canEditNameOrDescription()
canEditNameOrDescription
in interface WorkflowHeader
public EditWorkflowNameAndDescriptionDialog editNameOrDescription()
editNameOrDescription
in interface WorkflowHeader
public boolean canCreateOrEditDraft()
canCreateOrEditDraft
in interface WorkflowHeader
public boolean canDiscard()
canDiscard
in interface WorkflowHeader
public boolean canViewDraft()
canViewDraft
in interface WorkflowHeader
public DiscardDraftDialog openDiscardDialog()
openDiscardDialog
in interface WorkflowHeader
public boolean canPublish()
canPublish
in interface WorkflowHeader
public PublishDialog openPublishDialog()
openPublishDialog
in interface WorkflowHeader
public boolean isDraft()
isDraft
in interface WorkflowHeader
public boolean hasLinkToLiveWorkflow()
hasLinkToLiveWorkflow
in interface WorkflowHeader
public ViewWorkflowSteps gotoLiveWorkflow()
gotoLiveWorkflow
in interface WorkflowHeader
public boolean isActive()
isActive
in interface WorkflowHeader
public boolean isInactive()
isInactive
in interface WorkflowHeader
public List<String> getInfoMessages()
getInfoMessages
in interface WorkflowHeader
public List<String> getWarningMessages()
getWarningMessages
in interface WorkflowHeader
public WorkflowHeader.WorkflowMode<?> getCurrentMode()
getCurrentMode
in interface WorkflowHeader
public <T extends WorkflowHeader> T setCurrentEditMode(WorkflowHeader.WorkflowMode<T> mode)
setCurrentEditMode
in interface WorkflowHeader
public void setCurrentViewMode(WorkflowHeader.WorkflowMode<?> mode)
setCurrentViewMode
in interface WorkflowHeader
public <T extends WorkflowHeader> T createDraftInMode(WorkflowHeader.WorkflowMode<T> mode)
createDraftInMode
in interface WorkflowHeader
public <T extends WorkflowHeader> T createDraft(WorkflowHeader.WorkflowMode<T> mode)
createDraft
in interface WorkflowHeader
public com.atlassian.pageobjects.elements.query.TimedCondition isPresentCondition(String name)
Copyright © 2002-2016 Atlassian. All Rights Reserved.