Package io.goobi.viewer.model.cms.legacy
Class CMSContentItemTemplate
java.lang.Object
io.goobi.viewer.model.cms.legacy.CMSContentItemTemplate
- All Implemented Interfaces:
Comparable<CMSContentItemTemplate>
A contentItem to be used in a CMSPage template. Stores a value for content item mode
- Author:
- Florian Alpers
-
Constructor Summary
ConstructorDescriptionConstructor for CMSContentItemTemplate. -
Method Summary
Modifier and TypeMethodDescriptionint
createCMSContentItem
(CMSComponent component) Message key to display when clicking the inline help button.getMode()
int
getOrder()
getType()
boolean
boolean
boolean
boolean
boolean
boolean
void
setHitListOptions
(boolean hitListOptions) void
setIgnoreCollectionHierarchy
(boolean ignoreCollectionHierarchy) void
setInlineHelp
(String inlineHelp) Setter for the fieldinlineHelp
.void
void
setItemLabel
(String itemLabel) void
setMandatory
(boolean mandatory) void
setMediaFilter
(String mediaFilter) Setter for the fieldmediaFilter
.void
setMode
(ContentItemMode mode) Setter for the fieldmode
.void
setOrder
(int order) void
setPreview
(boolean preview) Setter for the fieldpreview
.void
setRandomizeItems
(boolean radomizeItems)
-
Constructor Details
-
CMSContentItemTemplate
Constructor for CMSContentItemTemplate.
- Parameters:
type
- a CMSContentItemType object.
-
-
Method Details
-
getType
-
getItemId
-
setItemId
-
setMode
Setter for the field
mode
.- Parameters:
mode
- the mode to set
-
getMode
-
isHasInlineHelp
public boolean isHasInlineHelp() -
getInlineHelp
Message key to display when clicking the inline help button.- Returns:
- the
inlineHelp
-
setInlineHelp
Setter for the field
inlineHelp
.- Parameters:
inlineHelp
- the inlineHelp to set
-
getMediaFilter
-
setMediaFilter
Setter for the field
mediaFilter
.- Parameters:
mediaFilter
- the mediaFilter to set
-
isPreview
public boolean isPreview() -
setPreview
public void setPreview(boolean preview) Setter for the field
preview
.- Parameters:
preview
- the preview to set
-
setMandatory
public void setMandatory(boolean mandatory) - Parameters:
mandatory
- the mandatory to set
-
isMandatory
public boolean isMandatory() -
setOrder
public void setOrder(int order) - Parameters:
order
- the order to set
-
getOrder
public int getOrder()- Returns:
- the order
-
setItemLabel
-
getItemLabel
-
isIgnoreCollectionHierarchy
public boolean isIgnoreCollectionHierarchy()- Returns:
- the ignoreCollectionHierarchy
-
setIgnoreCollectionHierarchy
public void setIgnoreCollectionHierarchy(boolean ignoreCollectionHierarchy) - Parameters:
ignoreCollectionHierarchy
- the ignoreCollectionHierarchy to set
-
isHitListOptions
public boolean isHitListOptions()- Returns:
- the hitListOptions
-
setHitListOptions
public void setHitListOptions(boolean hitListOptions) - Parameters:
hitListOptions
- the hitListOptions to set
-
setRandomizeItems
public void setRandomizeItems(boolean radomizeItems) - Parameters:
radomizeItems
- the radomizeItems to set
-
isRandomizeItems
public boolean isRandomizeItems()- Returns:
- the randomizeItems
-
compareTo
- Specified by:
compareTo
in interfaceComparable<CMSContentItemTemplate>
-
createCMSContentItem
-