org.alfresco.repo.audit.model
Class ServiceAuditEntry

java.lang.Object
  extended by org.alfresco.repo.audit.model.AbstractAuditEntry
      extended by org.alfresco.repo.audit.model.AbstractNamedAuditEntry
          extended by org.alfresco.repo.audit.model.ServiceAuditEntry
All Implemented Interfaces:
MethodAuditModel

public class ServiceAuditEntry
extends AbstractNamedAuditEntry
implements MethodAuditModel


Constructor Summary
ServiceAuditEntry()
           
 
Method Summary
 AuditMode afterExecution(AuditMode auditMode, org.aopalliance.intercept.MethodInvocation mi)
          Report if audit behaviour can be determined after the method call
 AuditMode beforeExecution(AuditMode auditMode, org.aopalliance.intercept.MethodInvocation mi)
          Report if audit behaviour can be determined before the method call
 TrueFalseUnset getAuditInternalServiceMethods(org.aopalliance.intercept.MethodInvocation mi)
          Deteine if internal calls to public service shoud be audited
 RecordOptions getAuditRecordOptions(org.aopalliance.intercept.MethodInvocation mi)
          Get the optional parameters that are to be recorded
 MethodAuditEntry getMethodAuditEntry(java.lang.String name)
           
 AuditMode onError(AuditMode auditMode, org.aopalliance.intercept.MethodInvocation mi)
          Report if audit behaviour should be invoked on error.
 
Methods inherited from class org.alfresco.repo.audit.model.AbstractAuditEntry
getEffectiveAuditInternal, getEffectiveAuditMode, getEffectiveRecordOptions, getEnabled, setPublicServiceIdentifier
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceAuditEntry

public ServiceAuditEntry()
Method Detail

beforeExecution

public AuditMode beforeExecution(AuditMode auditMode,
                                 org.aopalliance.intercept.MethodInvocation mi)
Description copied from interface: MethodAuditModel
Report if audit behaviour can be determined before the method call

Specified by:
beforeExecution in interface MethodAuditModel
Returns:
- the audit mode

afterExecution

public AuditMode afterExecution(AuditMode auditMode,
                                org.aopalliance.intercept.MethodInvocation mi)
Description copied from interface: MethodAuditModel
Report if audit behaviour can be determined after the method call

Specified by:
afterExecution in interface MethodAuditModel
Returns:
- the audit mode

onError

public AuditMode onError(AuditMode auditMode,
                         org.aopalliance.intercept.MethodInvocation mi)
Description copied from interface: MethodAuditModel
Report if audit behaviour should be invoked on error. It could be we look at the error and filter - this filter is not supported at the moment.

Specified by:
onError in interface MethodAuditModel
Returns:
- the audit mode

getAuditRecordOptions

public RecordOptions getAuditRecordOptions(org.aopalliance.intercept.MethodInvocation mi)
Description copied from interface: MethodAuditModel
Get the optional parameters that are to be recorded

Specified by:
getAuditRecordOptions in interface MethodAuditModel
Returns:
- what to record

getAuditInternalServiceMethods

public TrueFalseUnset getAuditInternalServiceMethods(org.aopalliance.intercept.MethodInvocation mi)
Description copied from interface: MethodAuditModel
Deteine if internal calls to public service shoud be audited

Specified by:
getAuditInternalServiceMethods in interface MethodAuditModel
Returns:
- mode

getMethodAuditEntry

public MethodAuditEntry getMethodAuditEntry(java.lang.String name)


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.