Class CMSPageTemplateEditBean

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

@Named("cmsPageTemplateEditBean") @ViewScoped public class CMSPageTemplateEditBean extends Object implements Serializable
See Also:
  • Constructor Details

    • CMSPageTemplateEditBean

      public CMSPageTemplateEditBean()
  • Method Details

    • setup

      @PostConstruct public void setup()
    • getSidebarWidgets

      public Map<WidgetDisplayElement,Boolean> getSidebarWidgets()
    • setSidebarWidgets

      public void setSidebarWidgets(Map<WidgetDisplayElement,Boolean> sidebarWidgets)
    • getSelectedWidgets

      public List<WidgetDisplayElement> getSelectedWidgets()
    • resetSelectedWidgets

      public void resetSelectedWidgets()
    • getAndResetSelectedWidgets

      public List<WidgetDisplayElement> getAndResetSelectedWidgets()
    • getAvailableComponents

      public List<javax.faces.model.SelectItem> getAvailableComponents(CMSPageTemplate template)
    • setSelectedTemplate

      public void setSelectedTemplate(CMSPageTemplate selectedTemplate)
    • getSelectedTemplate

      public CMSPageTemplate getSelectedTemplate()
    • setSelectedTemplateId

      public void setSelectedTemplateId(Long id) throws DAOException
      Throws:
      DAOException
    • setNewSelectedTemplate

      public void setNewSelectedTemplate()
    • setEditMode

      public void setEditMode(boolean editMode)
    • isEditMode

      public boolean isEditMode()
    • setPageEditState

      public void setPageEditState(CMSPageEditState pageEditState)
    • getPageEditState

      public CMSPageEditState getPageEditState()
    • getSelectedComponent

      public String getSelectedComponent()
    • setSelectedComponent

      public void setSelectedComponent(String selectedComponent)
    • addComponent

      public void addComponent()
    • saveTemplateAndForwardToEdit

      public void saveTemplateAndForwardToEdit() throws DAOException
      Throws:
      DAOException
    • saveSelectedTemplate

      public void saveSelectedTemplate() throws DAOException
      Throws:
      DAOException
    • deleteSelectedTemplate

      public String deleteSelectedTemplate() throws DAOException
      Throws:
      DAOException
    • deleteTemplate

      public boolean deleteTemplate(CMSPageTemplate template) throws DAOException
      Deletes given CMS page from the database.
      Parameters:
      template -
      Returns:
      true if template deleted successfully; false otherwise
      Throws:
      DAOException - if any.
    • getDao

      public IDAO getDao()
      Returns:
      the dao
    • setDao

      public void setDao(IDAO dao)
      Parameters:
      dao - the dao to set
    • setTemplateManager

      public void setTemplateManager(CMSTemplateManager templateManager)
      Parameters:
      templateManager - the templateManager to set
    • setUserBean

      public void setUserBean(UserBean userBean)
      Parameters:
      userBean - the userBean to set
    • setWidgetsBean

      public void setWidgetsBean(CMSSidebarWidgetsBean widgetsBean)
      Parameters:
      widgetsBean - the widgetsBean to set
    • setFacesContext

      public void setFacesContext(javax.faces.context.FacesContext facesContext)
      Parameters:
      facesContext - the facesContext to set