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.
|
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 AuditService
public void setAuditEnabled(boolean enable)
setAuditEnabled
in interface AuditService
enable
- true to enable auditing globally or false to disablepublic Map<String,AuditService.AuditApplication> getAuditApplications()
getAuditApplications
in interface AuditService
public boolean isAuditEnabled(String applicationName, String path)
isAuditEnabled
in interface AuditService
applicationName
- the name of the application to checkpath
- the path to checkpublic void enableAudit(String applicationName, String path)
enableAudit
in interface AuditService
applicationName
- the name of the application to checkpath
- the path to enablepublic void disableAudit(String applicationName, String path)
disableAudit
in interface AuditService
applicationName
- the name of the application to checkpath
- the path to disablepublic int clearAudit(String applicationName)
clearAudit
in interface AuditService
applicationName
- the name of the application for which to remove entriespublic int clearAudit(String applicationName, Long fromTime, Long toTime)
clearAudit
in interface AuditService
applicationName
- 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(List<Long> auditEntryIds)
query results
.clearAudit
in interface AuditService
auditEntryIds
- the IDs of all audit entries to deletepublic void auditQuery(AuditService.AuditQueryCallback callback, AuditQueryParameters parameters, int maxResults)
auditQuery
in interface AuditService
callback
- 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–2017 Alfresco Software. All rights reserved.