Package io.goobi.viewer.managedbeans
Class CmsNavigationBean
java.lang.Object
io.goobi.viewer.managedbeans.CmsNavigationBean
- All Implemented Interfaces:
Serializable
CmsNavigationBean class.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addSelectedItemsToMenu.void
createNavigationItem.boolean
deserializeMenuItems
(String itemString) Creates the visible items hiearchy from the string argumentgetAvailableMenuItems.Getter for the fielditemManager
.Getter for the fieldmenuItemList
.getNavigationItem.Getter for the fieldselectableThemes
.getSelectedTheme.getVisibleMenuItems.void
init()
init.boolean
isEditMode.void
saveMenuItems.void
saveNavigationItem.void
setEditMode
(boolean editMode) Setter for the fieldeditMode
.void
setItemManager
(CMSNavigationManager itemManager) Setter for the fielditemManager
.void
setMenuItemList
(String menuItemList) Setter for the fieldmenuItemList
.void
setSelectedTheme
(String selectedTheme) setSelectedTheme.
-
Constructor Details
-
CmsNavigationBean
public CmsNavigationBean()
-
-
Method Details
-
init
@PostConstruct public void init()init.
-
getMenuItemList
Getter for the field
menuItemList
.- Returns:
- a
String
object.
-
setMenuItemList
Setter for the field
menuItemList
.- Parameters:
menuItemList
- aString
object.
-
deserializeMenuItems
Creates the visible items hiearchy from the string argument- Parameters:
itemString
- aString
object.- Returns:
- true if the items could be serialized. False if the item ids don't match any items
-
saveMenuItems
saveMenuItems.
- Throws:
DAOException
- if any.
-
getAvailableMenuItems
getAvailableMenuItems.
- Returns:
- a
List
object.
-
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
-
getItemManager
Getter for the field
itemManager
.- Returns:
- 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
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
getSelectedTheme.
- Returns:
- the selectedTheme
-
setSelectedTheme
setSelectedTheme.
- Parameters:
selectedTheme
- the selectedTheme to set
-
addSelectedItemsToMenu
public void addSelectedItemsToMenu()addSelectedItemsToMenu.
-