public class AuditServiceImpl extends java.lang.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(java.util.List auditEntryIds)
Delete a discrete list of audit entries.
|
int |
clearAudit(java.lang.String applicationName)
Remove all audit entries for the given application
|
int |
clearAudit(java.lang.String applicationName,
java.lang.Long fromTime,
java.lang.Long toTime)
Remove audit entries for the given application between the time ranges.
|
void |
disableAudit(java.lang.String applicationName,
java.lang.String path)
Disable auditing for an application path
|
void |
enableAudit(java.lang.String applicationName,
java.lang.String path)
Enable auditing for an application path
|
java.util.Map |
getAuditApplications()
Get all registered audit applications
|
boolean |
isAuditEnabled() |
boolean |
isAuditEnabled(java.lang.String applicationName,
java.lang.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 java.util.Map getAuditApplications()
getAuditApplications in interface AuditServicepublic boolean isAuditEnabled(java.lang.String applicationName,
java.lang.String path)
isAuditEnabled in interface AuditServiceapplicationName - the name of the application to checkpath - the path to checkpublic void enableAudit(java.lang.String applicationName,
java.lang.String path)
enableAudit in interface AuditServiceapplicationName - the name of the application to checkpath - the path to enablepublic void disableAudit(java.lang.String applicationName,
java.lang.String path)
disableAudit in interface AuditServiceapplicationName - the name of the application to checkpath - the path to disablepublic int clearAudit(java.lang.String applicationName)
clearAudit in interface AuditServiceapplicationName - the name of the application for which to remove entriespublic int clearAudit(java.lang.String applicationName,
java.lang.Long fromTime,
java.lang.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 clearAudit(java.util.List 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 (zero or negative to ignore)Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.