Class AuditLogObserver.AuditLogEntry
java.lang.Object
com.university.bookstore.observer.AuditLogObserver.AuditLogEntry
- Enclosing class:
AuditLogObserver
Represents a single audit log entry.
- Since:
- 2024-09-15
- Version:
- 3.0
- Author:
- Navid Mohaghegh
-
Constructor Summary
ConstructorsConstructorDescriptionAuditLogEntry(long timestamp, String eventType, String materialId, String materialTitle, String description) Creates an audit log entry. -
Method Summary
Modifier and TypeMethodDescriptionGets the event description.Gets the type of event.Gets the ID of the material.Gets the title of the material.longGets the timestamp of the event.toString()
-
Constructor Details
-
AuditLogEntry
public AuditLogEntry(long timestamp, String eventType, String materialId, String materialTitle, String description) Creates an audit log entry.- Parameters:
timestamp- when the event occurredeventType- type of eventmaterialId- ID of the materialmaterialTitle- title of the materialdescription- event description
-
-
Method Details
-
getTimestamp
public long getTimestamp()Gets the timestamp of the event. @return timestamp of the event -
getEventType
Gets the type of event. @return type of event -
getMaterialId
Gets the ID of the material. @return ID of the material -
getMaterialTitle
Gets the title of the material. @return title of the material -
getDescription
Gets the event description. @return event description -
toString
-