public class BulkEditHandler
extends java.lang.Object
BulkEditForm. Params:
BulkEditForm in widget model - requiredBulkEditForm.getItemsToEdit(). If any of those
operation fails changes will be reverted on all items.| Constructor and Description |
|---|
BulkEditHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyChanges(java.lang.Object item,
DataType dataType,
Attribute attribute,
BulkEditForm form) |
protected void |
applyChanges(java.lang.Object item,
DataType dataType,
BulkEditForm bulkEditForm) |
protected void |
beginTransaction()
Deprecated.
since 1808, not used anymore.
saveChangesWithoutInterceptors(com.hybris.backoffice.bulkedit.BulkEditForm) uses save method which became
transactional in 1808 |
protected void |
clearAttribute(java.lang.Object item,
DataAttribute dataAttribute,
Attribute attribute) |
protected void |
commitTransaction()
Deprecated.
since 1808, not used anymore.
saveChangesWithoutInterceptors(com.hybris.backoffice.bulkedit.BulkEditForm) uses save method which became
transactional in 1808 |
BulkEditForm |
getBulkEditForm(WidgetModel widgetModel,
java.util.Map<java.lang.String,java.lang.String> parameters) |
BulkEditValidationHelper |
getBulkEditValidationHelper() |
java.util.Set<java.lang.String> |
getDisabledInterceptorsBeanNames() |
ModelService |
getModelService() |
NotificationService |
getNotificationService() |
ObjectFacade |
getObjectFacade() |
ObjectValueService |
getObjectValueService() |
SessionService |
getSessionService() |
TypeFacade |
getTypeFacade() |
protected boolean |
isEmptyCollection(java.lang.Object newLocalizedValue) |
protected boolean |
isEmptyMap(java.lang.Object newLocalizedValue) |
protected boolean |
isEmptyString(java.lang.Object newLocalizedValue) |
protected boolean |
isNotEmptyValue(java.lang.Object newLocalizedValue) |
protected java.util.Optional<DataType> |
loadType(java.lang.Object item) |
protected java.util.Collection<? super java.lang.Object> |
mergeCollections(java.util.Collection<? super java.lang.Object> current,
java.util.Collection<? super java.lang.Object> valuesToAdd) |
protected java.util.Map |
mergeMaps(java.util.Map newValue,
java.util.Map currentValue) |
protected void |
notifyCannotSaveValidationFailed(BulkEditForm bulkEditForm,
java.util.Map<java.lang.Object,java.util.List<ValidationInfo>> validations) |
protected void |
notifySaveFailed(FlowActionHandlerAdapter adapter,
<any> saveResult) |
protected void |
notifySaveSucceeded(FlowActionHandlerAdapter adapter,
BulkEditForm bulkEditForm) |
void |
perform(CustomType customType,
FlowActionHandlerAdapter adapter,
java.util.Map<java.lang.String,java.lang.String> parameters) |
protected void |
revertAppliedChanges(BulkEditForm bulkEditForm) |
protected void |
rollbackTransaction()
Deprecated.
since 1808, not used anymore.
saveChangesWithoutInterceptors(com.hybris.backoffice.bulkedit.BulkEditForm) uses save method which became
transactional in 1808 |
protected <any> |
saveChanges(BulkEditForm bulkEditForm,
java.util.Map<java.lang.String,java.lang.String> parameters) |
protected <any> |
saveChangesWithInterceptors(BulkEditForm bulkEditForm) |
protected <any> |
saveChangesWithoutInterceptors(BulkEditForm bulkEditForm) |
void |
setBulkEditValidationHelper(BulkEditValidationHelper bulkEditValidationHelper) |
protected void |
setCollectionValue(java.lang.Object item,
Attribute attribute,
BulkEditForm form) |
void |
setDisabledInterceptorsBeanNames(java.util.Set<java.lang.String> disabledInterceptorsBeanNames) |
protected void |
setLocalizedValue(java.lang.Object item,
DataAttribute dataAttribute,
Attribute attribute,
BulkEditForm form) |
protected void |
setLocalizedValue(java.lang.Object item,
java.util.Set<java.util.Locale> locales,
java.lang.String qualifier,
java.util.Map<java.util.Locale,java.lang.Object> newValue) |
protected void |
setLocalizedValue(java.lang.Object item,
java.util.Set<java.util.Locale> locales,
java.lang.String qualifier,
java.lang.Object templateObject) |
protected void |
setMapValue(java.lang.Object item,
Attribute attribute,
BulkEditForm form) |
void |
setModelService(ModelService modelService) |
void |
setNotificationService(NotificationService notificationService) |
void |
setObjectFacade(ObjectFacade objectFacade) |
void |
setObjectValueService(ObjectValueService objectValueService) |
void |
setSessionService(SessionService sessionService) |
protected void |
setSingleValue(java.lang.Object item,
Attribute attribute,
BulkEditForm form) |
protected void |
setSingleValue(java.lang.Object item,
Attribute attribute,
java.lang.Object templateObject)
Deprecated.
since 1808 please use
setSingleValue(Object, Attribute, BulkEditForm) |
void |
setTypeFacade(TypeFacade typeFacade) |
protected void |
showValidationErrors(java.util.Map<java.lang.Object,java.util.List<ValidationInfo>> validations,
FlowActionHandlerAdapter adapter,
BulkEditForm bulkEditForm) |
public void perform(CustomType customType,
FlowActionHandlerAdapter adapter,
java.util.Map<java.lang.String,java.lang.String> parameters)
protected void showValidationErrors(java.util.Map<java.lang.Object,java.util.List<ValidationInfo>> validations,
FlowActionHandlerAdapter adapter,
BulkEditForm bulkEditForm)
protected <any> saveChanges(BulkEditForm bulkEditForm, java.util.Map<java.lang.String,java.lang.String> parameters)
protected <any> saveChangesWithoutInterceptors(BulkEditForm bulkEditForm)
protected <any> saveChangesWithInterceptors(BulkEditForm bulkEditForm)
protected void applyChanges(java.lang.Object item,
DataType dataType,
BulkEditForm bulkEditForm)
protected void applyChanges(java.lang.Object item,
DataType dataType,
Attribute attribute,
BulkEditForm form)
protected void setLocalizedValue(java.lang.Object item,
DataAttribute dataAttribute,
Attribute attribute,
BulkEditForm form)
protected void clearAttribute(java.lang.Object item,
DataAttribute dataAttribute,
Attribute attribute)
@Deprecated
protected void setSingleValue(java.lang.Object item,
Attribute attribute,
java.lang.Object templateObject)
setSingleValue(Object, Attribute, BulkEditForm)protected void setSingleValue(java.lang.Object item,
Attribute attribute,
BulkEditForm form)
protected void setLocalizedValue(java.lang.Object item,
java.util.Set<java.util.Locale> locales,
java.lang.String qualifier,
java.lang.Object templateObject)
protected void setLocalizedValue(java.lang.Object item,
java.util.Set<java.util.Locale> locales,
java.lang.String qualifier,
java.util.Map<java.util.Locale,java.lang.Object> newValue)
protected void setCollectionValue(java.lang.Object item,
Attribute attribute,
BulkEditForm form)
protected java.util.Collection<? super java.lang.Object> mergeCollections(java.util.Collection<? super java.lang.Object> current,
java.util.Collection<? super java.lang.Object> valuesToAdd)
protected void setMapValue(java.lang.Object item,
Attribute attribute,
BulkEditForm form)
protected java.util.Map mergeMaps(java.util.Map newValue,
java.util.Map currentValue)
protected void revertAppliedChanges(BulkEditForm bulkEditForm)
protected void notifySaveFailed(FlowActionHandlerAdapter adapter,
<any> saveResult)
protected void notifySaveSucceeded(FlowActionHandlerAdapter adapter,
BulkEditForm bulkEditForm)
protected void notifyCannotSaveValidationFailed(BulkEditForm bulkEditForm, java.util.Map<java.lang.Object,java.util.List<ValidationInfo>> validations)
protected boolean isNotEmptyValue(java.lang.Object newLocalizedValue)
protected boolean isEmptyMap(java.lang.Object newLocalizedValue)
protected boolean isEmptyCollection(java.lang.Object newLocalizedValue)
protected boolean isEmptyString(java.lang.Object newLocalizedValue)
protected java.util.Optional<DataType> loadType(java.lang.Object item)
public BulkEditForm getBulkEditForm(WidgetModel widgetModel, java.util.Map<java.lang.String,java.lang.String> parameters)
public ObjectValueService getObjectValueService()
@Deprecated protected void commitTransaction()
saveChangesWithoutInterceptors(com.hybris.backoffice.bulkedit.BulkEditForm) uses save method which became
transactional in 1808@Deprecated protected void rollbackTransaction()
saveChangesWithoutInterceptors(com.hybris.backoffice.bulkedit.BulkEditForm) uses save method which became
transactional in 1808@Deprecated protected void beginTransaction()
saveChangesWithoutInterceptors(com.hybris.backoffice.bulkedit.BulkEditForm) uses save method which became
transactional in 1808public void setObjectValueService(ObjectValueService objectValueService)
public ObjectFacade getObjectFacade()
public void setObjectFacade(ObjectFacade objectFacade)
public void setTypeFacade(TypeFacade typeFacade)
public TypeFacade getTypeFacade()
public NotificationService getNotificationService()
public void setNotificationService(NotificationService notificationService)
public ModelService getModelService()
public void setModelService(ModelService modelService)
public SessionService getSessionService()
public void setSessionService(SessionService sessionService)
public BulkEditValidationHelper getBulkEditValidationHelper()
public void setBulkEditValidationHelper(BulkEditValidationHelper bulkEditValidationHelper)
public java.util.Set<java.lang.String> getDisabledInterceptorsBeanNames()
public void setDisabledInterceptorsBeanNames(java.util.Set<java.lang.String> disabledInterceptorsBeanNames)
Copyright © 2018 SAP SE. All Rights Reserved.