com.atlassian.jira.dev.backdoor
Class ProjectBackdoor
java.lang.Object
com.atlassian.jira.dev.backdoor.ProjectBackdoor
public class ProjectBackdoor
- extends Object
Use this backdoor to manipulate Projects as part of setup for tests.
This class should only be called by the ProjectControl
.
- Since:
- v5.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProjectBackdoor
public ProjectBackdoor(ProjectService projectService,
PermissionSchemeManager permissionSchemeManager,
UserUtil userUtil,
IssueTypeSchemeManager issueTypeSchemeManager)
addProject
public javax.ws.rs.core.Response 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.
- Returns:
- an OK response
setPermissionScheme
public javax.ws.rs.core.Response setPermissionScheme(long projectId,
long schemeId)
setDefaultIssueType
public javax.ws.rs.core.Response setDefaultIssueType(long projectId,
String issueTypeId)
Copyright © 2002-2012 Atlassian. All Rights Reserved.