Class CMSContentItem
java.lang.Object
io.goobi.viewer.model.cms.pages.content.CMSContentItem
Wraps a
CMSContent within a CMSPage- Author:
- florian
-
Constructor Summary
ConstructorsConstructorDescriptionCMSContentItem(CMSContentItem orig, CMSComponent owningComponent) CMSContentItem(String itemId, CMSContent content, String label, String description, String htmlGroup, JsfComponent jsfComponent, CMSComponent owningComponent, boolean required) -
Method Summary
Modifier and TypeMethodDescriptionbooleanTwo CMSContentItems are equal if theiritemIds are equalgetLabel()jakarta.faces.component.UIComponentinthashCode()booleanisEmpty()Check if thecontentattribute exists (i.e. database data is present).booleanbooleanbooleanisMedia()booleanbooleanvoidsetUiComponent(jakarta.faces.component.UIComponent uiComponent) toString()
-
Constructor Details
-
CMSContentItem
-
CMSContentItem
public CMSContentItem(String itemId, CMSContent content, String label, String description, String htmlGroup, JsfComponent jsfComponent, CMSComponent owningComponent, boolean required) - Parameters:
itemId-content-label-description-htmlGroup-jsfComponent-owningComponent-required-
-
-
Method Details
-
isRequired
public boolean isRequired() -
getItemId
-
getContent
-
getLabel
-
getItemLabel
-
getDescription
-
getJsfComponent
-
hashCode
public int hashCode() -
isMandatory
public boolean isMandatory() -
equals
Two CMSContentItems are equal if theiritemIds are equal -
getUiComponent
- Throws:
PresentationException
-
setUiComponent
public void setUiComponent(jakarta.faces.component.UIComponent uiComponent) -
isEmpty
public boolean isEmpty()Check if thecontentattribute exists (i.e. database data is present). If so, and it is textual or media content, also check if text is empty or the media item exists- Returns:
- true if no database entry exists or if it doesn't contain data which can be presented
-
isShortText
public boolean isShortText() -
isHtmlText
public boolean isHtmlText() -
isMedia
public boolean isMedia() -
getHtmlGroup
-
getOwningComponent
-
toString
-