Class AuditEntry

java.lang.Object
com.sas.lsaf.core.AbstractIdentifiable
com.sas.lsaf.security.audit.AuditEntry
All Implemented Interfaces:
Identifiable, Serializable

public class AuditEntry extends AbstractIdentifiable
AuditEntry contains information from a single audit record that includes the source information, the action performed, when the action was performed, and who performed the action.
Since:
1.5
See Also:
  • Constructor Details

    • AuditEntry

      public AuditEntry(String id, Date timestamp, String userId, String action, String sourceTypeId, String sourceId, String sourceName, String sourceLocation, AuditEntry.Mode mode)
      It is not intended or recommended that the consumer of this API construct these objects. They should only deal with the audit entries returned by the API.
      Parameters:
      id - the unique identifier for the entry.
      timestamp - the date and time the action was performed.
      userId - the user who performed the action.
      action - the action that was performed.
      sourceTypeId - the type identifier of object that was acted upon.
      sourceId - the unique identifier of the object that was acted upon.
      sourceName - the name of the object that was acted upon.
      sourceLocation - the location of the object that was acted upon.
      mode - the mode in which the audit entry was recorded.
  • Method Details

    • getUserId

      public String getUserId()
      Gets the identifier of the user who performed the action.
      Returns:
      The identifier of the user who performed the action.
    • getSourceTypeId

      public String getSourceTypeId()
      Gets the type identifier of object that was acted upon.
      Returns:
      The type identifier of object that was acted upon.
    • getSourceId

      public String getSourceId()
      Gets the unique identifier of the object that was acted upon.
      Returns:
      The unique identifier of the object that was acted upon.
    • getSourceLocation

      public String getSourceLocation()
      Gets the location of the object that was acted upon.
      Returns:
      The location of the object that was acted upon.
    • getSourceName

      public String getSourceName()
      Gets the name of the object that was acted upon.
      Returns:
      The name of the object that was acted upon.
    • getAction

      public String getAction()
      Gets the action performed.
      Returns:
      The action performed.
    • getTimestamp

      public Date getTimestamp()
      Gets the date and time in which the action was performed.
      Returns:
      The date and time in which the action was performed.
    • getMode

      public AuditEntry.Mode getMode()
      Gets the mode on which the audit entry was recorded.
      Returns:
      The mode on which the audit entry was recorded.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class AbstractIdentifiable
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class AbstractIdentifiable
    • toString

      public String toString()
      Overrides:
      toString in class AbstractIdentifiable