Class QuickFiltersControl
- java.lang.Object
-
- com.atlassian.bamboo.testutils.backdoor.BackdoorControl<QuickFiltersControl>
-
- com.atlassian.bamboo.testutils.backdoor.QuickFiltersControl
-
public class QuickFiltersControl extends BackdoorControl<QuickFiltersControl>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.atlassian.bamboo.testutils.backdoor.BackdoorControl
BackdoorControl.AddXsrfNoCheckTokenFilter, BackdoorControl.JsonMediaTypeFilter
-
-
Field Summary
-
Fields inherited from class com.atlassian.bamboo.testutils.backdoor.BackdoorControl
ADMIN_REST_PATH, API_REST_PATH, DEFAULT_REST_PATH, rootPath
-
-
Constructor Summary
Constructors Constructor Description QuickFiltersControl(@NotNull BambooEnvironmentData environmentData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createQuickFilter(RestQuickFilter quickFilter)
Create a quick filter.protected com.sun.jersey.api.client.WebResource
createResource()
Creates the resource that corresponds to the root of the TestKit REST API, using the values returned byBackdoorControl.getRestModulePath()
.void
deleteQuickFilter(long id)
Delete a quick filter by id.void
deleteQuickFilter(String name)
Delete a quick filter by name.List<RestQuickFilter>
getAllQuickFilters()
Get all existing quick filters.RestQuickFilter
getQuickFilter(long id)
Get an existing quick filter by id.void
updateQuickFilter(RestQuickFilter quickFilter)
Update a quick filter.-
Methods inherited from class com.atlassian.bamboo.testutils.backdoor.BackdoorControl
client, createResourceForPath, get, getEnvironmentData, getRestModulePath, percentEncode, ping, post, resourceRoot, tearDown
-
-
-
-
Constructor Detail
-
QuickFiltersControl
public QuickFiltersControl(@NotNull @NotNull BambooEnvironmentData environmentData)
-
-
Method Detail
-
getQuickFilter
public RestQuickFilter getQuickFilter(long id)
Get an existing quick filter by id. Requires current user to have admin permission.
-
getAllQuickFilters
public List<RestQuickFilter> getAllQuickFilters()
Get all existing quick filters. Requires current user to have admin permission.
-
createQuickFilter
public void createQuickFilter(RestQuickFilter quickFilter)
Create a quick filter. Id will be assigned to passed DTO after creation. Requires current user to have admin permission.
-
updateQuickFilter
public void updateQuickFilter(RestQuickFilter quickFilter)
Update a quick filter. Requires current user to have admin permission.
-
deleteQuickFilter
public void deleteQuickFilter(long id)
Delete a quick filter by id. Requires current user to have admin permission.
-
deleteQuickFilter
public void deleteQuickFilter(String name)
Delete a quick filter by name. Requires current user to have admin permission.
-
createResource
protected com.sun.jersey.api.client.WebResource createResource()
Description copied from class:BackdoorControl
Creates the resource that corresponds to the root of the TestKit REST API, using the values returned byBackdoorControl.getRestModulePath()
. Note that the createdWebResource
has the following properties:- it logs all GET/POST/etc requests made through it
- it sets the
Content-Type: application/json
by default (override withWebResource.type(javax.ws.rs.core.MediaType)
)
BackdoorControl.createResourceForPath(java.lang.String)
- Overrides:
createResource
in classBackdoorControl<QuickFiltersControl>
- Returns:
- a WebResource for the TestKit REST API root
- See Also:
BackdoorControl.createResource()
,BackdoorControl.getRestModulePath()
-
-