Class CombinedExpiryResource
- java.lang.Object
-
- com.atlassian.bamboo.plugins.rest.admin.expiry.CombinedExpiryResource
-
@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
Constructors Constructor Description CombinedExpiryResource(AdministrationConfigurationAccessor administrationConfigurationAccessor, AdministrationConfigurationPersister administrationConfigurationPersister, com.atlassian.sal.api.ApplicationProperties applicationProperties, BuildExpiryBean buildExpiryBean, DeploymentExpiryService deploymentExpiryService, ExpiryScheduler expiryScheduler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RestCombinedExpiryConfiguration
getConfiguration()
RestCombinedExpiryStatus
getStatus()
javax.ws.rs.core.Response
run()
RestCombinedExpiryConfiguration
setConfiguration(@NotNull RestCombinedExpiryConfiguration restConfiguration)
-
-
-
Constructor Detail
-
CombinedExpiryResource
@Inject public CombinedExpiryResource(AdministrationConfigurationAccessor administrationConfigurationAccessor, AdministrationConfigurationPersister administrationConfigurationPersister, com.atlassian.sal.api.ApplicationProperties applicationProperties, BuildExpiryBean buildExpiryBean, DeploymentExpiryService deploymentExpiryService, ExpiryScheduler expiryScheduler)
-
-
Method Detail
-
getConfiguration
public RestCombinedExpiryConfiguration getConfiguration()
-
setConfiguration
public RestCombinedExpiryConfiguration setConfiguration(@NotNull @NotNull RestCombinedExpiryConfiguration restConfiguration) throws WebValidationException
- Throws:
WebValidationException
-
getStatus
public RestCombinedExpiryStatus getStatus()
-
run
public javax.ws.rs.core.Response run()
-
-