Package com.sas.lsaf.security.audit
Class AuditEntry
java.lang.Object
com.sas.lsaf.core.AbstractIdentifiable
com.sas.lsaf.security.audit.AuditEntry
- All Implemented Interfaces:
Identifiable,Serializable
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe execution mode in which the audit entry was recorded. -
Constructor Summary
ConstructorsConstructorDescriptionAuditEntry(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. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the action performed.getMode()Gets the mode on which the audit entry was recorded.Gets the unique identifier of the object that was acted upon.Gets the location of the object that was acted upon.Gets the name of the object that was acted upon.Gets the type identifier of object that was acted upon.Gets the date and time in which the action was performed.Gets the identifier of the user who performed the action.inthashCode()toString()Methods inherited from class com.sas.lsaf.core.AbstractIdentifiable
getId, getTypeId
-
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
Gets the identifier of the user who performed the action.- Returns:
- The identifier of the user who performed the action.
-
getSourceTypeId
Gets the type identifier of object that was acted upon.- Returns:
- The type identifier of object that was acted upon.
-
getSourceId
Gets the unique identifier of the object that was acted upon.- Returns:
- The unique identifier of the object that was acted upon.
-
getSourceLocation
Gets the location of the object that was acted upon.- Returns:
- The location of the object that was acted upon.
-
getSourceName
Gets the name of the object that was acted upon.- Returns:
- The name of the object that was acted upon.
-
getAction
Gets the action performed.- Returns:
- The action performed.
-
getTimestamp
Gets the date and time in which the action was performed.- Returns:
- The date and time in which the action was performed.
-
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:
hashCodein classAbstractIdentifiable
-
equals
- Overrides:
equalsin classAbstractIdentifiable
-
toString
- Overrides:
toStringin classAbstractIdentifiable
-