Package com.jk.core.security
Class JKAudit
java.lang.Object
com.jk.core.security.JKAudit
This class is used to represents an audit entry that tracks changes made to a
business record.
- Version:
- 1.0
- Author:
- Dr. Jalal H. Kiswani
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
This method gets the unique identifier for the audit entry.This method generates an audit text representation that combines the previous and new values for the changed data, separated by a divider.This method gets the type of audit.This method gets the identifier of the business record associated with the audit entry.getDate()
This method gets the date and time when the audit entry was created.This method get the description of the change made.getGui()
This method gets the graphical user interface (GUI).This method gets the new value of the changed data.This method gets the previous value of the changed data.This method gets the name of the database table where the change occurred.getUser()
This method gets the user associated with the audit entry.void
setAuditId
(int auditId) This method sets the unique identifier for the audit entry to the provided value.void
setAuditType
(JKAuditType auditType) This method sets the type of audit to the provided value.void
setBusinessRecordId
(Object businessRecordId) This method sets the identifier of the business record associated with the audit entry to the provided value.void
This method sets the date and time when the audit entry was created to the provided value.void
setDescription
(String description) This method sets the description of the change made to the provided value.void
This method sets the graphical user interface (GUI) to the provided value.void
This method sets the graphical user interface (GUI) to the provided value.void
setNewValue
(String newValue) This method sets the new value of the changed data to the provided value.void
setOldValue
(String oldValue) This method sets the previous value of the changed data to the provided value.void
setTableName
(String recordName) This method sets the name of the database table where the change occurred to the provided value.void
This method sets the user associated with the audit entry to the provided value.
-
Constructor Details
-
JKAudit
public JKAudit()
-
-
Method Details
-
getAuditId
public int getAuditId()This method gets the unique identifier for the audit entry.- Returns:
- the unique identifier for the audit entry.
-
getAuditText
This method generates an audit text representation that combines the previous and new values for the changed data, separated by a divider.- Returns:
- The audit text representation.
-
getAuditType
This method gets the type of audit.- Returns:
- the audit type.
-
getBusinessRecordId
This method gets the identifier of the business record associated with the audit entry.- Returns:
- the identifier of the business record associated with the audit entry.
-
getDate
This method gets the date and time when the audit entry was created.- Returns:
- the date and time when the audit entry was created.
-
getDescription
This method get the description of the change made.- Returns:
- the description of the change made.
-
getGui
This method gets the graphical user interface (GUI).- Returns:
- the graphical user interface (GUI).
-
getNewValue
This method gets the new value of the changed data.- Returns:
- the new value of the changed data.
-
getOldValue
This method gets the previous value of the changed data.- Returns:
- the previous value of the changed data.
-
getTableName
This method gets the name of the database table where the change occurred.- Returns:
- the name of the database table where the change occurred.
-
getUser
This method gets the user associated with the audit entry.- Returns:
- the user associated with the audit entry.
-
setAuditId
public void setAuditId(int auditId) This method sets the unique identifier for the audit entry to the provided value.- Parameters:
auditId
- Specifies the new unique identifier for the audit entry.
-
setAuditType
This method sets the type of audit to the provided value.- Parameters:
auditType
- Specifies the new audit type.
-
setBusinessRecordId
This method sets the identifier of the business record associated with the audit entry to the provided value.- Parameters:
businessRecordId
- Specifies the new identifier of the business record associated with the audit entry.
-
setDate
This method sets the date and time when the audit entry was created to the provided value.- Parameters:
date
- Specifies the new date and time when the audit entry was created.
-
setDescription
This method sets the description of the change made to the provided value.- Parameters:
description
- Specifies the new description of the change made.
-
setGui
This method sets the graphical user interface (GUI) to the provided value.- Parameters:
gui
- Specifies the new graphical user interface (GUI).
-
setGui
This method sets the graphical user interface (GUI) to the provided value.- Parameters:
gui
- Specifies the new graphical user interface (GUI).
-
setNewValue
This method sets the new value of the changed data to the provided value.- Parameters:
newValue
- Specifies the new value of the changed data.
-
setOldValue
This method sets the previous value of the changed data to the provided value.- Parameters:
oldValue
- Specifies the new previous value of the changed data.
-
setTableName
This method sets the name of the database table where the change occurred to the provided value.- Parameters:
recordName
- Specifies the new name of the database table where the change occurred.
-
setUser
This method sets the user associated with the audit entry to the provided value.- Parameters:
user
- Specifies the new user associated with the audit entry.
-