com.atlassian.bamboo.plugins.rest.admin.auditlog
Class AuditLogResource
java.lang.Object
com.atlassian.bamboo.plugins.rest.admin.auditlog.AuditLogResource
public class AuditLogResource
- extends Object
REST endpoint to enable/disable audit log.
- Since:
- 5.9
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AUDIT_LOG_ENABLED
public static final String AUDIT_LOG_ENABLED
- See Also:
- Constant Field Values
LINK
public static final String LINK
- See Also:
- Constant Field Values
RELATIVE_URL
public static final String RELATIVE_URL
- See Also:
- Constant Field Values
AuditLogResource
public AuditLogResource(AuditLogService auditLogService,
com.atlassian.sal.api.ApplicationProperties applicationProperties,
RestPermissionCheck restPermissionCheck)
getAuditLogStatus
public RestAuditLogConfiguration getAuditLogStatus()
- Retrieve audit log settings
- Returns:
RestAuditLogConfiguration
updateAuditLog
public javax.ws.rs.core.Response updateAuditLog(RestAuditLogConfiguration restAuditLogConfiguration)
throws WebValidationException
- Enable/disable audit log
- Parameters:
restAuditLogConfiguration
-
- Returns:
- Status of audit log and link to the REST resource
- Throws:
WebValidationException
- if receives invalid parameter, maps to 400 return code
Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.