Package com.hybris.backoffice.bulkedit
Class BulkEditHandler
java.lang.Object
com.hybris.backoffice.bulkedit.BulkEditHandler
- All Implemented Interfaces:
com.hybris.cockpitng.widgets.configurableflow.FlowActionHandler,com.hybris.cockpitng.widgets.configurableflow.FlowCancelActionHandler
- Direct Known Subclasses:
ClassificationBulkEditHandler
public class BulkEditHandler
extends Object
implements com.hybris.cockpitng.widgets.configurableflow.FlowActionHandler, com.hybris.cockpitng.widgets.configurableflow.FlowCancelActionHandler
Bulk edit handler which is responsible for applying changes defined in the
BulkEditForm. Params:
- bulkEditFormModelKey - path to bulk edit for
BulkEditFormin widget model - required
BulkEditForm.getItemsToEdit(). If any of those
operation fails changes will be reverted on all items.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyChanges(Object item, com.hybris.cockpitng.dataaccess.facades.type.DataType dataType, com.hybris.backoffice.attributechooser.Attribute attribute, BulkEditForm form) protected voidapplyChanges(Object item, com.hybris.cockpitng.dataaccess.facades.type.DataType dataType, BulkEditForm bulkEditForm) protected voidDeprecated, for removal: This API element is subject to removal in a future version.since 1808, not used anymore.protected voidclearAttribute(Object item, com.hybris.cockpitng.dataaccess.facades.type.DataAttribute dataAttribute, com.hybris.backoffice.attributechooser.Attribute attribute) voidprotected voidDeprecated, for removal: This API element is subject to removal in a future version.since 1808, not used anymore.getBulkEditForm(com.hybris.cockpitng.core.model.WidgetModel widgetModel, Map<String, String> parameters) protected Set<DynamicAttributeBulkEditHandler>com.hybris.backoffice.widgets.notificationarea.NotificationServicecom.hybris.cockpitng.dataaccess.facades.object.ObjectFacadecom.hybris.cockpitng.type.ObjectValueServicecom.hybris.cockpitng.dataaccess.facades.permissions.PermissionFacadecom.hybris.cockpitng.dataaccess.facades.type.TypeFacadeprotected booleanhasModifyPermission(BulkEditForm bulkEditForm, Map<String, String> parameters) protected booleanisEmptyCollection(Object newLocalizedValue) protected booleanisEmptyMap(Object newLocalizedValue) protected booleanisEmptyString(Object newLocalizedValue) protected booleanisNotEmptyValue(Object newLocalizedValue) protected Optional<com.hybris.cockpitng.dataaccess.facades.type.DataType>protected Collection<? super Object>mergeCollections(Collection<? super Object> current, Collection<? super Object> valuesToAdd) protected Mapprotected voidnotifyCannotSaveValidationFailed(BulkEditForm bulkEditForm, Map<Object, List<com.hybris.cockpitng.validation.model.ValidationInfo>> validations) protected voidnotifySaveFailed(com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, com.hybris.cockpitng.dataaccess.facades.object.ObjectFacadeOperationResult<Object> saveResult) protected voidnotifySaveSucceeded(com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, BulkEditForm bulkEditForm) voidperform()voidperform(com.hybris.cockpitng.config.jaxb.wizard.CustomType customType, com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, Map<String, String> parameters) voidregisterDynamicAttributeBulkEditHandler(DynamicAttributeBulkEditHandler dynamicAttributeBulkEditHandler) protected voidrevertAppliedChanges(BulkEditForm bulkEditForm) protected voidDeprecated, for removal: This API element is subject to removal in a future version.since 1808, not used anymore.protected com.hybris.cockpitng.dataaccess.facades.object.ObjectFacadeOperationResult<Object>saveChanges(BulkEditForm bulkEditForm, Map<String, String> parameters) protected com.hybris.cockpitng.dataaccess.facades.object.ObjectFacadeOperationResult<Object>saveChangesWithInterceptors(BulkEditForm bulkEditForm) protected com.hybris.cockpitng.dataaccess.facades.object.ObjectFacadeOperationResult<Object>saveChangesWithoutInterceptors(BulkEditForm bulkEditForm) voidsetBulkEditValidationHelper(BulkEditValidationHelper bulkEditValidationHelper) protected voidsetCollectionValue(Object item, com.hybris.backoffice.attributechooser.Attribute attribute, BulkEditForm form) voidsetDisabledInterceptorsBeanNames(Set<String> disabledInterceptorsBeanNames) protected voidsetLocalizedValue(Object item, com.hybris.cockpitng.dataaccess.facades.type.DataAttribute dataAttribute, com.hybris.backoffice.attributechooser.Attribute attribute, BulkEditForm form) protected voidprotected voidprotected voidsetMapValue(Object item, com.hybris.backoffice.attributechooser.Attribute attribute, BulkEditForm form) voidsetModelService(ModelService modelService) voidsetNotificationService(com.hybris.backoffice.widgets.notificationarea.NotificationService notificationService) voidsetObjectFacade(com.hybris.cockpitng.dataaccess.facades.object.ObjectFacade objectFacade) voidsetObjectValueService(com.hybris.cockpitng.type.ObjectValueService objectValueService) voidsetPermissionFacade(com.hybris.cockpitng.dataaccess.facades.permissions.PermissionFacade permissionFacade) voidsetSessionService(SessionService sessionService) protected voidsetSingleValue(Object item, com.hybris.backoffice.attributechooser.Attribute attribute, BulkEditForm form) protected voidsetSingleValue(Object item, com.hybris.backoffice.attributechooser.Attribute attribute, Object templateObject) Deprecated, for removal: This API element is subject to removal in a future version.since 1808 please usesetSingleValue(Object, Attribute, BulkEditForm)voidsetTypeFacade(com.hybris.cockpitng.dataaccess.facades.type.TypeFacade typeFacade) protected voidshowValidationErrors(Map<Object, List<com.hybris.cockpitng.validation.model.ValidationInfo>> validations, com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, BulkEditForm bulkEditForm)
-
Field Details
-
PROPERTY_HAS_VALIDATION_ERRORS
- See Also:
-
-
Constructor Details
-
BulkEditHandler
public BulkEditHandler()
-
-
Method Details
-
perform
public void perform(com.hybris.cockpitng.config.jaxb.wizard.CustomType customType, com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, Map<String, String> parameters) - Specified by:
performin interfacecom.hybris.cockpitng.widgets.configurableflow.FlowActionHandler
-
showValidationErrors
protected void showValidationErrors(Map<Object, List<com.hybris.cockpitng.validation.model.ValidationInfo>> validations, com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, BulkEditForm bulkEditForm) -
saveChanges
protected com.hybris.cockpitng.dataaccess.facades.object.ObjectFacadeOperationResult<Object> saveChanges(BulkEditForm bulkEditForm, Map<String, String> parameters) -
hasModifyPermission
-
saveChangesWithoutInterceptors
protected com.hybris.cockpitng.dataaccess.facades.object.ObjectFacadeOperationResult<Object> saveChangesWithoutInterceptors(BulkEditForm bulkEditForm) -
saveChangesWithInterceptors
protected com.hybris.cockpitng.dataaccess.facades.object.ObjectFacadeOperationResult<Object> saveChangesWithInterceptors(BulkEditForm bulkEditForm) -
applyChanges
protected void applyChanges(Object item, com.hybris.cockpitng.dataaccess.facades.type.DataType dataType, BulkEditForm bulkEditForm) -
applyChanges
protected void applyChanges(Object item, com.hybris.cockpitng.dataaccess.facades.type.DataType dataType, com.hybris.backoffice.attributechooser.Attribute attribute, BulkEditForm form) -
setLocalizedValue
protected void setLocalizedValue(Object item, com.hybris.cockpitng.dataaccess.facades.type.DataAttribute dataAttribute, com.hybris.backoffice.attributechooser.Attribute attribute, BulkEditForm form) -
clearAttribute
protected void clearAttribute(Object item, com.hybris.cockpitng.dataaccess.facades.type.DataAttribute dataAttribute, com.hybris.backoffice.attributechooser.Attribute attribute) -
setSingleValue
@Deprecated(since="1808", forRemoval=true) protected void setSingleValue(Object item, com.hybris.backoffice.attributechooser.Attribute attribute, Object templateObject) Deprecated, for removal: This API element is subject to removal in a future version.since 1808 please usesetSingleValue(Object, Attribute, BulkEditForm) -
setSingleValue
protected void setSingleValue(Object item, com.hybris.backoffice.attributechooser.Attribute attribute, BulkEditForm form) -
setLocalizedValue
-
setLocalizedValue
-
setCollectionValue
protected void setCollectionValue(Object item, com.hybris.backoffice.attributechooser.Attribute attribute, BulkEditForm form) -
mergeCollections
protected Collection<? super Object> mergeCollections(Collection<? super Object> current, Collection<? super Object> valuesToAdd) -
setMapValue
protected void setMapValue(Object item, com.hybris.backoffice.attributechooser.Attribute attribute, BulkEditForm form) -
mergeMaps
-
revertAppliedChanges
-
notifySaveFailed
protected void notifySaveFailed(com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, com.hybris.cockpitng.dataaccess.facades.object.ObjectFacadeOperationResult<Object> saveResult) -
notifySaveSucceeded
protected void notifySaveSucceeded(com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, BulkEditForm bulkEditForm) -
notifyCannotSaveValidationFailed
protected void notifyCannotSaveValidationFailed(BulkEditForm bulkEditForm, Map<Object, List<com.hybris.cockpitng.validation.model.ValidationInfo>> validations) -
isNotEmptyValue
-
isEmptyMap
-
isEmptyCollection
-
isEmptyString
-
loadType
-
clearDynamicAttributeBulkEditHandlers
public void clearDynamicAttributeBulkEditHandlers() -
perform
public void perform()- Specified by:
performin interfacecom.hybris.cockpitng.widgets.configurableflow.FlowCancelActionHandler
-
getDynamicAttributeBulkEditHandlers
-
registerDynamicAttributeBulkEditHandler
public void registerDynamicAttributeBulkEditHandler(DynamicAttributeBulkEditHandler dynamicAttributeBulkEditHandler) -
getBulkEditForm
public BulkEditForm getBulkEditForm(com.hybris.cockpitng.core.model.WidgetModel widgetModel, Map<String, String> parameters) -
getObjectValueService
public com.hybris.cockpitng.type.ObjectValueService getObjectValueService() -
commitTransaction
Deprecated, for removal: This API element is subject to removal in a future version.since 1808, not used anymore.saveChangesWithoutInterceptors(com.hybris.backoffice.bulkedit.BulkEditForm)uses save method which became transactional in 1808 -
rollbackTransaction
Deprecated, for removal: This API element is subject to removal in a future version.since 1808, not used anymore.saveChangesWithoutInterceptors(com.hybris.backoffice.bulkedit.BulkEditForm)uses save method which became transactional in 1808 -
beginTransaction
Deprecated, for removal: This API element is subject to removal in a future version.since 1808, not used anymore.saveChangesWithoutInterceptors(com.hybris.backoffice.bulkedit.BulkEditForm)uses save method which became transactional in 1808 -
setObjectValueService
public void setObjectValueService(com.hybris.cockpitng.type.ObjectValueService objectValueService) -
getObjectFacade
public com.hybris.cockpitng.dataaccess.facades.object.ObjectFacade getObjectFacade() -
getPermissionFacade
public com.hybris.cockpitng.dataaccess.facades.permissions.PermissionFacade getPermissionFacade() -
setPermissionFacade
public void setPermissionFacade(com.hybris.cockpitng.dataaccess.facades.permissions.PermissionFacade permissionFacade) -
setObjectFacade
public void setObjectFacade(com.hybris.cockpitng.dataaccess.facades.object.ObjectFacade objectFacade) -
setTypeFacade
public void setTypeFacade(com.hybris.cockpitng.dataaccess.facades.type.TypeFacade typeFacade) -
getTypeFacade
public com.hybris.cockpitng.dataaccess.facades.type.TypeFacade getTypeFacade() -
getNotificationService
public com.hybris.backoffice.widgets.notificationarea.NotificationService getNotificationService() -
setNotificationService
public void setNotificationService(com.hybris.backoffice.widgets.notificationarea.NotificationService notificationService) -
getModelService
-
setModelService
-
getSessionService
-
setSessionService
-
getBulkEditValidationHelper
-
setBulkEditValidationHelper
-
getDisabledInterceptorsBeanNames
-
setDisabledInterceptorsBeanNames
-