@Singleton public class CombinedExpiryResource extends Object
Only available for users with system admin credentials (RestHelper.assertSystemAdminPermission()
).
Constructor and Description |
---|
CombinedExpiryResource(AdministrationConfigurationAccessor administrationConfigurationAccessor,
AdministrationConfigurationPersister administrationConfigurationPersister,
com.atlassian.sal.api.ApplicationProperties applicationProperties,
BuildExpiryBean buildExpiryBean,
DeploymentExpiryService deploymentExpiryService,
ExpiryScheduler expiryScheduler) |
Modifier and Type | Method and Description |
---|---|
RestCombinedExpiryConfiguration |
getConfiguration()
Method used to obtain global build and deployment expiry configuration for this Bamboo instance.
|
RestCombinedExpiryStatus |
getStatus()
Retrieves build and deployment expiry status.
|
javax.ws.rs.core.Response |
run()
Executes build and deployment expiry process.
|
RestCombinedExpiryConfiguration |
setConfiguration(RestCombinedExpiryConfiguration restConfiguration)
Method used to save global build and deployment expiry configuration for this Bamboo instance.
|
public CombinedExpiryResource(AdministrationConfigurationAccessor administrationConfigurationAccessor, AdministrationConfigurationPersister administrationConfigurationPersister, com.atlassian.sal.api.ApplicationProperties applicationProperties, BuildExpiryBean buildExpiryBean, DeploymentExpiryService deploymentExpiryService, ExpiryScheduler expiryScheduler)
public RestCombinedExpiryConfiguration getConfiguration()
public RestCombinedExpiryConfiguration setConfiguration(@NotNull RestCombinedExpiryConfiguration restConfiguration) throws WebValidationException
restConfiguration
- An object with full expiry configuration for both build and deployment expiry. Partial
configuration is not allowed (it will fail validation).WebValidationException
public RestCombinedExpiryStatus getStatus()
public javax.ws.rs.core.Response run()
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.