Package org.alfresco.service.cmr.audit
Interface AuditInfo
-
public interface AuditInfoA single entry in an audit trail- Author:
- Andy Hind
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetAuditApplication()The identifier for the application that performed the audit.java.lang.StringgetAuditMethod()The name of the method executed on a public service.java.lang.StringgetAuditService()The public service on which a method was invoked.java.lang.StringgetClientAddress()The address for the client.java.util.DategetDate()The timestamp for the audit entry.java.lang.StringgetHostAddress()Get the host address of the server machine.java.lang.StringgetKeyGUID()Get the ID of the key node.java.util.Map<org.alfresco.service.namespace.QName,java.io.Serializable>getKeyPropertiesAfter()The serialized properties on the key node, if one exists, after the method invocation.java.util.Map<org.alfresco.service.namespace.QName,java.io.Serializable>getKeyPropertiesBefore()The serialized properties on the key node, if one exists, before the method invocation.org.alfresco.service.cmr.repository.StoreRefgetKeyStore()The store ref for the key.java.lang.StringgetMessage()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.StringgetPath()Get the path to the key node, if one exists.java.io.SerializablegetReturnObject()The serialized value of the return object.java.lang.StringgetReturnObjectAsString()Get the return object string value.java.lang.StringgetSessionId()Get the session id.java.lang.ThrowablegetThrowable()Get the deserialized error, if one occurred.java.lang.StringgetThrowableAsString()In 1.4, get the error message (no stack trace).java.lang.StringgetTxId()Get the transaction id which caused the audit.java.lang.StringgetUserIdentifier()Get the name of the user who caused the audit entry.booleanisFail()Is this entry recording an error?booleanisFiltered()Was this audit entry subject to filtering (which must have been met if an entry is found).
-
-
-
Method Detail
-
getAuditApplication
java.lang.String getAuditApplication()
The identifier for the application that performed the audit. Method interceptors around public services will use the string 'SystemMethodInterceptor'.- Returns:
- - the application (may not be null).
-
getAuditMethod
java.lang.String getAuditMethod()
The name of the method executed on a public service.- Returns:
- - the method name - this may be null for external audit entries.
-
getAuditService
java.lang.String getAuditService()
The public service on which a method was invoked.- Returns:
- - the service name - this may be null for external audit entries.
-
getClientAddress
java.lang.String getClientAddress()
The address for the client. (This will be null in version 1.4)- Returns:
- - the client address - may be null.
-
getDate
java.util.Date getDate()
The timestamp for the audit entry.- Returns:
- Date
-
isFail
boolean isFail()
Is this entry recording an error?- Returns:
- boolean
-
isFiltered
boolean isFiltered()
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.- Returns:
- boolean
-
getHostAddress
java.lang.String getHostAddress()
Get the host address of the server machine.- Returns:
- String
-
getKeyGUID
java.lang.String getKeyGUID()
Get the ID of the key node.- 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
java.util.Map<org.alfresco.service.namespace.QName,java.io.Serializable> getKeyPropertiesAfter()
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.- Returns:
- Map
-
getKeyPropertiesBefore
java.util.Map<org.alfresco.service.namespace.QName,java.io.Serializable> getKeyPropertiesBefore()
The serialized properties on the key node, if one exists, before the method invocation. In V1.4 these are not stored.- Returns:
- Map
-
getKeyStore
org.alfresco.service.cmr.repository.StoreRef getKeyStore()
The store ref for the key.- Returns:
- - the store ref - this may be null if there is no key.
-
getMessage
java.lang.String getMessage()
The message entered for application audit entries.- Returns:
- - the audit message. This may be null, and will be null for audit entries generated from method invocations.
-
getMethodArguments
java.io.Serializable[] getMethodArguments()
Get the serailized mehod arguments. These are not stored in V1.4.- Returns:
- Serializable[]
-
getMethodArgumentsAsStrings
java.lang.String[] getMethodArgumentsAsStrings()
Get the method arguments as strings.- Returns:
- String[]
-
getPath
java.lang.String getPath()
Get the path to the key node, if one exists.- Returns:
- - the path or null.
-
getReturnObject
java.io.Serializable getReturnObject()
The serialized value of the return object. This is not available in V1.4.- Returns:
- Serializable
-
getReturnObjectAsString
java.lang.String getReturnObjectAsString()
Get the return object string value.- Returns:
- - the string value of the return object. May be null if the method is of type void or returns null.
-
getSessionId
java.lang.String getSessionId()
Get the session id. This is not stored in V1.4.- Returns:
- String
-
getThrowable
java.lang.Throwable getThrowable()
Get the deserialized error, if one occurred.- Returns:
- the throwable or null.
-
getThrowableAsString
java.lang.String getThrowableAsString()
In 1.4, get the error message (no stack trace).- Returns:
- - the error message
-
getTxId
java.lang.String getTxId()
Get the transaction id which caused the audit.- Returns:
- the Tx id (not null).
-
getUserIdentifier
java.lang.String getUserIdentifier()
Get the name of the user who caused the audit entry.- Returns:
- - the user name / user authority (not null)
-
-