Class CatalogNavigationArea
- java.lang.Object
-
- de.hybris.platform.cockpit.session.impl.AbstractUINavigationArea
-
- de.hybris.platform.cockpit.session.impl.BaseUICockpitNavigationArea
-
- de.hybris.platform.cmscockpit.session.impl.CatalogNavigationArea
-
- All Implemented Interfaces:
CockpitEventAcceptor,CockpitEventProducer,FocusablePerspectiveArea,UICockpitArea,UIComponent,UINavigationArea
public class CatalogNavigationArea extends BaseUICockpitNavigationArea
-
-
Constructor Summary
Constructors Constructor Description CatalogNavigationArea()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intaddToCollection(TypedObject item, UICollectionQuery collection, boolean multiDrag)protected CmsCatalogBrowserModelcreateRequiredBrowserModel()protected voiddisplayMessage(java.lang.String message)Displays Message Box with appropriate text.protected java.util.List<PK>findMatchedPage(java.util.List<java.lang.String> uids)Method that searches pages with appropriate codesUISessiongetSession()voidhandlePasteOperation(java.lang.String rawContent, UICollectionQuery collection)Methods that handles paste requestsvoidonCockpitEvent(CockpitEvent event)ObjectCollectionpasteItemToCollection(ObjectCollection collection, java.util.List<java.lang.String> uids, UserModel user)Method that search products with appropriate code, and add them to given collectionvoidresetContext()voidsetCmsCatalogBrowserModelFactory(CmsCatalogBrowserModelFactory cmsCatalogBrowserModelFactory)voidshowAllPages()-
Methods inherited from class de.hybris.platform.cockpit.session.impl.BaseUICockpitNavigationArea
clearQuerySelection, clearSelectedIndexes, duplicateQuery, fireBrowserTaskSelected, fireCollectionAdded, fireCollectionChanged, fireCollectionDoubleClicked, fireCollectionSelected, fireDynamicQueryDoubleClicked, fireDynamicQuerySelected, fireSavedQueryChanged, fireSavedQueryDoubleClicked, fireSavedQuerySelected, getContentSlotContainer, getContentSlotLabel, getContentSlotRenderer, getDynamicQueryService, getInfoSlotAttachmentTypes, getInfoSlotContainer, getInfoSlotLabel, getInfoSlotRenderer, getLabel, getObjectCollectionService, getPushInfoBoxEventClassName, getSavedQueryService, getSelectedBrowserTask, getSelectedCollection, getSelectedDynamicQuery, getSelectedIndex, getSelectedSavedQuery, getTypeService, initialize, isPushInfoBox, publishCollection, publishSavedQuery, removeQuery, renameCollection, renameSavedQuery, setCockpitTypeService, setContentSlotContainer, setContentSlotI3Label, setContentSlotLabel, setContentSlotRenderer, setDynamicQueryService, setInfoSlotAttachmentTypes, setInfoSlotContainer, setInfoSlotI3Label, setInfoSlotLabel, setInfoSlotRenderer, setModelService, setObjectCollectionService, setPushInfoBox, setPushInfoBoxEventClassName, setSavedQueryService, setSectionModel, setSelectedBrowserTask, setSelectedCollection, setSelectedDynamicQuery, setSelectedIndex, setSelectedQuery, setSelectedQuery, setSelectedSavedQuery, setUiComponentCache, setUiConfigurationService, update, updateContentSlotContainer, updateInfoSlotContainer
-
Methods inherited from class de.hybris.platform.cockpit.session.impl.AbstractUINavigationArea
addAreaListener, addCockpitEventAcceptor, addSection, addSections, getHeaderURI, getListeners, getManagingPerspective, getPerspective, getSectionModel, getSectionRenderer, getViewURI, getWidth, isFocused, removeAllSections, removeAreaListener, removeCockpitEventAcceptor, removeSection, removeSections, setFocus, setHeaderURI, setPerspective, setSectionRenderer, setSections, setViewURI, setWidth, showAllSections
-
-
-
-
Method Detail
-
resetContext
public void resetContext()
- Specified by:
resetContextin interfaceUINavigationArea- Overrides:
resetContextin classBaseUICockpitNavigationArea
-
showAllPages
public void showAllPages()
-
createRequiredBrowserModel
protected CmsCatalogBrowserModel createRequiredBrowserModel()
-
addToCollection
public int addToCollection(TypedObject item, UICollectionQuery collection, boolean multiDrag)
- Overrides:
addToCollectionin classBaseUICockpitNavigationArea
-
handlePasteOperation
public void handlePasteOperation(java.lang.String rawContent, UICollectionQuery collection)Methods that handles paste requests- Overrides:
handlePasteOperationin classBaseUICockpitNavigationArea- Parameters:
rawContent- paste contentcollection- object to which matched products will be added
-
pasteItemToCollection
public ObjectCollection pasteItemToCollection(ObjectCollection collection, java.util.List<java.lang.String> uids, UserModel user) throws CmsCockpitBusinessException
Method that search products with appropriate code, and add them to given collection- Parameters:
collection- given collectionuids- page codesuser- current logged user- Returns:
- collection to which we add a products
- Throws:
CmsCockpitBusinessException
-
findMatchedPage
protected java.util.List<PK> findMatchedPage(java.util.List<java.lang.String> uids)
Method that searches pages with appropriate codes- Parameters:
uids- given uids- Returns:
- all pages that found in system
-
displayMessage
protected void displayMessage(java.lang.String message)
Displays Message Box with appropriate text.- Parameters:
message-
-
getSession
public UISession getSession()
-
onCockpitEvent
public void onCockpitEvent(CockpitEvent event)
- Specified by:
onCockpitEventin interfaceCockpitEventAcceptor- Overrides:
onCockpitEventin classBaseUICockpitNavigationArea
-
setCmsCatalogBrowserModelFactory
public void setCmsCatalogBrowserModelFactory(CmsCatalogBrowserModelFactory cmsCatalogBrowserModelFactory)
-
-