org.alfresco.repo.audit
Interface MethodAuditModel

All Known Subinterfaces:
AuditModel
All Known Implementing Classes:
AuditEntry, MethodAuditEntry, ServiceAuditEntry

public interface MethodAuditModel

The audit model used to audit method calls.


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
 AuditMode onError(AuditMode auditMode, org.aopalliance.intercept.MethodInvocation mi)
          Report if audit behaviour should be invoked on error.
 

Method Detail

beforeExecution

AuditMode beforeExecution(AuditMode auditMode,
                          org.aopalliance.intercept.MethodInvocation mi)
Report if audit behaviour can be determined before the method call

Parameters:
auditMode -
mi -
Returns:
- the audit mode

afterExecution

AuditMode afterExecution(AuditMode auditMode,
                         org.aopalliance.intercept.MethodInvocation mi)
Report if audit behaviour can be determined after the method call

Parameters:
auditMode -
mi -
Returns:
- the audit mode

onError

AuditMode onError(AuditMode auditMode,
                  org.aopalliance.intercept.MethodInvocation mi)
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.

Parameters:
auditMode -
mi -
Returns:
- the audit mode

getAuditRecordOptions

RecordOptions getAuditRecordOptions(org.aopalliance.intercept.MethodInvocation mi)
Get the optional parameters that are to be recorded

Parameters:
mi -
Returns:
- what to record

getAuditInternalServiceMethods

TrueFalseUnset getAuditInternalServiceMethods(org.aopalliance.intercept.MethodInvocation mi)
Deteine if internal calls to public service shoud be audited

Parameters:
mi -
Returns:
- mode


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