public class DefaultItemModificationHistoryService extends java.lang.Object implements ItemModificationHistoryService
SavedValuesModel). It covers both standard and localized
attributes.| Constructor and Description |
|---|
DefaultItemModificationHistoryService() |
| Modifier and Type | Method and Description |
|---|---|
protected ItemModificationInfo |
computeModificationsForModifiedItem(ItemModel itemModel,
ModelValueHistory modelHistory,
boolean isNew) |
protected java.lang.Object |
convertLocalizedMapToPersistenceLayer(java.util.Map<java.util.Locale,java.lang.Object> localizedMap) |
ItemModificationInfo |
createModificationInfo(ItemModel itemModel)
Creates ItemModificationInfo object which could be later passed to
ItemModificationHistoryService.logItemModification(ItemModificationInfo). |
CommonI18NService |
getCommonI18NService() |
I18NService |
getI18NService() |
ModelService |
getModelService() |
protected java.lang.Object |
getOriginalValue(ItemModel model,
java.lang.String attribute,
java.util.Locale locale,
ModelValueHistory history) |
protected java.lang.Object |
getOriginalValue(ItemModel model,
java.lang.String attribute,
ModelValueHistory history) |
java.util.List<SavedValuesModel> |
getSavedValues(ItemModel item)
Gets the saved values
|
void |
logItemModification(ItemModificationInfo modificationInfo)
Persist modification info
|
protected void |
logModifications(ItemModel model,
ItemModificationInfo modificationInfo) |
void |
setCommonI18NService(CommonI18NService commonI18NService) |
void |
setFlexibleSearchService(FlexibleSearchService flexibleSearchService) |
void |
setI18NService(I18NService i18NService) |
void |
setModelService(ModelService modelService) |
void |
setTypeFacade(TypeFacade typeFacade) |
protected java.lang.Object |
toPersistenceLayer(java.lang.Object value,
boolean localized) |
public DefaultItemModificationHistoryService()
public java.util.List<SavedValuesModel> getSavedValues(ItemModel item)
ItemModificationHistoryServicegetSavedValues in interface ItemModificationHistoryServiceitem - item for which we looking for SavedValuesitempublic void setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
public ModelService getModelService()
public void setModelService(ModelService modelService)
public I18NService getI18NService()
public void setI18NService(I18NService i18NService)
public CommonI18NService getCommonI18NService()
public void setCommonI18NService(CommonI18NService commonI18NService)
public void setTypeFacade(TypeFacade typeFacade)
public void logItemModification(ItemModificationInfo modificationInfo)
ItemModificationHistoryServicelogItemModification in interface ItemModificationHistoryServicemodificationInfo - info to logItemModificationInfopublic ItemModificationInfo createModificationInfo(ItemModel itemModel)
ItemModificationHistoryServiceItemModificationHistoryService.logItemModification(ItemModificationInfo). Should be called after changes made on object, but before
saving it.createModificationInfo in interface ItemModificationHistoryServiceitemModel - changed itemItemModificationInfoprotected ItemModificationInfo computeModificationsForModifiedItem(ItemModel itemModel, ModelValueHistory modelHistory, boolean isNew)
protected java.lang.Object getOriginalValue(ItemModel model, java.lang.String attribute, ModelValueHistory history)
protected java.lang.Object getOriginalValue(ItemModel model, java.lang.String attribute, java.util.Locale locale, ModelValueHistory history)
protected void logModifications(ItemModel model, ItemModificationInfo modificationInfo)
protected java.lang.Object toPersistenceLayer(java.lang.Object value,
boolean localized)
protected java.lang.Object convertLocalizedMapToPersistenceLayer(java.util.Map<java.util.Locale,java.lang.Object> localizedMap)
Copyright © 2018 SAP SE. All Rights Reserved.