Class CmsPageBrowserModel

    • Method Detail

      • getAllPagesWithSameLabelOrType

        public java.util.List<TypedObject> getAllPagesWithSameLabelOrType()
      • setCurrentPageObject

        public void setCurrentPageObject​(TypedObject page)
        Sets given page as am active

        Note:

        Parameters:
        page - given page
      • getCurrentPageObject

        public TypedObject getCurrentPageObject()
        Returns current page

        Note:

        Returns:
        current page
      • getContentSlotSection

        public ListBrowserSectionModel getContentSlotSection()
        Returns content slot section model

        Note:

        Returns:
        content slot section model
      • getContentElementSection

        public ListBrowserSectionModel getContentElementSection()
        Returns content element section model

        Note:

        Returns:
        content element section model
      • getSimpleElementSection

        public ListBrowserSectionModel getSimpleElementSection()
        Returns simple element section model

        Note:

        Returns:
        simple element section model
      • getContentSlotsForCurrentPage

        protected java.util.List<ContentSlotModel> getContentSlotsForCurrentPage()
        Returns all content slots that are defined for current page
        Returns:
        content slot list
      • getMissingSlotsForCurrentPage

        public java.util.List<ContentSlotNameModel> getMissingSlotsForCurrentPage()
      • getAvailableSlotsForCurrentPage

        public java.util.List<ContentSlotNameModel> getAvailableSlotsForCurrentPage()
      • createSlotContentForCurrentPage

        public ContentSlotModel createSlotContentForCurrentPage​(java.lang.String position)
        Creates content slot at give position for current page
        Parameters:
        position - given position on the current page
      • createContentSlotForPage

        public ContentSlotModel createContentSlotForPage​(java.lang.String position)
        Creates a ContentSlotForPage at give position for current page
        Parameters:
        position - given position on the current page
      • getContentaSlotAtPositionForPage

        protected ContentSlotModel getContentaSlotAtPositionForPage​(TypedObject wrappedPageModel,
                                                                    java.lang.String position)
        Checks whether there is already created a content slot for given page at given position.


        Parameters:
        wrappedPageModel - wrapped current page
        position - position that will be checked
      • computeReadableName

        protected java.lang.String computeReadableName​(java.lang.String position)
      • removeComponentFromSlot

        public void removeComponentFromSlot​(TypedObject parentSlot,
                                            TypedObject component)
      • deleteSlotContentForCurrentPage

        public void deleteSlotContentForCurrentPage​(java.lang.String uid)
        Removes content slot by given uid
        Parameters:
        uid - identifier of content slot that will be removed
      • isStructViewAvailable

        public boolean isStructViewAvailable()
        Checks whether structure view for current page is available
        Returns:
        true it so otherwise false
      • isAssignedToPage

        public boolean isAssignedToPage​(ContentSlotModel contentSlot)
        Checks whether this content slot belongs to page

        Note:

        Parameters:
        contentSlot - given content slot
        Returns:
        true if so otherwise false
      • deleteCurrentPage

        public void deleteCurrentPage()
        Deletes current page

        Note:

      • getTypeService

        protected TypeService getTypeService()
      • clearSelection

        public void clearSelection​(ListBrowserSectionModel browserSectionModel)
        Responsible for clearing selection in all sections after change it
        Parameters:
        browserSectionModel - - current section model (that fires change selection event)
      • createAndInitializeDrilldownView

        public void createAndInitializeDrilldownView()
        Creates and initialize a drilldown view

        Note:

      • createAndInitializeFlatOrStructureView

        public void createAndInitializeFlatOrStructureView()
        Creates and initialize flat and structure view

        Note: Creates only a model for particular view type and this is why this method is valid for both kind of view (flat, structure)

      • getAdditableType

        public java.util.List<ObjectType> getAdditableType()
      • getActiveSite

        public CMSSiteModel getActiveSite()
        Returns current selected site

        Note:

        Returns:
        current selected site
      • createAndInitContentSlotSection

        protected ListBrowserSectionModel createAndInitContentSlotSection()
        Creates and initialize content slot section model

        Note:

        Returns:
        content slot section model
      • createAndInitContentElementSection

        protected ListBrowserSectionModel createAndInitContentElementSection​(ListBrowserSectionModel contentSlotSection)
        Creates and initialize content element section model

        Note:

        Parameters:
        contentSlotSection - parent section
        Returns:
        content element section model
      • createAndInitSimpleElementSection

        protected ListBrowserSectionModel createAndInitSimpleElementSection​(ListBrowserSectionModel contentElementSection)
        Creates and initialize simple element section model

        Note:

        Parameters:
        contentElementSection - parent section
        Returns:
        simple element section model
      • createAndInitContentEditorSection

        protected ContentEditorBrowserSectionModel createAndInitContentEditorSection​(ListBrowserSectionModel simpleElementSection,
                                                                                     ListBrowserSectionModel contentElementSection)
        Creates and initialize content editor section model

        Note:

        Parameters:
        simpleElementSection - parent section model (exclusive with contentElementSection)
        contentElementSection - (exclusive with simpleElementSection) parent section model
        Returns:
        content editor section
      • retriveSectionModelByContentSlot

        public BrowserSectionModel retriveSectionModelByContentSlot​(java.lang.String position)
      • contentSlotDefined

        @Deprecated(since="ages",
                    forRemoval=true)
        public TypedObject contentSlotDefined​(ContentSlotNameModel potentateContetSlot)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since ages
      • createProperViewModel

        protected void createProperViewModel()
      • addToAdditionalItemChangeUpdateNotificationMap

        public void addToAdditionalItemChangeUpdateNotificationMap​(TypedObject itemToUpdate,
                                                                   java.util.Collection<TypedObject> changedItems)
      • getAdditionalItemsToUpdate

        public java.util.Collection<TypedObject> getAdditionalItemsToUpdate​(TypedObject changedItem)
      • getSectionModelListenerForDrilldownView

        public SectionModelListener getSectionModelListenerForDrilldownView()
      • isBackButtonVisible

        public boolean isBackButtonVisible()