|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.audit.AuditServiceImpl
public class AuditServiceImpl
The implementation of the AuditService for application auditing.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.alfresco.service.cmr.audit.AuditService |
|---|
AuditService.AuditApplication, AuditService.AuditQueryCallback |
| Constructor Summary | |
|---|---|
AuditServiceImpl()
|
|
| Method Summary | |
|---|---|
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.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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AuditServiceImpl()
| Method Detail |
|---|
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 AuditService
public boolean isAuditEnabled(java.lang.String applicationName,
java.lang.String path)
isAuditEnabled in interface AuditServiceapplicationName - the name of the application to checkpath - the path to check
public void enableAudit(java.lang.String applicationName,
java.lang.String path)
enableAudit in interface AuditServiceapplicationName - the name of the application to checkpath - the path to enable
public 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 entries
public 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 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)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||