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 SummaryConstructors
- 
Method SummaryModifier 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- 
CMSContentprotected CMSContent()
- 
CMSContent
 
- 
- 
Method Details- 
getBackendComponentName
- 
getBackendComponentLibrary
- 
getItemId
- 
setItemId
- 
getOwningComponent
- 
setOwningComponent
- 
getOwningPage
- 
copy
- 
exportHtmlFragmentpublic 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- a- Stringobject.
- namingScheme- a- Stringobject.
- Returns:
- Exported Files
- Throws:
- IOException- if any.
- ViewerConfigurationException
 
- 
handlePageLoadpublic 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
 
- 
isEmptypublic 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
- 
isRequiredpublic boolean isRequired()- Returns:
- the required
 
- 
setRequiredpublic void setRequired(boolean required) - Parameters:
- required-
 
 
-