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 Details

  • 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

      @Path("license") @PUT public void setLicense(String licenseString)
    • 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)