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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanupdate(IDAO dao, CMSTemplateManager templateManager) update.
- 
Constructor Details- 
SidebarWidgetUpdatepublic SidebarWidgetUpdate()
 
- 
- 
Method Details- 
updatepublic boolean update(IDAO dao, CMSTemplateManager templateManager) throws DAOException, SQLException Description copied from interface:IModelUpdateupdate. - Specified by:
- updatein interface- IModelUpdate
- Parameters:
- dao- a- IDAOobject.
- templateManager-
- Returns:
- true if rows were updated; false otherwise
- Throws:
- DAOException- if any.
- SQLException- if any.
 
 
-