public class AuditServiceImpl extends Object implements AuditService
AuditService.AuditApplication, AuditService.AuditQueryCallback| Constructor and Description |
|---|
AuditServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
auditQuery(AuditService.AuditQueryCallback callback,
AuditQueryParameters parameters,
int maxResults)
Issue an audit query using the given parameters and consuming results in the callback.
|
int |
clearAudit(List<Long> auditEntryIds)
Delete a discrete list of audit entries.
|
int |
clearAudit(String applicationName)
Remove all audit entries for the given application
|
int |
clearAudit(String applicationName,
Long fromTime,
Long toTime)
Remove audit entries for the given application between the time ranges.
|
int |
clearAuditByIdRange(String applicationName,
Long fromId,
Long toId)
Remove audit entries for the given application between the audit entry ids.
|
void |
disableAudit(String applicationName,
String path)
Disable auditing for an application path
|
void |
enableAudit(String applicationName,
String path)
Enable auditing for an application path
|
Map<String,AuditService.AuditApplication> |
getAuditApplications()
Get all registered audit applications
|
boolean |
isAuditEnabled() |
boolean |
isAuditEnabled(String applicationName,
String path) |
void |
setAuditComponent(AuditComponent auditComponent) |
void |
setAuditEnabled(boolean enable)
Enable or disable the global auditing state
|
public void setAuditComponent(AuditComponent auditComponent)
public boolean isAuditEnabled()
isAuditEnabled in interface AuditServicepublic void setAuditEnabled(boolean enable)
setAuditEnabled in interface AuditServiceenable - true to enable auditing globally or false to disablepublic Map<String,AuditService.AuditApplication> getAuditApplications()
getAuditApplications in interface AuditServicepublic boolean isAuditEnabled(String applicationName, String path)
isAuditEnabled in interface AuditServiceapplicationName - the name of the application to checkpath - the path to checkpublic void enableAudit(String applicationName, String path)
enableAudit in interface AuditServiceapplicationName - the name of the application to checkpath - the path to enablepublic void disableAudit(String applicationName, String path)
disableAudit in interface AuditServiceapplicationName - the name of the application to checkpath - the path to disablepublic int clearAudit(String applicationName)
clearAudit in interface AuditServiceapplicationName - the name of the application for which to remove entriespublic int clearAudit(String applicationName, Long fromTime, Long toTime)
clearAudit in interface AuditServiceapplicationName - the name of the application for which to remove entriesfromTime - the start time of entries to remove (inclusive and optional)toTime - the end time of entries to remove (exclusive and optional)public int clearAuditByIdRange(String applicationName, Long fromId, Long toId)
clearAuditByIdRange in interface AuditServiceapplicationName - the name of the application for which to remove entriesfromId - the start time of entries to remove (inclusive and optional)toId - the end time of entries to remove (exclusive and optional)public int clearAudit(List<Long> auditEntryIds)
query results.clearAudit in interface AuditServiceauditEntryIds - the IDs of all audit entries to deletepublic void auditQuery(AuditService.AuditQueryCallback callback, AuditQueryParameters parameters, int maxResults)
auditQuery in interface AuditServicecallback - the callback that will handle resultsparameters - the parameters for the query (may not be null)maxResults - the maximum number of results to retrieve (must be greater than 0)Copyright © 2005–2018 Alfresco Software. All rights reserved.