Class DbAgencyObjectLog
- java.lang.Object
-
- com.openindex.openestate.tool.db.DbLog
-
- com.openindex.openestate.tool.agency.db.DbAgencyObjectLog
-
- All Implemented Interfaces:
Serializable
public class DbAgencyObjectLog extends DbLog
DbAgencyObjectLog.- Author:
- Andreas Rudolph
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description long
objectId
static String
TYPE
-
Fields inherited from class com.openindex.openestate.tool.db.DbLog
ACTION_ADD, ACTION_EDIT, changes, createdAt, createdBy, entryAction, entryType, id, modifiedAt, modifiedBy, notes, text
-
-
Constructor Summary
Constructors Constructor Description DbAgencyObjectLog()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DbAgencyObjectLog
create(long objectId, String action, DbUser currentUser)
String
getPluginName()
void
initChanges(DbAgencyObject oldObject, DbAgencyObject newObject)
void
putChangedAddress(EstateAddressImpl oldAddress, EstateAddressImpl newAddress)
void
putChangedContact(Long oldContactId, Long newContactId)
void
putChangedExportMode(DbAgencyObject.ExportMode oldExportMode, DbAgencyObject.ExportMode newExportMode)
void
putChangedHiddenPrices(Boolean oldHiddenPrices, Boolean newHiddenPrices)
void
putChangedStatus(DbAgencyObject.Status oldStatus, DbAgencyObject.Status newStatus)
void
putChangedValue(AbstractAttribImpl oldAttribImpl, AbstractAttribImpl newAttribImpl)
String
writeAction()
static String
writeAction(String action)
String
writeChangeKey(String key)
String
writeChangeValue(String key, String value)
-
-
-
Field Detail
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
objectId
public long objectId
-
-
Method Detail
-
create
public static DbAgencyObjectLog create(long objectId, String action, DbUser currentUser)
-
getPluginName
public final String getPluginName()
- Specified by:
getPluginName
in classDbLog
-
initChanges
public void initChanges(DbAgencyObject oldObject, DbAgencyObject newObject)
-
putChangedAddress
public void putChangedAddress(EstateAddressImpl oldAddress, EstateAddressImpl newAddress)
-
putChangedExportMode
public void putChangedExportMode(DbAgencyObject.ExportMode oldExportMode, DbAgencyObject.ExportMode newExportMode)
-
putChangedHiddenPrices
public void putChangedHiddenPrices(Boolean oldHiddenPrices, Boolean newHiddenPrices)
-
putChangedStatus
public void putChangedStatus(DbAgencyObject.Status oldStatus, DbAgencyObject.Status newStatus)
-
putChangedValue
public void putChangedValue(AbstractAttribImpl oldAttribImpl, AbstractAttribImpl newAttribImpl)
-
writeAction
public String writeAction()
- Specified by:
writeAction
in classDbLog
-
writeChangeKey
public String writeChangeKey(String key)
- Overrides:
writeChangeKey
in classDbLog
-
writeChangeValue
public String writeChangeValue(String key, String value)
- Overrides:
writeChangeValue
in classDbLog
-
-