public class ProjectsControl extends BackdoorControl<ProjectsControl>
BackdoorControl.AddXsrfNoCheckTokenFilter, BackdoorControl.JsonMediaTypeFilter
ADMIN_REST_PATH, API_REST_PATH, DEFAULT_REST_PATH, rootPath
Constructor and Description |
---|
ProjectsControl(BambooEnvironmentData environmentData) |
Modifier and Type | Method and Description |
---|---|
List<Long> |
assignedRepositoryIds(String projectKey) |
void |
assignRssRepository(String projectKey,
String repositoryId) |
RestProject |
createProject(com.atlassian.bamboo.specs.api.builders.project.Project project) |
RestProject |
createProject(com.atlassian.bamboo.specs.api.model.project.ProjectProperties projectProperties) |
RestProject |
createProject(String projectKey,
String projectName) |
RestProject |
createProject(String projectKey,
String projectName,
boolean temporary,
boolean publicAccess) |
void |
deleteAllProjects()
Delete all plans and projects
|
void |
deleteProject(String projectKey) |
boolean |
projectExists(String projectKey) |
void |
tearDown()
Cleanup resources
|
void |
unassignRssRepository(String projectKey,
String repositoryId) |
void |
updateProjectVariable(String projectKey,
String variableKey,
String variableValue) |
client, createResource, createResourceForPath, get, getEnvironmentData, getRestModulePath, percentEncode, ping, post, resourceRoot
public ProjectsControl(@NotNull BambooEnvironmentData environmentData)
public RestProject createProject(com.atlassian.bamboo.specs.api.builders.project.Project project)
public RestProject createProject(com.atlassian.bamboo.specs.api.model.project.ProjectProperties projectProperties)
public RestProject createProject(String projectKey, String projectName)
public RestProject createProject(String projectKey, String projectName, boolean temporary, boolean publicAccess)
public void updateProjectVariable(String projectKey, String variableKey, String variableValue)
public void deleteProject(String projectKey)
public void deleteAllProjects()
public boolean projectExists(String projectKey)
public void tearDown()
BackdoorControl
tearDown
in class BackdoorControl<ProjectsControl>
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.