Class CMSContent
java.lang.Object
io.goobi.viewer.model.cms.pages.content.CMSContent
- Direct Known Subclasses:
CMSBrowseContent
,CMSCollectionContent
,CMSGeomapContent
,CMSGlossaryContent
,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
-
Method Summary
Modifier and TypeMethodDescriptionabstract CMSContent
copy()
exportHtmlFragment
(String outputFolderPath, String namingScheme) Writes HTML fragment value as file for re-indexing.abstract String
getData()
abstract String
getId()
abstract String
handlePageLoad
(boolean resetResults, CMSComponent component) Method to call when loading a CMSPage including this content itemabstract boolean
isEmpty()
boolean
void
void
void
setOwningComponent
(PersistentCMSComponent owningComponent) void
setRequired
(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
- aString
object.namingScheme
- aString
object.- 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
-
-