|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.audit.AuditComponentImpl
public class AuditComponentImpl
The default audit component implementation. TODO: Implement before, after and exception filtering. At the moment these filters are ignored. TODO: Respect audit internal - at the moment audit internal is fixed to false.
| Constructor Summary | |
|---|---|
AuditComponentImpl()
Default constructor |
|
| Method Summary | |
|---|---|
java.lang.Object |
audit(org.aopalliance.intercept.MethodInvocation mi)
Audit entry point for method interceptors. |
void |
audit(java.lang.String source,
java.lang.String description,
NodeRef key,
java.lang.Object[] args)
A simple audit entry Currently we ignore filtering here. |
java.lang.Object |
auditImpl(org.aopalliance.intercept.MethodInvocation mi)
Internal audit of a method invocation |
java.util.List |
getAuditTrail(NodeRef nodeRef)
Get the audit trail for a node. |
void |
setAuditConfiguration(AuditConfiguration auditConfiguration)
Set the audit configuration. |
void |
setAuditDAO(AuditDAO auditDAO)
Set the DAO for recording auditable information when no exception occurs. |
void |
setAuditModel(AuditModel auditModel)
Set the audit model. |
void |
setNamespacePrefixResolver(NamespacePrefixResolver namespacePrefixResolver)
Set the namespacePrefixResolver. |
void |
setNodeService(NodeService nodeService)
Set the NodeService for path extracting. |
void |
setPublicServiceIdentifier(PublicServiceIdentifier publicServiceIdentifier)
Set the helper used to identify public services |
void |
setTransactionService(TransactionService transactionService)
Set the DAO for recording failed actions - this is done in another transaction. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AuditComponentImpl()
| Method Detail |
|---|
public void setAuditDAO(AuditDAO auditDAO)
auditDAO - public void setTransactionService(TransactionService transactionService)
auditFailedDAO - public void setNodeService(NodeService nodeService)
nodeService - public void setAuditConfiguration(AuditConfiguration auditConfiguration)
auditConfiguration - public void setPublicServiceIdentifier(PublicServiceIdentifier publicServiceIdentifier)
publicServiceIdentifier - public void setAuditModel(AuditModel auditModel)
auditModel - public void setNamespacePrefixResolver(NamespacePrefixResolver namespacePrefixResolver)
namespacePrefixResolver -
public java.lang.Object audit(org.aopalliance.intercept.MethodInvocation mi)
throws java.lang.Throwable
AuditComponent
audit in interface AuditComponentjava.lang.Throwable
public java.lang.Object auditImpl(org.aopalliance.intercept.MethodInvocation mi)
throws java.lang.Throwable
mi - -
the method to audit
java.lang.Throwable - -
any Throwable that can be thrown by th audtied method.
public void audit(java.lang.String source,
java.lang.String description,
NodeRef key,
java.lang.Object[] args)
audit in interface AuditComponentsource - -
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)
AuditComponent
getAuditTrail in interface AuditComponentnodeRef - -
the node ref for which we want the audit trail
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||