com.atlassian.jira.functest.framework.admin
Class ViewWorkflowsImpl

java.lang.Object
  extended by com.atlassian.jira.functest.framework.AbstractFuncTestUtil
      extended by com.atlassian.jira.functest.framework.admin.ViewWorkflowsImpl
All Implemented Interfaces:
ViewWorkflows, com.atlassian.jira.testkit.client.log.FuncTestLogger

public class ViewWorkflowsImpl
extends AbstractFuncTestUtil
implements ViewWorkflows

Default implementation of ViewWorkflows

Since:
v4.3

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.functest.framework.admin.ViewWorkflows
ViewWorkflows.WorkflowItem, ViewWorkflows.WorkflowItemsList, ViewWorkflows.WorkflowState
 
Field Summary
 
Fields inherited from class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
environmentData, FS, locators, logger, tester
 
Constructor Summary
ViewWorkflowsImpl(net.sourceforge.jwebunit.WebTester tester, JIRAEnvironmentData environmentData, int logIndentLevel, Navigation navigation)
           
 
Method Summary
 ViewWorkflows.WorkflowItemsList active()
           
 ViewWorkflows addWorkflow(String name, String description)
          Add new workflow with given name and description.
 WorkflowDesignerPage copyWorkflow(String nameToCopy, String newWorkflowName)
          Cope workflow with given nameToCopy as a new workflow named newWorkflowName.
 WorkflowDesignerPage copyWorkflow(String nameToCopy, String newWorkflowName, String newWorkflowDescription)
           
 WorkflowSteps createDraft(String name)
           
 WorkflowDesignerPage edit(String workflowName)
           
 ViewWorkflows goTo()
          Go to 'Workflows' page.
 ViewWorkflows.WorkflowItemsList inactive()
           
 boolean isEditable(String workflowName)
           
 boolean isImportWorkflowFromXmlButtonPresent()
          Whether the import workflow from xml operation is available.
 ViewWorkflows launchDesigner(String workflowName)
          Launch the Workflow Designer for the given workflow
 PublishDraftPage publishDraft(String name)
           
 ViewWorkflowPage view(String workflowName)
           
 WorkflowSteps workflowSteps(String workflowName)
          Go to 'Workflow steps' page for given workflow
 
Methods inherited from class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
childLogIndentLevel, getAssertions, getEnvironmentData, getFuncTestHelperFactory, getLogger, log, log, navigation, submitAtPage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewWorkflowsImpl

public ViewWorkflowsImpl(net.sourceforge.jwebunit.WebTester tester,
                         JIRAEnvironmentData environmentData,
                         int logIndentLevel,
                         Navigation navigation)
Method Detail

goTo

public ViewWorkflows goTo()
Description copied from interface: ViewWorkflows
Go to 'Workflows' page.

Specified by:
goTo in interface ViewWorkflows
Returns:
this workflows instance

addWorkflow

public ViewWorkflows addWorkflow(String name,
                                 String description)
Description copied from interface: ViewWorkflows
Add new workflow with given name and description.

Specified by:
addWorkflow in interface ViewWorkflows
Parameters:
name - name of the new workflow
description - description of the new workflow
Returns:
this workflows instance

edit

public WorkflowDesignerPage edit(String workflowName)
Specified by:
edit in interface ViewWorkflows

createDraft

public WorkflowSteps createDraft(String name)
Specified by:
createDraft in interface ViewWorkflows

publishDraft

public PublishDraftPage publishDraft(String name)
Specified by:
publishDraft in interface ViewWorkflows

copyWorkflow

public WorkflowDesignerPage copyWorkflow(String nameToCopy,
                                         String newWorkflowName)
Description copied from interface: ViewWorkflows
Cope workflow with given nameToCopy as a new workflow named newWorkflowName.

Specified by:
copyWorkflow in interface ViewWorkflows
Parameters:
nameToCopy - name of the workflow to copy (must exist)
newWorkflowName - name of the new workflow
Returns:
this workflows instance

copyWorkflow

public WorkflowDesignerPage copyWorkflow(String nameToCopy,
                                         String newWorkflowName,
                                         String newWorkflowDescription)
Specified by:
copyWorkflow in interface ViewWorkflows

workflowSteps

public WorkflowSteps workflowSteps(String workflowName)
Description copied from interface: ViewWorkflows
Go to 'Workflow steps' page for given workflow

Specified by:
workflowSteps in interface ViewWorkflows
Parameters:
workflowName - name of the workflow
Returns:
workflow steps

launchDesigner

public ViewWorkflows launchDesigner(String workflowName)
Description copied from interface: ViewWorkflows
Launch the Workflow Designer for the given workflow

Specified by:
launchDesigner in interface ViewWorkflows
Parameters:
workflowName - name of the workflow
Returns:
this workflows instance

isImportWorkflowFromXmlButtonPresent

public boolean isImportWorkflowFromXmlButtonPresent()
Description copied from interface: ViewWorkflows
Whether the import workflow from xml operation is available.

Specified by:
isImportWorkflowFromXmlButtonPresent in interface ViewWorkflows
Returns:
true, if the import workflow from xml operation is available; otherwise, false.

active

public ViewWorkflows.WorkflowItemsList active()
Specified by:
active in interface ViewWorkflows

inactive

public ViewWorkflows.WorkflowItemsList inactive()
Specified by:
inactive in interface ViewWorkflows

isEditable

public boolean isEditable(String workflowName)
Specified by:
isEditable in interface ViewWorkflows

view

public ViewWorkflowPage view(String workflowName)
Specified by:
view in interface ViewWorkflows


Copyright © 2002-2013 Atlassian. All Rights Reserved.