|
|||||||||
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.AuditQueryCallback |
Constructor Summary | |
---|---|
AuditServiceImpl()
|
Method Summary | |
---|---|
void |
audit(java.lang.String source,
java.lang.String description)
Add an application audit entry. |
void |
audit(java.lang.String source,
java.lang.String description,
NodeRef key)
|
void |
audit(java.lang.String source,
java.lang.String description,
NodeRef key,
java.lang.Object[] args)
|
void |
audit(java.lang.String source,
java.lang.String description,
java.lang.Object[] args)
|
void |
auditQuery(AuditService.AuditQueryCallback callback,
AuditQueryParameters parameters,
int maxResults)
Issue an audit query using the given parameters and consuming results in the callback. |
void |
auditQuery(AuditService.AuditQueryCallback callback,
boolean forward,
java.lang.String applicationName,
java.lang.String user,
java.lang.Long from,
java.lang.Long to,
int maxResults)
Get the audit entries that match the given criteria. |
void |
auditQuery(AuditService.AuditQueryCallback callback,
boolean forward,
java.lang.String applicationName,
java.lang.String user,
java.lang.Long from,
java.lang.Long to,
java.lang.String searchKey,
java.io.Serializable searchValue,
int maxResults)
Get the audit entries that match the given criteria. |
void |
clearAudit(java.lang.String applicationName)
Remove all audit entries for the given application |
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.List |
getAuditTrail(NodeRef nodeRef)
Get the audit trail for a node ref. |
boolean |
isAuditEnabled(java.lang.String applicationName,
java.lang.String path)
|
static void |
main(java.lang.String[] args)
|
void |
setAuditComponent(AuditComponent auditComponent)
|
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 void audit(java.lang.String source, java.lang.String description)
AuditService
audit
in interface AuditService
source
- -
a string that represents the applicationdescription
- -
the audit entrypublic void audit(java.lang.String source, java.lang.String description, NodeRef key)
audit
in interface AuditService
source
- -
a string that represents the applicationdescription
- -
the audit entrykey
- -
a node ref to use as the key for filtering etcpublic void audit(java.lang.String source, java.lang.String description, java.lang.Object[] args)
audit
in interface AuditService
source
- -
a string that represents the applicationdescription
- -
the audit entryargs
- -
an arbitrary list of parameterspublic void audit(java.lang.String source, java.lang.String description, NodeRef key, java.lang.Object[] args)
audit
in interface AuditService
source
- -
a string that represents the applicationdescription
- -
the audit entry *key
- -
a node ref to use as the key for filtering etcargs
- -
an arbitrary list of parameterspublic java.util.List getAuditTrail(NodeRef nodeRef)
AuditService
getAuditTrail
in interface AuditService
nodeRef
- - the node ref for which to get the audit trail.
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public boolean isAuditEnabled(java.lang.String applicationName, java.lang.String path)
isAuditEnabled
in interface AuditService
applicationName
- 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 AuditService
applicationName
- the name of the application to checkpath
- the path to enablepublic void disableAudit(java.lang.String applicationName, java.lang.String path)
disableAudit
in interface AuditService
applicationName
- the name of the application to checkpath
- the path to disablepublic void clearAudit(java.lang.String applicationName)
clearAudit
in interface AuditService
applicationName
- the name of the application for which to remove entriespublic 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 (zero or negative to ignore)public void auditQuery(AuditService.AuditQueryCallback callback, boolean forward, java.lang.String applicationName, java.lang.String user, java.lang.Long from, java.lang.Long to, int maxResults)
auditQuery
in interface AuditService
callback
- the callback that will handle resultsforward
- true for results to ordered from first to last,
or false to order from last to firstapplicationName
- if not null, find entries logged against this applicationuser
- if not null, find entries logged against this userfrom
- the start search time (null to start at the beginning)to
- the end search time (null for no limit)maxResults
- the maximum number of results to retrieve (zero or negative to ignore)public void auditQuery(AuditService.AuditQueryCallback callback, boolean forward, java.lang.String applicationName, java.lang.String user, java.lang.Long from, java.lang.Long to, java.lang.String searchKey, java.io.Serializable searchValue, int maxResults)
auditQuery
in interface AuditService
callback
- the callback that will handle resultsforward
- true for results to ordered from first to last,
or false to order from last to firstapplicationName
- if not null, find entries logged against this applicationuser
- if not null, find entries logged against this userfrom
- the start search time (null to start at the beginning)to
- the end search time (null for no limit)searchKey
- the audit key path that must exist (null to ignore)searchValue
- an audit value that must exist (null to ignore)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 |