Class ShortcutsUtilService
java.lang.Object
com.hybris.pcmbackoffice.widgets.shortcuts.ShortcutsUtilService
UtilService for shortcuts widgets and remove shortcuts list action.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<com.hybris.backoffice.widgets.advancedsearch.impl.SearchConditionData>addFilterConditionOnSearchData(com.hybris.cockpitng.search.data.ValueComparisonOperator operator, List<PK> list) com.hybris.backoffice.widgets.advancedsearch.AdvancedSearchOperatorServicegetAlreadyExistItems(Collection<ItemModel> items, BackofficeObjectSpecialCollectionModel collectionModel) Get exist items.protected List<com.hybris.backoffice.widgets.advancedsearch.impl.SearchConditionData>getConditions(com.hybris.cockpitng.search.data.ValueComparisonOperator operator, List<PK> list) protected Stringprotected com.hybris.cockpitng.search.data.FullTextSearchDatacom.hybris.cockpitng.labels.LabelServiceprotected intgetMaxSize(Shortcutsitem shortcutsitem) getNotExistItems(Collection<ItemModel> items, BackofficeObjectSpecialCollectionModel collectionModel) Get nonexistent items.com.hybris.cockpitng.util.notifications.NotificationServiceprotected com.hybris.backoffice.widgets.advancedsearch.impl.SearchConditionDatagetSelectedData(org.zkoss.zk.ui.event.Event event) booleanisItemsAlreadyDeleted(Collection<ItemModel> items) Check if the items have been deleted.protected booleanisLimitationExceeded(List<ItemModel> items, Shortcutsitem shortcutsitem) Check if the limit has been exceededvoidsetAdvancedSearchOperatorService(com.hybris.backoffice.widgets.advancedsearch.AdvancedSearchOperatorService advancedSearchOperatorService) voidsetLabelService(com.hybris.cockpitng.labels.LabelService labelService) voidsetModelService(ModelService modelService) voidsetNotificationService(com.hybris.cockpitng.util.notifications.NotificationService notificationService) voidsetShortcutsService(ShortcutsService shortcutsService) voidsetTypeFacade(com.hybris.cockpitng.dataaccess.facades.type.TypeFacade typeFacade)
-
Field Details
-
MAX_SIZE
- See Also:
-
PCMBACKOFFICE
- See Also:
-
NOTIFICATION_SOURCE_SHORTCUTS_ITEMS_NOT_EXIST
- See Also:
-
NOTIFICATION_SOURCE_SHORTCUTS_ITEMS_OVER_LIMIT
- See Also:
-
MAX_SIZE_OF_NOTIFICATIONS_CAN_DISPLAY
protected static final int MAX_SIZE_OF_NOTIFICATIONS_CAN_DISPLAY- See Also:
-
-
Constructor Details
-
ShortcutsUtilService
public ShortcutsUtilService()
-
-
Method Details
-
getConditions
-
getSelectedData
-
getFullTextSearchData
protected com.hybris.cockpitng.search.data.FullTextSearchData getFullTextSearchData() -
addFilterConditionOnSearchData
-
getPKEmptyCondition
protected com.hybris.backoffice.widgets.advancedsearch.impl.SearchConditionData getPKEmptyCondition() -
isItemsAlreadyDeleted
Check if the items have been deleted.- Parameters:
items- items to be inspected.- Returns:
- if the items have been deleted.
-
isLimitationExceeded
Check if the limit has been exceeded- Parameters:
items- items to be inspected.shortcutsitem- for which shortcutsitem to be inspected.- Returns:
- if the limit has been exceeded
-
getMaxSize
-
getAlreadyExistItems
public List<ItemModel> getAlreadyExistItems(Collection<ItemModel> items, BackofficeObjectSpecialCollectionModel collectionModel) Get exist items.- Parameters:
items- items to be inspected.collectionModel- for which collection contains.- Returns:
- the items already exist.
-
getNotExistItems
public List<ItemModel> getNotExistItems(Collection<ItemModel> items, BackofficeObjectSpecialCollectionModel collectionModel) Get nonexistent items.- Parameters:
items- items to be inspected.collectionModel- for which collection does not contains.- Returns:
- the nonexistent items.
-
getDroppables
-
setModelService
-
getModelService
-
setTypeFacade
public void setTypeFacade(com.hybris.cockpitng.dataaccess.facades.type.TypeFacade typeFacade) -
setNotificationService
public void setNotificationService(com.hybris.cockpitng.util.notifications.NotificationService notificationService) -
getNotificationService
public com.hybris.cockpitng.util.notifications.NotificationService getNotificationService() -
setAdvancedSearchOperatorService
public void setAdvancedSearchOperatorService(com.hybris.backoffice.widgets.advancedsearch.AdvancedSearchOperatorService advancedSearchOperatorService) -
getAdvancedSearchOperatorService
public com.hybris.backoffice.widgets.advancedsearch.AdvancedSearchOperatorService getAdvancedSearchOperatorService() -
setShortcutsService
-
getShortcutsService
-
getLabelService
public com.hybris.cockpitng.labels.LabelService getLabelService() -
setLabelService
public void setLabelService(com.hybris.cockpitng.labels.LabelService labelService)
-