Class CmsNavigationBean

java.lang.Object
io.goobi.viewer.managedbeans.CmsNavigationBean
All Implemented Interfaces:
Serializable

@Named @SessionScoped public class CmsNavigationBean extends Object implements Serializable

CmsNavigationBean class.

See Also:
  • Constructor Details

    • CmsNavigationBean

      public CmsNavigationBean()
  • Method Details

    • init

      @PostConstruct public void init()

      init.

    • getMenuItemList

      public String getMenuItemList()

      Getter for the field menuItemList.

      Returns:
      a String object.
    • setMenuItemList

      public void setMenuItemList(String menuItemList)

      Setter for the field menuItemList.

      Parameters:
      menuItemList - a String object.
    • deserializeMenuItems

      public boolean deserializeMenuItems(String itemString)
      Creates the visible items hiearchy from the string argument
      Parameters:
      itemString - a String object.
      Returns:
      true if the items could be serialized. False if the item ids don't match any items
    • saveMenuItems

      public void saveMenuItems() throws DAOException

      saveMenuItems.

      Throws:
      DAOException - if any.
    • createNavigationItem

      public void createNavigationItem()

      createNavigationItem.

    • getNavigationItem

      public CMSNavigationItem getNavigationItem()

      getNavigationItem.

      Returns:
      a CMSNavigationItem object.
    • getAvailableMenuItems

      public List<SelectableNavigationItem> getAvailableMenuItems()

      getAvailableMenuItems.

      Returns:
      a List object.
    • getVisibleMenuItems

      public List<CMSNavigationItem> getVisibleMenuItems()

      getVisibleMenuItems.

      Returns:
      the list from getVisibleMenuItems() filtered for items associated with the given theme. Items without theme are associated with the main theme If the given theme is blank, all items are returned
    • saveNavigationItem

      public void saveNavigationItem()

      saveNavigationItem.

    • getItemManager

      public CMSNavigationManager getItemManager()

      Getter for the field itemManager.

      Returns:
      a CMSNavigationManager object.
    • setItemManager

      public void setItemManager(CMSNavigationManager itemManager)

      Setter for the field itemManager.

      Parameters:
      itemManager - a CMSNavigationManager object.
    • isEditMode

      public boolean isEditMode()

      isEditMode.

      Returns:
      a boolean.
    • setEditMode

      public void setEditMode(boolean editMode)

      Setter for the field editMode.

      Parameters:
      editMode - the editMode to set
    • getSelectableThemes

      public List<String> getSelectableThemes() throws PresentationException, IndexUnreachableException

      Getter for the field selectableThemes.

      Returns:
      a list of all configured themes for which we may create menus
      Throws:
      PresentationException - if any.
      IndexUnreachableException - if any.
    • getSelectedTheme

      public String getSelectedTheme()

      getSelectedTheme.

      Returns:
      the selectedTheme
    • setSelectedTheme

      public void setSelectedTheme(String selectedTheme)

      setSelectedTheme.

      Parameters:
      selectedTheme - the selectedTheme to set
    • addSelectedItemsToMenu

      public void addSelectedItemsToMenu()

      addSelectedItemsToMenu.