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

java.lang.Object
  extended by com.atlassian.jira.functest.framework.AbstractFuncTestUtil
      extended by com.atlassian.jira.functest.framework.admin.WorkflowSchemesImpl
All Implemented Interfaces:
WorkflowSchemes, FuncTestLogger, Navigable<WorkflowSchemes>

public class WorkflowSchemesImpl
extends AbstractFuncTestUtil
implements WorkflowSchemes

Default implementation of WorkflowSchemes.

Since:
v4.3

Field Summary
 
Fields inherited from class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
environmentData, FS, locators, logger, logIndentLevel, tester
 
Constructor Summary
WorkflowSchemesImpl(net.sourceforge.jwebunit.WebTester tester, JIRAEnvironmentData environmentData, int logIndentLevel)
           
 
Method Summary
 Integer addWorkflowScheme(String name, String description)
          Add new workflow scheme with given name and description.
 WorkflowSchemes assignWorkflow(String schemeName, String issueTypeId, String workflowName)
          For given scheme identified by schemeName, assign a new workflow mapping between issue identified by issueTypeName and workflow identified by workflowName.
 WorkflowSchemes assignWorkflows(String schemeId, Map<String,String> workflowMappings)
          For given scheme identified by schemeName, assign workflowMappings, where keys represent issue type names and values represent workflow name.
 WorkflowSchemes assignWorkflowToAllIssueTypes(String schemeId, String workflowName)
          For given scheme identified by schemeName, assign workflow identified by workflowName to all issue types.
 WorkflowSchemes goTo()
          Go there.
 
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

WorkflowSchemesImpl

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

goTo

public WorkflowSchemes goTo()
Description copied from interface: Navigable
Go there.

Specified by:
goTo in interface Navigable<WorkflowSchemes>
Returns:
this instance

addWorkflowScheme

public Integer addWorkflowScheme(String name,
                                 String description)
Description copied from interface: WorkflowSchemes
Add new workflow scheme with given name and description.

Specified by:
addWorkflowScheme in interface WorkflowSchemes
Parameters:
name - name of the new scheme
description - description of the new scheme
Returns:
new workflow scheme ID

assignWorkflows

public WorkflowSchemes assignWorkflows(String schemeId,
                                       Map<String,String> workflowMappings)
Description copied from interface: WorkflowSchemes
For given scheme identified by schemeName, assign workflowMappings, where keys represent issue type names and values represent workflow name.

Specified by:
assignWorkflows in interface WorkflowSchemes
Parameters:
schemeId - name of the scheme to edit
workflowMappings - map representing mappings between issue types names and workflow names
Returns:
this config instance
See Also:
FunctTestConstants

assignWorkflow

public WorkflowSchemes assignWorkflow(String schemeName,
                                      String issueTypeId,
                                      String workflowName)
Description copied from interface: WorkflowSchemes
For given scheme identified by schemeName, assign a new workflow mapping between issue identified by issueTypeName and workflow identified by workflowName.

Specified by:
assignWorkflow in interface WorkflowSchemes
Parameters:
schemeName - id of the scheme to edit
issueTypeId - name of the issue type to map
workflowName - name of the workflow to map
Returns:
this config instance
See Also:
FunctTestConstants

assignWorkflowToAllIssueTypes

public WorkflowSchemes assignWorkflowToAllIssueTypes(String schemeId,
                                                     String workflowName)
Description copied from interface: WorkflowSchemes
For given scheme identified by schemeName, assign workflow identified by workflowName to all issue types.

Specified by:
assignWorkflowToAllIssueTypes in interface WorkflowSchemes
Parameters:
schemeId - id of the scheme to edit
workflowName - name of the workflow to map
Returns:
this config instance
See Also:
FunctTestConstants.ISSUE_ALL, WorkflowSchemes.assignWorkflow(String, String, String)


Copyright © 2002-2012 Atlassian. All Rights Reserved.