Class CombinedExpiryResource
java.lang.Object
com.atlassian.bamboo.plugins.rest.admin.expiry.CombinedExpiryResource
@Path("expiry")
@Consumes("application/json")
@Produces("application/json")
@Singleton
public class CombinedExpiryResource
extends Object
REST resource for accessing and modifying global build and deployment expiry configurations combined.
Only available for users with system admin credentials (RestHelper.assertSystemAdminPermission()
).
-
Constructor Summary
ConstructorDescriptionCombinedExpiryResource
(AdministrationConfigurationAccessor administrationConfigurationAccessor, AdministrationConfigurationPersister administrationConfigurationPersister, com.atlassian.sal.api.ApplicationProperties applicationProperties, BuildExpiryBean buildExpiryBean, DeploymentExpiryService deploymentExpiryService, ExpiryScheduler expiryScheduler) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
run()
setConfiguration
(@NotNull RestCombinedExpiryConfiguration restConfiguration)
-
Constructor Details
-
CombinedExpiryResource
@Inject public CombinedExpiryResource(AdministrationConfigurationAccessor administrationConfigurationAccessor, AdministrationConfigurationPersister administrationConfigurationPersister, com.atlassian.sal.api.ApplicationProperties applicationProperties, BuildExpiryBean buildExpiryBean, DeploymentExpiryService deploymentExpiryService, ExpiryScheduler expiryScheduler)
-
-
Method Details
-
getConfiguration
-
setConfiguration
@PUT @Path("configuration") public RestCombinedExpiryConfiguration setConfiguration(@NotNull @NotNull RestCombinedExpiryConfiguration restConfiguration) throws WebValidationException - Throws:
WebValidationException
-
getStatus
-
run
@PUT @Path("run") public javax.ws.rs.core.Response run()
-