Class RecordsManagementAuditEntry
- java.lang.Object
-
- org.alfresco.module.org_alfresco_module_rm.audit.RecordsManagementAuditEntry
-
@AlfrescoPublicApi public final class RecordsManagementAuditEntry extends Object
Class to represent a Records Management audit entry.- Author:
- Gavin Cornwell
-
-
Constructor Summary
Constructors Constructor Description RecordsManagementAuditEntry(Date timestamp, String userName, String fullName, String userRole, org.alfresco.service.cmr.repository.NodeRef nodeRef, String nodeName, String nodeType, String event, String identifier, String path, Map<org.alfresco.service.namespace.QName,Serializable> beforeProperties, Map<org.alfresco.service.namespace.QName,Serializable> afterProperties)
Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<org.alfresco.service.namespace.QName,Serializable>
getAfterProperties()
Map<org.alfresco.service.namespace.QName,Serializable>
getBeforeProperties()
Map<org.alfresco.service.namespace.QName,org.alfresco.util.Pair<Serializable,Serializable>>
getChangedProperties()
String
getEvent()
String
getFullName()
String
getIdentifier()
An identifier for the item being audited, for example for a record it will be the unique record identifier, for a user it would be the username etc.String
getNodeName()
org.alfresco.service.cmr.repository.NodeRef
getNodeRef()
String
getNodeType()
String
getPath()
Date
getTimestamp()
String
getTimestampString()
String
getUserName()
String
getUserRole()
String
toString()
-
-
-
Constructor Detail
-
RecordsManagementAuditEntry
public RecordsManagementAuditEntry(Date timestamp, String userName, String fullName, String userRole, org.alfresco.service.cmr.repository.NodeRef nodeRef, String nodeName, String nodeType, String event, String identifier, String path, Map<org.alfresco.service.namespace.QName,Serializable> beforeProperties, Map<org.alfresco.service.namespace.QName,Serializable> afterProperties)
Default constructor
-
-
Method Detail
-
getTimestamp
public Date getTimestamp()
- Returns:
- The date of the audit entry
-
getTimestampString
public String getTimestampString()
- Returns:
- The date of the audit entry as an ISO8601 formatted String
-
getUserName
public String getUserName()
- Returns:
- The username of the user that caused the audit log entry to be created
-
getFullName
public String getFullName()
- Returns:
- The full name of the user that caused the audit log entry to be created
-
getUserRole
public String getUserRole()
- Returns:
- The role of the user that caused the audit log entry to be created
-
getNodeRef
public org.alfresco.service.cmr.repository.NodeRef getNodeRef()
- Returns:
- The NodeRef of the node the audit log entry is for
-
getNodeName
public String getNodeName()
- Returns:
- The name of the node the audit log entry is for
-
getNodeType
public String getNodeType()
- Returns:
- The type of the node the audit log entry is for
-
getEvent
public String getEvent()
- Returns:
- The human readable description of the reason for the audit log entry i.e. metadata updated, record declared
-
getIdentifier
public String getIdentifier()
An identifier for the item being audited, for example for a record it will be the unique record identifier, for a user it would be the username etc.- Returns:
- Ad identifier for the thing being audited
-
getPath
public String getPath()
- Returns:
- The path to the object being audited
-
getBeforeProperties
public Map<org.alfresco.service.namespace.QName,Serializable> getBeforeProperties()
- Returns:
- Map of properties before the audited action
-
getAfterProperties
public Map<org.alfresco.service.namespace.QName,Serializable> getAfterProperties()
- Returns:
- Map of properties after the audited action
-
getChangedProperties
public Map<org.alfresco.service.namespace.QName,org.alfresco.util.Pair<Serializable,Serializable>> getChangedProperties()
- Returns:
- Map of changed properties
-
-