Package com.storedobject.core
Class AuditTrail
java.lang.Object
com.storedobject.core.AuditTrail
-
Method Summary
Modifier and TypeMethodDescriptionstatic AuditTrail
Create audit trail for the given transaction ID.static AuditTrail
create
(StoredObject object) Create audit trail for the given instance.Get the application client environment.getId()
Get transaction Id.Get the IP address from which this transaction was carried out.Get the login time of the user.Get the logout time of the user.Get the status of the transaction.Get timestamp.getUser()
Get the user who created this transaction.
-
Method Details
-
create
Create audit trail for the given instance.- Parameters:
object
- Object instance.- Returns:
- Audit trail instance.
-
create
Create audit trail for the given transaction ID.- Parameters:
transactionId
- Transaction ID.- Returns:
- Audit trail instance.
-
getId
-
getTimestamp
-
getUser
-
getLoginTime
-
getLogoutTime
Get the logout time of the user.Note: Sometimes the logout time may not be recorded correctly dur to communication error. In that case, this method returns
null
.- Returns:
- Log out time.
-
getApplicationClient
Get the application client environment. If it was executed from a browser, browser details will be included.- Returns:
- Application client environment.
-
getIPAddress
Get the IP address from which this transaction was carried out.- Returns:
- IP address string.
-
getStatus
-