Interface ItemModificationHistoryService
- All Known Implementing Classes:
DefaultItemModificationHistoryService
public interface ItemModificationHistoryService
Interface responsible for reading/writing SavedValues objects which represents modification performed on objects.
-
Method Summary
Modifier and TypeMethodDescriptionCreates ItemModificationInfo object which could be later passed tologItemModification(ItemModificationInfo).getSavedValues(ItemModel item) Gets the saved valuesvoidlogItemModification(ItemModificationInfo modificationInfo) Persist modification info
-
Method Details
-
createModificationInfo
Creates ItemModificationInfo object which could be later passed tologItemModification(ItemModificationInfo). Should be called after changes made on object, but before saving it.- Parameters:
item- changed item- Returns:
- ItemModificationInfo
- See Also:
-
logItemModification
Persist modification info- Parameters:
modificationInfo- info to log- See Also:
-
getSavedValues
Gets the saved values- Parameters:
item- item for which we looking for SavedValues- Returns:
- List of all SavedValues for given
item
-