Class AdministrationResource
java.lang.Object
com.atlassian.bamboo.plugins.testutils.rest.resource.administration.AdministrationResource
@Path("administration")
@Consumes("application/json")
@Produces("application/json")
@Singleton
public class AdministrationResource
extends Object
-
Constructor Summary
ConstructorDescriptionAdministrationResource
(AdministrationConfigurationAccessor administrationConfigurationAccessor, AdministrationConfigurationPersister administrationConfigurationPersister, AuditLogService auditLogService, MailConfigurationService mailConfigurationService, BambooHomeLocator homeLocator, BambooLicenseManager bambooLicenseManager, WebhookTemplateService webhookTemplateService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addWebhookTemplate
(RestWebhookTemplate restWebhookTemplate) Update global session timeout settings.void
addWebhookTemplate
(String uuid) javax.ws.rs.core.Response
javax.ws.rs.core.Response
javax.ws.rs.core.Response
javax.ws.rs.core.Response
javax.ws.rs.core.Response
setAuditLogEnabled
(boolean enabled) void
setDashboardPageSize
(int dashboardPageSize) void
setLicense
(String licenseString) javax.ws.rs.core.Response
setMailServerSettings
(MailServerSettings mailServerSettings) void
setSessionTimeout
(int seconds) Update global session timeout settings.
-
Constructor Details
-
AdministrationResource
@Inject public AdministrationResource(AdministrationConfigurationAccessor administrationConfigurationAccessor, AdministrationConfigurationPersister administrationConfigurationPersister, AuditLogService auditLogService, MailConfigurationService mailConfigurationService, BambooHomeLocator homeLocator, BambooLicenseManager bambooLicenseManager, WebhookTemplateService webhookTemplateService)
-
-
Method Details
-
setAuditLogEnabled
@Path("audit-log-config") @POST public javax.ws.rs.core.Response setAuditLogEnabled(boolean enabled) -
getAuditLogStatus
@Path("audit-log-config") @GET public javax.ws.rs.core.Response getAuditLogStatus()- Returns:
- true if audit log is globally enabled, false - otherwise
-
getSystemInformation
@Path("systemInformation") @GET public javax.ws.rs.core.Response getSystemInformation() -
removeMailServerSettings
@Path("mail-server-settings") @DELETE public javax.ws.rs.core.Response removeMailServerSettings() throws com.atlassian.mail.MailException- Throws:
com.atlassian.mail.MailException
-
setMailServerSettings
@Path("mail-server-settings") @PUT public javax.ws.rs.core.Response setMailServerSettings(MailServerSettings mailServerSettings) throws com.atlassian.mail.MailException - Throws:
com.atlassian.mail.MailException
-
getDashboardPageSize
@Path("dashboardPageSize") @GET public javax.ws.rs.core.Response getDashboardPageSize() -
setDashboardPageSize
@Path("dashboardPageSize") @PUT public void setDashboardPageSize(int dashboardPageSize) throws WebValidationException - Throws:
WebValidationException
-
setLicense
-
setSessionTimeout
@Path("sessionTimeout") @POST public void setSessionTimeout(int seconds) Update global session timeout settings. -
addWebhookTemplate
@Path("webhookTemplates") @POST public void addWebhookTemplate(RestWebhookTemplate restWebhookTemplate) Update global session timeout settings. -
addWebhookTemplate
@Path("webhookTemplates/{uuid}") @DELETE public void addWebhookTemplate(@PathParam("uuid") String uuid)
-