Class CMSImageListContent
java.lang.Object
io.goobi.viewer.model.cms.pages.content.CMSContent
io.goobi.viewer.model.cms.pages.content.types.CMSImageListContent
- 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.int
int
getMediaItems
(boolean random) getTileGridUrl.handlePageLoad
(boolean resetResults, CMSComponent component) Method to call when loading a CMSPage including this content itemboolean
isEmpty()
boolean
removeCategory
(CMSCategory category) void
setImagesPerView
(int imagesPerView) void
setImportantImagesPerView
(int importantImagesPerView) toString()
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
-
CMSImageListContent
public CMSImageListContent()
-
-
Method Details
-
getBackendComponentName
- Specified by:
getBackendComponentName
in classCMSContent
-
getCategories
- Specified by:
getCategories
in interfaceCMSCategoryHolder
-
getSelectableCategories
- Throws:
DAOException
-
getImagesPerView
public int getImagesPerView() -
setImagesPerView
public void setImagesPerView(int imagesPerView) -
getImportantImagesPerView
public int getImportantImagesPerView() -
setImportantImagesPerView
public void setImportantImagesPerView(int importantImagesPerView) -
getMediaItems
- Throws:
DAOException
-
getMediaItems
- Throws:
DAOException
-
getTileGridUrl
public String getTileGridUrl() throws de.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestExceptiongetTileGridUrl.
- Returns:
- a
String
object. - Throws:
de.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException
- if any.
-
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
-
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
-
toString
-