Class CMSContentItem
java.lang.Object
io.goobi.viewer.model.cms.pages.content.CMSContentItem
Wraps a
CMSContent
within a CMSPage
- Author:
- florian
-
Constructor Summary
ConstructorDescriptionCMSContentItem
(CMSContentItem orig) CMSContentItem
(String itemId, CMSContent content, String label, String description, String htmlGroup, JsfComponent jsfComponent, CMSComponent owningComponent, boolean required) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Two CMSContentItems are equal if theiritemId
s are equalgetLabel()
javax.faces.component.UIComponent
int
hashCode()
boolean
isEmpty()
Check if thecontent
attribute exists (i.e. database data is present).boolean
boolean
boolean
isMedia()
boolean
boolean
void
setUiComponent
(javax.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 theiritemId
s are equal -
getUiComponent
- Throws:
PresentationException
-
setUiComponent
public void setUiComponent(javax.faces.component.UIComponent uiComponent) -
isEmpty
public boolean isEmpty()Check if thecontent
attribute 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
-