Class ExpirySettingsResource
java.lang.Object
com.atlassian.bamboo.plugins.rest.resource.ExpirySettingsResource
@Path("admin/expiry")
@Consumes("application/json")
@Produces("application/json")
@Singleton
public class ExpirySettingsResource
extends Object
Provides information about some aspects of global expiry settings. If global expiration settings should be modified
look at
CombinedExpiryResource
.-
Constructor Summary
ConstructorDescriptionExpirySettingsResource
(AdministrationConfigurationAccessor administrationConfigurationAccessor, BambooPermissionManager bambooPermissionManager, BuildDefinitionManager buildDefinitionManager, CachedPlanManager cachedPlanManager, com.atlassian.sal.api.message.I18nResolver i18nResolver, PaginationService paginationService, PlanManager planManager) -
Method Summary
Modifier and TypeMethodDescriptionfindPlansWithCustomExpirySettings
(PageRequest pageRequest, javax.ws.rs.core.UriInfo uriInfo) javax.ws.rs.core.Response
removePlanCustomExpirySettings
(@Nullable String planKey)
-
Constructor Details
-
ExpirySettingsResource
@Inject public ExpirySettingsResource(AdministrationConfigurationAccessor administrationConfigurationAccessor, BambooPermissionManager bambooPermissionManager, BuildDefinitionManager buildDefinitionManager, CachedPlanManager cachedPlanManager, com.atlassian.sal.api.message.I18nResolver i18nResolver, PaginationService paginationService, PlanManager planManager)
-
-
Method Details
-
findPlansWithCustomExpirySettings
@GET @Path("custom/plan") public RestPageModel<PlanWithCustomExpirySettings> findPlansWithCustomExpirySettings(@BeanParam PageRequest pageRequest, @Context javax.ws.rs.core.UriInfo uriInfo) -
removePlanCustomExpirySettings
@DELETE @Path("custom/plan/{planKey}") public javax.ws.rs.core.Response removePlanCustomExpirySettings(@PathParam("planKey") @Nullable @Nullable String planKey) throws WebValidationException - Throws:
WebValidationException
-