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 UsergetActionedBy()java.util.DategetActionedDate()java.lang.StringgetChangeFrom()java.lang.StringgetChangeTo()java.lang.StringgetChangeValue()java.lang.IntegergetEntityId()java.lang.StringgetEntityType()static voidlogChange(java.lang.String entityType, java.lang.Integer id, User activeUser, java.lang.String changeValue, java.lang.String changeFrom, java.lang.String changeTo)voidsetActionedBy(User actionedBy)voidsetActionedDate(java.util.Date actionedDate)voidsetChangeFrom(java.lang.String changeFrom)voidsetChangeTo(java.lang.String changeTo)voidsetChangeValue(java.lang.String changeValue)voidsetEntityId(java.lang.Integer entityId)voidsetEntityType(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)
-
-