Package io.goobi.viewer.dao.update
Class CMSCategoryUpdate
java.lang.Object
io.goobi.viewer.dao.update.CMSCategoryUpdate
- All Implemented Interfaces:
IModelUpdate
Converts all Tags and Classifications from previous viewer-cms versions to the
CMSCategory
system. This includes
updating references in CMSPages CMSContentItems and CMSMediaItems to keep the existing structure intact- Author:
- florian
-
Field Summary
Modifier and TypeFieldDescriptionprotected List<CMSCategory>
protected List<CMSContent>
protected List<CMSMediaItem>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
convertData.protected List<CMSCategory>
createCategories.void
loadData.void
persistData
(IDAO dao) persistData.boolean
update
(IDAO dao, CMSTemplateManager templateManager) update.
-
Field Details
-
entityMap
-
media
-
pages
-
-
categories
-
-
Constructor Details
-
CMSCategoryUpdate
public CMSCategoryUpdate()
-
-
Method Details
-
update
public boolean update(IDAO dao, CMSTemplateManager templateManager) throws DAOException, SQLException 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.
-
persistData
persistData.
- Parameters:
dao
- aIDAO
object.- Throws:
DAOException
- if any.
-
loadData
loadData.
- Parameters:
dao
- aIDAO
object.- Throws:
DAOException
- if any.SQLException
- if any.
-
convertData
convertData.
- Returns:
- a boolean.
- Throws:
DAOException
- if any.
-
createCategories
createCategories.
-