com.atlassian.jira.pageobjects.pages.admin.workflow
Class WorkflowDesignerPage

java.lang.Object
  extended by com.atlassian.jira.pageobjects.pages.AbstractJiraPage
      extended by com.atlassian.jira.pageobjects.pages.admin.workflow.WorkflowDesignerPage
All Implemented Interfaces:
WorkflowHeader, com.atlassian.pageobjects.Page

public class WorkflowDesignerPage
extends AbstractJiraPage

Represents the workflow designer page for a particular workflow!

Since:
v4.4

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.pageobjects.pages.admin.workflow.WorkflowHeader
WorkflowHeader.WorkflowMode<T extends WorkflowHeader>
 
Field Summary
 
Fields inherited from class com.atlassian.jira.pageobjects.pages.AbstractJiraPage
body, driver, elementFinder, footerElement, metaElement, pageBinder, timeouts
 
Constructor Summary
WorkflowDesignerPage(String workflowName, boolean isDraft)
           
 
Method Summary
 boolean canCreateOrEditDraft()
           
 boolean canDiscard()
           
 boolean canEditNameOrDescription()
           
 boolean canPublish()
           
 boolean canViewDraft()
           
<T extends WorkflowHeader>
T
createDraft(WorkflowHeader.WorkflowMode<T> mode)
           
<T extends WorkflowHeader>
T
createDraftInMode(WorkflowHeader.WorkflowMode<T> mode)
           
 EditWorkflowNameAndDescriptionDialog editNameOrDescription()
           
 WorkflowHeader.WorkflowMode<?> getCurrentMode()
           
 List<String> getInfoMessages()
           
 List<String> getSharedProjects()
           
 String getUrl()
           
 List<String> getWarningMessages()
           
 String getWorkflowDescription()
           
 String getWorkflowName()
           
 ViewWorkflowSteps gotoLiveWorkflow()
           
 boolean hasLinkToLiveWorkflow()
           
 void init()
           
 boolean isActive()
           
 com.atlassian.pageobjects.elements.query.TimedCondition isAt()
          Timed condition checking if we're at given page.
 boolean isDraft()
           
 boolean isInactive()
           
 boolean isSystem()
           
 DiscardDraftDialog openDiscardDialog()
           
 PublishDialog openPublishDialog()
           
<T extends WorkflowHeader>
T
setCurrentEditMode(WorkflowHeader.WorkflowMode<T> mode)
           
 void setCurrentViewMode(WorkflowHeader.WorkflowMode<?> mode)
           
 ProjectSharedBy sharedBy()
           
 
Methods inherited from class com.atlassian.jira.pageobjects.pages.AbstractJiraPage
back, createXsrfUrl, doWait, execKeyboardShortcut, getHeader, getPageTitle, getXsrfToken, isAdmin, isLoggedIn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkflowDesignerPage

public WorkflowDesignerPage(String workflowName,
                            boolean isDraft)
Method Detail

init

public void init()

isAt

public com.atlassian.pageobjects.elements.query.TimedCondition isAt()
Description copied from class: AbstractJiraPage
Timed condition checking if we're at given page.

Specified by:
isAt in class AbstractJiraPage
Returns:
timed condition checking, if the test is at given page

getUrl

public String getUrl()

canCreateOrEditDraft

public boolean canCreateOrEditDraft()
Specified by:
canCreateOrEditDraft in interface WorkflowHeader

canDiscard

public boolean canDiscard()
Specified by:
canDiscard in interface WorkflowHeader

canViewDraft

public boolean canViewDraft()
Specified by:
canViewDraft in interface WorkflowHeader

canEditNameOrDescription

public boolean canEditNameOrDescription()
Specified by:
canEditNameOrDescription in interface WorkflowHeader

canPublish

public boolean canPublish()
Specified by:
canPublish in interface WorkflowHeader

createDraftInMode

public <T extends WorkflowHeader> T createDraftInMode(WorkflowHeader.WorkflowMode<T> mode)
Specified by:
createDraftInMode in interface WorkflowHeader

createDraft

public <T extends WorkflowHeader> T createDraft(WorkflowHeader.WorkflowMode<T> mode)
Specified by:
createDraft in interface WorkflowHeader

setCurrentEditMode

public <T extends WorkflowHeader> T setCurrentEditMode(WorkflowHeader.WorkflowMode<T> mode)
Specified by:
setCurrentEditMode in interface WorkflowHeader

setCurrentViewMode

public void setCurrentViewMode(WorkflowHeader.WorkflowMode<?> mode)
Specified by:
setCurrentViewMode in interface WorkflowHeader

openDiscardDialog

public DiscardDraftDialog openDiscardDialog()
Specified by:
openDiscardDialog in interface WorkflowHeader

editNameOrDescription

public EditWorkflowNameAndDescriptionDialog editNameOrDescription()
Specified by:
editNameOrDescription in interface WorkflowHeader

getCurrentMode

public WorkflowHeader.WorkflowMode<?> getCurrentMode()
Specified by:
getCurrentMode in interface WorkflowHeader

getInfoMessages

public List<String> getInfoMessages()
Specified by:
getInfoMessages in interface WorkflowHeader

getSharedProjects

public List<String> getSharedProjects()
Specified by:
getSharedProjects in interface WorkflowHeader

getWarningMessages

public List<String> getWarningMessages()
Specified by:
getWarningMessages in interface WorkflowHeader

getWorkflowDescription

public String getWorkflowDescription()
Specified by:
getWorkflowDescription in interface WorkflowHeader

getWorkflowName

public String getWorkflowName()
Specified by:
getWorkflowName in interface WorkflowHeader

gotoLiveWorkflow

public ViewWorkflowSteps gotoLiveWorkflow()
Specified by:
gotoLiveWorkflow in interface WorkflowHeader

hasLinkToLiveWorkflow

public boolean hasLinkToLiveWorkflow()
Specified by:
hasLinkToLiveWorkflow in interface WorkflowHeader

isActive

public boolean isActive()
Specified by:
isActive in interface WorkflowHeader

isDraft

public boolean isDraft()
Specified by:
isDraft in interface WorkflowHeader

isInactive

public boolean isInactive()
Specified by:
isInactive in interface WorkflowHeader

isSystem

public boolean isSystem()
Specified by:
isSystem in interface WorkflowHeader

openPublishDialog

public PublishDialog openPublishDialog()
Specified by:
openPublishDialog in interface WorkflowHeader

sharedBy

public ProjectSharedBy sharedBy()
Specified by:
sharedBy in interface WorkflowHeader


Copyright © 2002-2014 Atlassian. All Rights Reserved.