Class NavigationArea
- java.lang.Object
-
- de.hybris.platform.cockpit.session.impl.AbstractUINavigationArea
-
- de.hybris.platform.cockpit.session.impl.BaseUICockpitNavigationArea
-
- de.hybris.platform.productcockpit.session.impl.NavigationArea
-
- All Implemented Interfaces:
CockpitEventAcceptor
,CockpitEventProducer
,FocusablePerspectiveArea
,UICockpitArea
,UIComponent
,UINavigationArea
public class NavigationArea extends BaseUICockpitNavigationArea
-
-
Constructor Summary
Constructors Constructor Description NavigationArea()
-
Method Summary
-
Methods inherited from class de.hybris.platform.cockpit.session.impl.BaseUICockpitNavigationArea
addToCollection, 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, 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, updateContentSlotContainer, updateInfoSlotContainer
-
Methods inherited from class de.hybris.platform.cockpit.session.impl.AbstractUINavigationArea
addAreaListener, addCockpitEventAcceptor, addSection, addSections, getHeaderURI, getListeners, getPerspective, getSectionRenderer, getViewURI, getWidth, removeAllSections, removeAreaListener, removeCockpitEventAcceptor, removeSection, removeSections, setFocus, setHeaderURI, setPerspective, setSectionRenderer, setSections, setViewURI, setWidth, showAllSections
-
-
-
-
Method Detail
-
initialize
public void initialize(java.util.Map<java.lang.String,java.lang.Object> params)
Description copied from class:BaseUICockpitNavigationArea
Initializes this navigation area by callingSectionPanelModel.initialize()
.- Specified by:
initialize
in interfaceUICockpitArea
- Specified by:
initialize
in interfaceUIComponent
- Overrides:
initialize
in classBaseUICockpitNavigationArea
- See Also:
SectionPanelModel.initialize()
-
update
public void update()
Description copied from class:BaseUICockpitNavigationArea
Updates this navigation area by callingBaseUICockpitNavigationArea.updateContentSlotContainer()
,BaseUICockpitNavigationArea.updateInfoSlotContainer()
andSectionPanelModel.update()
.- Specified by:
update
in interfaceUICockpitArea
- Overrides:
update
in classBaseUICockpitNavigationArea
- See Also:
AbstractUINavigationArea.update()
-
getCollectionQuery
public UICollectionQuery getCollectionQuery(ObjectCollection coll)
-
getSelectedCatalogVersions
public java.util.Collection<CatalogVersionModel> getSelectedCatalogVersions()
-
getSelectedCategories
public java.util.Collection<CategoryModel> getSelectedCategories()
-
getSectionModel
public SectionPanelModel getSectionModel()
- Specified by:
getSectionModel
in interfaceUINavigationArea
- Overrides:
getSectionModel
in classAbstractUINavigationArea
-
setSelectedCatalogItems
public void setSelectedCatalogItems(java.util.Collection<CatalogVersionModel> versions, java.util.Collection<CategoryModel> categories, boolean doubleClicked)
-
saveQuery
public void saveQuery(SearchBrowserModel searchBrowser)
-
getProductCockpitCatalogService
public CatalogService getProductCockpitCatalogService()
-
setProductCockpitCatalogService
public void setProductCockpitCatalogService(CatalogService productCockpitCatalogService)
-
getSession
public UISession getSession()
-
handlePasteOperation
public void handlePasteOperation(java.lang.String rawContent, UICollectionQuery collection)
Methods that handles paste requests- Overrides:
handlePasteOperation
in classBaseUICockpitNavigationArea
- Parameters:
rawContent
- paste contentcollection
- object to which matched products will be added
-
pasteProductToCollection
public ObjectCollection pasteProductToCollection(ObjectCollection collection, java.util.List<java.lang.String> codes, UserModel user) throws ProductCockpitBusinessException
Method that search products with appropiate code, and add them to given collection- Parameters:
collection
- given collectioncodes
- product codesuser
- current logged user- Returns:
- collection to which we add a products
- Throws:
ProductCockpitBusinessException
-
fireCatalogItemSelectionChanged
protected void fireCatalogItemSelectionChanged(boolean doubleClicked)
-
getCategoryLevel
public int getCategoryLevel()
-
setCategoryLevel
public void setCategoryLevel(int categoryLevel)
-
getManagingPerspective
public UICockpitPerspective getManagingPerspective()
- Specified by:
getManagingPerspective
in interfaceFocusablePerspectiveArea
- Overrides:
getManagingPerspective
in classAbstractUINavigationArea
-
isFocused
public boolean isFocused()
- Specified by:
isFocused
in interfaceFocusablePerspectiveArea
- Overrides:
isFocused
in classAbstractUINavigationArea
-
resetContext
public void resetContext()
- Specified by:
resetContext
in interfaceUINavigationArea
- Overrides:
resetContext
in classBaseUICockpitNavigationArea
-
setAllProductVisible
protected void setAllProductVisible()
-
onCockpitEvent
public void onCockpitEvent(CockpitEvent event)
- Specified by:
onCockpitEvent
in interfaceCockpitEventAcceptor
- Overrides:
onCockpitEvent
in classBaseUICockpitNavigationArea
-
-