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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
update
(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:IModelUpdate
update.
- Specified by:
update
in interfaceIModelUpdate
- Parameters:
dao
- aIDAO
object.- Returns:
- true if rows were updated; false otherwise
- Throws:
DAOException
- if any.SQLException
- if any.
-