Class CMSPageListContent
java.lang.Object
io.goobi.viewer.model.cms.pages.content.CMSContent
io.goobi.viewer.model.cms.pages.content.types.CMSPageListContent
- All Implemented Interfaces:
CMSCategoryHolder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addCategory
(CMSCategory category) copy()
exportHtmlFragment
(String outputFolderPath, String namingScheme) Writes HTML fragment value as file for re-indexing.getNestedPages
(Boolean random, CMSTemplateManager templateManager) Getter for the fieldnestedPages
.getNestedPages
(Boolean random, Boolean paged, CMSTemplateManager templateManager) Deprecated.getNestedPagesByCategory
(boolean random, boolean paged, CMSCategory category, CMSTemplateManager templateManager) Deprecated.getNestedPagesByCategory
(boolean random, CMSCategory category, CMSTemplateManager templateManager) Getter for the fieldnestedPages
.int
Getter for the fieldnestedPagesCount
.getSortedCategories
(int pageNo, boolean random, boolean paged, CMSTemplateManager templateManager) getSortedCategories.handlePageLoad
(boolean resetResults, CMSComponent component) Method to call when loading a CMSPage including this content itemboolean
isEmpty()
boolean
boolean
removeCategory
(CMSCategory category) void
resetData.void
setGroupByCategory
(boolean groupByCategory) void
setNestedPagesCount
(int nestedPages) Setter for the fieldnestedPagesCount
.Methods inherited from class io.goobi.viewer.model.cms.pages.content.CMSContent
getBackendComponentLibrary, getData, getId, getItemId, getOwningComponent, getOwningPage, isRequired, setId, setItemId, setOwningComponent, setRequired
-
Constructor Details
-
CMSPageListContent
public CMSPageListContent()
-
-
Method Details
-
getBackendComponentName
- Specified by:
getBackendComponentName
in classCMSContent
-
getCategories
- Specified by:
getCategories
in interfaceCMSCategoryHolder
-
getSelectableCategories
- Throws:
DAOException
-
copy
- Specified by:
copy
in classCMSContent
-
exportHtmlFragment
public List<File> exportHtmlFragment(String outputFolderPath, String namingScheme) throws IOException, ViewerConfigurationException Description copied from class:CMSContent
Writes HTML fragment value as file for re-indexing. HTML/text fragments are exported directly. Attached media items are exported as long as their content type is one of the supported text document formats.- Specified by:
exportHtmlFragment
in classCMSContent
- Parameters:
outputFolderPath
- aString
object.namingScheme
- aString
object.- Returns:
- Exported Files
- Throws:
IOException
- if any.ViewerConfigurationException
-
handlePageLoad
public String handlePageLoad(boolean resetResults, CMSComponent component) throws PresentationException Description copied from class:CMSContent
Method to call when loading a CMSPage including this content item- Specified by:
handlePageLoad
in classCMSContent
- Returns:
- a JSF action response
- Throws:
PresentationException
-
addCategory
- Specified by:
addCategory
in interfaceCMSCategoryHolder
-
removeCategory
- Specified by:
removeCategory
in interfaceCMSCategoryHolder
-
getNestedPages
@Deprecated(since="24.02") public List<CMSPage> getNestedPages(Boolean random, Boolean paged, CMSTemplateManager templateManager) throws DAOException Deprecated.usegetNestedPages(Boolean, CMSTemplateManager)
insteadGetter for the field
nestedPages
.- Parameters:
random
-paged
-templateManager
-- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
getNestedPages
public List<CMSPage> getNestedPages(Boolean random, CMSTemplateManager templateManager) throws DAOException Getter for the field
nestedPages
.- Parameters:
random
-templateManager
-- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
getNestedPagesByCategory
@Deprecated(since="24.02") public List<CMSPage> getNestedPagesByCategory(boolean random, boolean paged, CMSCategory category, CMSTemplateManager templateManager) throws DAOException Deprecated.Getter for the field
nestedPages
.- Parameters:
random
-paged
-category
- aCMSCategory
object.templateManager
-- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
getNestedPagesByCategory
public List<CMSPage> getNestedPagesByCategory(boolean random, CMSCategory category, CMSTemplateManager templateManager) throws DAOException Getter for the field
nestedPages
.- Parameters:
random
-category
- aCMSCategory
object.templateManager
-- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
resetData
public void resetData()resetData.
-
getNestedPagesCount
public int getNestedPagesCount()Getter for the field
nestedPagesCount
.- Returns:
- a int.
-
setNestedPagesCount
public void setNestedPagesCount(int nestedPages) Setter for the field
nestedPagesCount
.- Parameters:
nestedPages
- a int.
-
getSortedCategories
public List<CMSCategory> getSortedCategories(int pageNo, boolean random, boolean paged, CMSTemplateManager templateManager) throws DAOException getSortedCategories.
- Parameters:
pageNo
-random
-paged
-templateManager
-- Returns:
- a
List
object. - Throws:
DAOException
- if any.
-
setGroupByCategory
public void setGroupByCategory(boolean groupByCategory) -
isGroupByCategory
public boolean isGroupByCategory() -
getData
- Specified by:
getData
in classCMSContent
- Returns:
- a string representing this contentItem for use in frontend-components. May be an empty string for content with no clear String representation
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in classCMSContent
-
getNestedPages(Boolean, CMSTemplateManager)
instead