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
FieldsModifier and TypeFieldDescriptionprotected List<CMSCategory> protected List<CMSContent> protected List<CMSMediaItem> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanconvertData.protected List<CMSCategory> createCategories.voidloadData.voidpersistData(IDAO dao) persistData.booleanupdate(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:
updatein interfaceIModelUpdate- Parameters:
dao- aIDAOobject.templateManager-- Returns:
- true if rows were updated; false otherwise
- Throws:
DAOException- if any.SQLException- if any.
-
persistData
persistData.
- Parameters:
dao- aIDAOobject.- Throws:
DAOException- if any.
-
loadData
loadData.
- Parameters:
dao- aIDAOobject.- Throws:
DAOException- if any.SQLException- if any.
-
convertData
convertData.
- Returns:
- a boolean.
- Throws:
DAOException- if any.
-
createCategories
createCategories.
-