org.alfresco.repo.audit.hibernate
Class AuditInfoImpl

java.lang.Object
  extended by org.alfresco.repo.audit.hibernate.AuditInfoImpl
All Implemented Interfaces:
AuditInfo

public class AuditInfoImpl
extends java.lang.Object
implements AuditInfo


Constructor Summary
AuditInfoImpl(AuditFact auditFact)
           
 
Method Summary
 java.lang.String getAuditApplication()
          The identifier for the application that performed the audit.
 java.lang.String getAuditMethod()
          The name of the method executed on a public service.
 java.lang.String getAuditService()
          The public service on which a method was invoked.
 java.lang.String getClientAddress()
          The address for the client.
 java.util.Date getDate()
          The timestamp for the audit entry.
 java.lang.String getHostAddress()
          Get the host address of the server machine.
 java.lang.String getKeyGUID()
          Get the ID of the key node.
 java.util.Map getKeyPropertiesAfter()
          The serialized properties on the key node, if one exists, after the method invocation.
 java.util.Map getKeyPropertiesBefore()
          The serialized properties on the key node, if one exists, before the method invocation.
 StoreRef getKeyStore()
          The store ref for the key.
 java.lang.String getMessage()
          The message entered for application audit entries.
 java.io.Serializable[] getMethodArguments()
          Get the serailized mehod arguments.
 java.lang.String[] getMethodArgumentsAsStrings()
          Get the method arguments as strings.
 java.lang.String getPath()
          Get the path to the key node, if one exists.
 java.io.Serializable getReturnObject()
          The serialized value of the return object.
 java.lang.String getReturnObjectAsString()
          Get the return object string value.
 java.lang.String getSessionId()
          Get the session id.
 java.lang.Throwable getThrowable()
          Get the deserialized error, if one occurred.
 java.lang.String getThrowableAsString()
          In 1.4, get the error message (no stack trace).
 java.lang.String getTxId()
          Get the transaction id which caused the audit.
 java.lang.String getUserIdentifier()
          Get the name of the user who caused the audit entry.
 boolean isFail()
          Is this entry recording an error?
 boolean isFiltered()
          Was this audit entry subject to filtering (which must have been met if an entry is found).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuditInfoImpl

public AuditInfoImpl(AuditFact auditFact)
Method Detail

getAuditApplication

public java.lang.String getAuditApplication()
Description copied from interface: AuditInfo
The identifier for the application that performed the audit. Method interceptors around public services will use the string 'SystemMethodInterceptor'.

Specified by:
getAuditApplication in interface AuditInfo
Returns:
- the application (may not be null).

getAuditMethod

public java.lang.String getAuditMethod()
Description copied from interface: AuditInfo
The name of the method executed on a public service.

Specified by:
getAuditMethod in interface AuditInfo
Returns:
- the method name - this may be null for external audit entries.

getAuditService

public java.lang.String getAuditService()
Description copied from interface: AuditInfo
The public service on which a method was invoked.

Specified by:
getAuditService in interface AuditInfo
Returns:
- the service name - this may be null for external audit entries.

getClientAddress

public java.lang.String getClientAddress()
Description copied from interface: AuditInfo
The address for the client. (This will be null in version 1.4)

Specified by:
getClientAddress in interface AuditInfo
Returns:
- the client address - may be null.

getDate

public java.util.Date getDate()
Description copied from interface: AuditInfo
The timestamp for the audit entry.

Specified by:
getDate in interface AuditInfo
Returns:

isFail

public boolean isFail()
Description copied from interface: AuditInfo
Is this entry recording an error?

Specified by:
isFail in interface AuditInfo
Returns:

isFiltered

public boolean isFiltered()
Description copied from interface: AuditInfo
Was this audit entry subject to filtering (which must have been met if an entry is found). Filters are not applied in version 1.4.

Specified by:
isFiltered in interface AuditInfo
Returns:

getHostAddress

public java.lang.String getHostAddress()
Description copied from interface: AuditInfo
Get the host address of the server machine.

Specified by:
getHostAddress in interface AuditInfo
Returns:

getKeyGUID

public java.lang.String getKeyGUID()
Description copied from interface: AuditInfo
Get the ID of the key node.

Specified by:
getKeyGUID in interface AuditInfo
Returns:
- the id of the key node - this may be null if there is no key or the key is not a node ref.

getKeyPropertiesAfter

public java.util.Map getKeyPropertiesAfter()
Description copied from interface: AuditInfo
The serialized properties on the key node, if one exists, after the method invocation. Note these values are serialized before the method is called so they are unaffected by the method invocation. In V1.4 these are not stored.

Specified by:
getKeyPropertiesAfter in interface AuditInfo
Returns:

getKeyPropertiesBefore

public java.util.Map getKeyPropertiesBefore()
Description copied from interface: AuditInfo
The serialized properties on the key node, if one exists, before the method invocation. In V1.4 these are not stored.

Specified by:
getKeyPropertiesBefore in interface AuditInfo
Returns:

getKeyStore

public StoreRef getKeyStore()
Description copied from interface: AuditInfo
The store ref for the key.

Specified by:
getKeyStore in interface AuditInfo
Returns:
- the store ref - this may be null if there is no key.

getMessage

public java.lang.String getMessage()
Description copied from interface: AuditInfo
The message entered for application audit entries.

Specified by:
getMessage in interface AuditInfo
Returns:
- the audit message. This may be null, and will be null for audit entries generated from method invocations.

getMethodArguments

public java.io.Serializable[] getMethodArguments()
Description copied from interface: AuditInfo
Get the serailized mehod arguments. These are not stored in V1.4.

Specified by:
getMethodArguments in interface AuditInfo
Returns:

getMethodArgumentsAsStrings

public java.lang.String[] getMethodArgumentsAsStrings()
Description copied from interface: AuditInfo
Get the method arguments as strings.

Specified by:
getMethodArgumentsAsStrings in interface AuditInfo
Returns:

getPath

public java.lang.String getPath()
Description copied from interface: AuditInfo
Get the path to the key node, if one exists.

Specified by:
getPath in interface AuditInfo
Returns:
- the path or null.

getReturnObject

public java.io.Serializable getReturnObject()
Description copied from interface: AuditInfo
The serialized value of the return object. This is not available in V1.4.

Specified by:
getReturnObject in interface AuditInfo
Returns:

getReturnObjectAsString

public java.lang.String getReturnObjectAsString()
Description copied from interface: AuditInfo
Get the return object string value.

Specified by:
getReturnObjectAsString in interface AuditInfo
Returns:
- the string value of the return object. May be null if the method is of type void or returns null.

getSessionId

public java.lang.String getSessionId()
Description copied from interface: AuditInfo
Get the session id. This is not stored in V1.4.

Specified by:
getSessionId in interface AuditInfo
Returns:

getThrowable

public java.lang.Throwable getThrowable()
Description copied from interface: AuditInfo
Get the deserialized error, if one occurred.

Specified by:
getThrowable in interface AuditInfo
Returns:
the throwable or null.

getThrowableAsString

public java.lang.String getThrowableAsString()
Description copied from interface: AuditInfo
In 1.4, get the error message (no stack trace).

Specified by:
getThrowableAsString in interface AuditInfo
Returns:
- the error message

getTxId

public java.lang.String getTxId()
Description copied from interface: AuditInfo
Get the transaction id which caused the audit.

Specified by:
getTxId in interface AuditInfo
Returns:
the Tx id (not null).

getUserIdentifier

public java.lang.String getUserIdentifier()
Description copied from interface: AuditInfo
Get the name of the user who caused the audit entry.

Specified by:
getUserIdentifier in interface AuditInfo
Returns:
- the user name / user authority (not null)


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