Package io.goobi.viewer.managedbeans
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
deleteTemplate
(CMSPageTemplate template) Deletes given CMS page from the database.List<javax.faces.model.SelectItem>
getAvailableComponents
(CMSPageTemplate template) getDao()
boolean
void
void
void
void
void
setEditMode
(boolean editMode) void
setFacesContext
(javax.faces.context.FacesContext facesContext) void
void
setPageEditState
(CMSPageEditState pageEditState) void
setSelectedComponent
(String selectedComponent) void
setSelectedTemplate
(CMSPageTemplate selectedTemplate) void
void
setSidebarWidgets
(Map<WidgetDisplayElement, Boolean> sidebarWidgets) void
setTemplateManager
(CMSTemplateManager templateManager) void
setup()
void
setUserBean
(UserBean userBean) void
setWidgetsBean
(CMSSidebarWidgetsBean widgetsBean)
-
Constructor Details
-
CMSPageTemplateEditBean
public CMSPageTemplateEditBean()
-
-
Method Details
-
setup
@PostConstruct public void setup() -
getSidebarWidgets
-
setSidebarWidgets
-
getSelectedWidgets
-
resetSelectedWidgets
public void resetSelectedWidgets() -
getAndResetSelectedWidgets
-
getAvailableComponents
-
setSelectedTemplate
-
getSelectedTemplate
-
setSelectedTemplateId
- Throws:
DAOException
-
setNewSelectedTemplate
public void setNewSelectedTemplate() -
setEditMode
public void setEditMode(boolean editMode) -
isEditMode
public boolean isEditMode() -
setPageEditState
-
getPageEditState
-
getSelectedComponent
-
setSelectedComponent
-
addComponent
public void addComponent() -
saveTemplateAndForwardToEdit
- Throws:
DAOException
-
saveSelectedTemplate
- Throws:
DAOException
-
deleteSelectedTemplate
- Throws:
DAOException
-
deleteTemplate
Deletes given CMS page from the database.- Parameters:
template
-- Returns:
- true if template deleted successfully; false otherwise
- Throws:
DAOException
- if any.
-
getDao
- Returns:
- the dao
-
setDao
- Parameters:
dao
- the dao to set
-
setTemplateManager
- Parameters:
templateManager
- the templateManager to set
-
setUserBean
- Parameters:
userBean
- the userBean to set
-
setWidgetsBean
- Parameters:
widgetsBean
- the widgetsBean to set
-
setFacesContext
public void setFacesContext(javax.faces.context.FacesContext facesContext) - Parameters:
facesContext
- the facesContext to set
-