com.atlassian.jira.functest.framework.backdoor
Class ProjectControl

java.lang.Object
  extended by com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.RestApiClient<T>
      extended by com.atlassian.jira.functest.framework.backdoor.BackdoorControl<ProjectControl>
          extended by com.atlassian.jira.functest.framework.backdoor.ProjectControl
All Implemented Interfaces:
FuncTestLogger

public class ProjectControl
extends BackdoorControl<ProjectControl>

Use this class from func/selenium/page-object tests that need to manipulate Projects. See ProjectBackdoor for the code this plugs into at the back-end.

Since:
v5.0

Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.RestApiClient
com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.RestApiClient.Method
 
Field Summary
 
Fields inherited from class com.atlassian.jira.functest.framework.backdoor.BackdoorControl
restPathRootLength
 
Fields inherited from class com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.RestApiClient
REST_VERSION
 
Constructor Summary
ProjectControl(com.atlassian.jira.webtests.util.JIRAEnvironmentData environmentData)
           
 
Method Summary
 void addProject(String name, String key, String lead)
          Adds a project, or if a project with that name exists, does almost nothing.
 void setDefaultIssueType(long projectId, String issueTypeId)
           
 void setPermissionScheme(long projectId, long schemeId)
          Sets the permission scheme for the given Project to be the given Scheme.
 
Methods inherited from class com.atlassian.jira.functest.framework.backdoor.BackdoorControl
createResource, get, get, get, getId, log, log, post
 
Methods inherited from class com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.RestApiClient
anonymous, errorResponse, expanded, loginAs, loginAs, percentEncode, resourceRoot, setOf, toResponse, toResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectControl

public ProjectControl(com.atlassian.jira.webtests.util.JIRAEnvironmentData environmentData)
Method Detail

addProject

public void addProject(String name,
                       String key,
                       String lead)
Adds a project, or if a project with that name exists, does almost nothing. Choose a project name that will not clash with operational links on the page such as "View Projects" or "Add".

Parameters:
name - the name of the project.
key - the project key.
lead - the username of the project lead.

setPermissionScheme

public void setPermissionScheme(long projectId,
                                long schemeId)
Sets the permission scheme for the given Project to be the given Scheme.

Parameters:
projectId - the id of the project.
schemeId - the id of the Permission Scheme.

setDefaultIssueType

public void setDefaultIssueType(long projectId,
                                String issueTypeId)


Copyright © 2002-2012 Atlassian. All Rights Reserved.