Package io.goobi.viewer.dao.update
Class SidebarWidgetUpdate
java.lang.Object
io.goobi.viewer.dao.update.SidebarWidgetUpdate
- All Implemented Interfaces:
IModelUpdate
This class migrates migrates data from the deprcated table cms_sidebar_elements to the new table cms_page_sidebar_elements, which backs
CMSSidebarElement. For user configurable widgets it also creates an entry in 'custom_sidebar_widgets', which backs
CustomSidebarWidget. The table cms_sidebar_elements is eventually dropped. The updae is only performed if the table cms_sidebar_elements
still exists in the database- Author:
- florian
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanupdate(IDAO dao, CMSTemplateManager templateManager) update.
-
Constructor Details
-
SidebarWidgetUpdate
public SidebarWidgetUpdate()
-
-
Method Details
-
update
public boolean update(IDAO dao, CMSTemplateManager templateManager) throws DAOException, SQLException Description copied from interface:IModelUpdateupdate.
- Specified by:
updatein interfaceIModelUpdate- Parameters:
dao- aIDAOobject.templateManager-- Returns:
- true if rows were updated; false otherwise
- Throws:
DAOException- if any.SQLException- if any.
-