Package com.sgs.common.database
Class DocumentChangeLog
- java.lang.Object
-
- com.sgs.common.database.HibernateObject
-
- com.sgs.common.database.DocumentChangeLog
-
public class DocumentChangeLog extends HibernateObject
Records changes made to documents. It logs the type and ID of the entity, details of the changes (from and to values), and the user responsible, maintaining an audit trail of document modifications.
-
-
Field Summary
-
Fields inherited from class com.sgs.common.database.HibernateObject
ID
-
-
Constructor Summary
Constructors Constructor Description DocumentChangeLog()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description User
getActionedBy()
java.util.Date
getActionedDate()
java.lang.String
getChangeFrom()
java.lang.String
getChangeTo()
java.lang.String
getChangeValue()
java.lang.Integer
getEntityId()
java.lang.String
getEntityType()
static void
logChange(java.lang.String entityType, java.lang.Integer id, User activeUser, java.lang.String changeValue, java.lang.String changeFrom, java.lang.String changeTo)
void
setActionedBy(User actionedBy)
void
setActionedDate(java.util.Date actionedDate)
void
setChangeFrom(java.lang.String changeFrom)
void
setChangeTo(java.lang.String changeTo)
void
setChangeValue(java.lang.String changeValue)
void
setEntityId(java.lang.Integer entityId)
void
setEntityType(java.lang.String entityType)
-
Methods inherited from class com.sgs.common.database.HibernateObject
getExported, getID, isDontSave, isModified, setDontSave, setExported, setID, setModified
-
-
-
-
Method Detail
-
getEntityType
public java.lang.String getEntityType()
-
setEntityType
public void setEntityType(java.lang.String entityType)
-
getEntityId
public java.lang.Integer getEntityId()
-
setEntityId
public void setEntityId(java.lang.Integer entityId)
-
getActionedBy
public User getActionedBy()
-
setActionedBy
public void setActionedBy(User actionedBy)
-
getActionedDate
public java.util.Date getActionedDate()
-
setActionedDate
public void setActionedDate(java.util.Date actionedDate)
-
getChangeValue
public java.lang.String getChangeValue()
-
setChangeValue
public void setChangeValue(java.lang.String changeValue)
-
getChangeFrom
public java.lang.String getChangeFrom()
-
setChangeFrom
public void setChangeFrom(java.lang.String changeFrom)
-
getChangeTo
public java.lang.String getChangeTo()
-
setChangeTo
public void setChangeTo(java.lang.String changeTo)
-
logChange
public static void logChange(java.lang.String entityType, java.lang.Integer id, User activeUser, java.lang.String changeValue, java.lang.String changeFrom, java.lang.String changeTo)
-
-