org.alfresco.repo.audit.model
Class AuditEntry

java.lang.Object
  extended by org.alfresco.repo.audit.model.AbstractAuditEntry
      extended by org.alfresco.repo.audit.model.AuditEntry
All Implemented Interfaces:
ApplicationAuditModel, AuditModel, MethodAuditModel, org.springframework.beans.factory.InitializingBean

public class AuditEntry
extends AbstractAuditEntry
implements org.springframework.beans.factory.InitializingBean, AuditModel


Field Summary
 
Fields inherited from interface org.alfresco.repo.audit.AuditModel
AT_AUDIT_INTERNAL, AT_ENABLED, AT_INVERT, AT_MODE, AT_NAME, AT_TYPE, EL_APPLICATION, EL_AUDIT, EL_EXPRESSION, EL_FILTER, EL_METHOD, EL_PARAMETER_NAME, EL_RECORD_FILTERS, EL_RECORD_OPTIONS, EL_RECORD_PATH, EL_RECORD_SER_ARGS, EL_RECORD_SER_EX, EL_RECORD_SER_PROP_AFTER, EL_RECORD_SER_PROP_BEFORE, EL_RECORD_SER_RETURN_VAL, EL_SERVICE, NAME_SPACE
 
Constructor Summary
AuditEntry()
           
 
Method Summary
 AuditMode afterExecution(AuditMode auditMode, org.aopalliance.intercept.MethodInvocation mi)
          Report if audit behaviour can be determined after the method call
 AuditMode afterExecution(AuditMode auditMode, java.lang.String application, java.lang.String description, NodeRef key, java.lang.Object[] args)
          Report if audit behaviour can be determined after the method call
 void afterPropertiesSet()
           
 AuditMode beforeExecution(AuditMode auditMode, org.aopalliance.intercept.MethodInvocation mi)
          Report if audit behaviour can be determined before the method call
 AuditMode beforeExecution(AuditMode auditMode, java.lang.String application, java.lang.String description, NodeRef key, java.lang.Object[] args)
          Report if audit behaviour can be determined before the method call
 AuditConfiguration getAuditConfiguration()
           
 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
 RecordOptions getAuditRecordOptions(java.lang.String application)
          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.
 AuditMode onError(AuditMode auditMode, java.lang.String application, java.lang.String description, NodeRef key, java.lang.Object[] args)
          Report if audit behaviour should be invoked on error.
 void setAuditConfiguration(AuditConfiguration auditConfiguration)
           
 void setNamespacePrefixResolver(NamespacePrefixResolver namespacePrefixResolver)
           
 
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

AuditEntry

public AuditEntry()
Method Detail

getAuditConfiguration

public AuditConfiguration getAuditConfiguration()

setAuditConfiguration

public void setAuditConfiguration(AuditConfiguration auditConfiguration)

setNamespacePrefixResolver

public void setNamespacePrefixResolver(NamespacePrefixResolver namespacePrefixResolver)

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
java.lang.Exception

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

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

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

beforeExecution

public AuditMode beforeExecution(AuditMode auditMode,
                                 java.lang.String application,
                                 java.lang.String description,
                                 NodeRef key,
                                 java.lang.Object[] args)
Description copied from interface: ApplicationAuditModel
Report if audit behaviour can be determined before the method call

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

afterExecution

public AuditMode afterExecution(AuditMode auditMode,
                                java.lang.String application,
                                java.lang.String description,
                                NodeRef key,
                                java.lang.Object[] args)
Description copied from interface: ApplicationAuditModel
Report if audit behaviour can be determined after the method call

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

onError

public AuditMode onError(AuditMode auditMode,
                         java.lang.String application,
                         java.lang.String description,
                         NodeRef key,
                         java.lang.Object[] args)
Description copied from interface: ApplicationAuditModel
Report if audit behaviour should be invoked on error. It could be we look at the error and filter - this is not supported at the moment.

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

getAuditRecordOptions

public RecordOptions getAuditRecordOptions(java.lang.String application)
Description copied from interface: ApplicationAuditModel
Get the optional parameters that are to be recorded

Specified by:
getAuditRecordOptions in interface ApplicationAuditModel
Returns:
- the audit mode

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


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