Class CMSContent
java.lang.Object
io.goobi.viewer.model.cms.pages.content.CMSContent
- Direct Known Subclasses:
CMSArchiveContent,CMSBrowseContent,CMSCollectionContent,CMSGeomapContent,CMSImageListContent,CMSMediaContent,CMSMediumTextContent,CMSMetadataContent,CMSPageListContent,CMSRecordListContent,CMSRSSContent,CMSSearchContent,CMSSearchFacetsContent,CMSShortTextContent,CMSSliderContent
Interface for all classes containing a specific kind of content for a
CMSPage. Each CMSContent on a CMSPage is wrapped in a
CMSContentItem which itself is contained in a CMSComponent.- Author:
- florian
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract CMSContentcopy()exportHtmlFragment(String outputFolderPath, String namingScheme) Writes HTML fragment value as file for re-indexing.abstract StringgetData()abstract StringgetId()abstract StringhandlePageLoad(boolean resetResults, CMSComponent component) Method to call when loading a CMSPage including this content itemabstract booleanisEmpty()booleanvoidvoidvoidsetOwningComponent(PersistentCMSComponent owningComponent) voidsetRequired(boolean required)
-
Constructor Details
-
CMSContent
protected CMSContent() -
CMSContent
-
-
Method Details
-
getBackendComponentName
-
getBackendComponentLibrary
-
getItemId
-
setItemId
-
getOwningComponent
-
setOwningComponent
-
getOwningPage
-
copy
-
exportHtmlFragment
public abstract List<File> exportHtmlFragment(String outputFolderPath, String namingScheme) throws IOException, ViewerConfigurationException 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.- Parameters:
outputFolderPath- aStringobject.namingScheme- aStringobject.- Returns:
- Exported Files
- Throws:
IOException- if any.ViewerConfigurationException
-
handlePageLoad
public abstract String handlePageLoad(boolean resetResults, CMSComponent component) throws PresentationException Method to call when loading a CMSPage including this content item- Parameters:
resetResults-component-- Returns:
- a JSF action response
- Throws:
PresentationException
-
isEmpty
public abstract boolean isEmpty() -
getId
- Returns:
- the id
-
setId
- Parameters:
id-
-
getData
- Parameters:
width-height-- Returns:
- a string representing this contentItem for use in frontend-components. May be an empty string for content with no clear String representation
-
getData
-
isRequired
public boolean isRequired()- Returns:
- the required
-
setRequired
public void setRequired(boolean required) - Parameters:
required-
-