Class CMSSidebarElement
java.lang.Object
io.goobi.viewer.model.cms.widgets.embed.CMSSidebarElement
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CMSSidebarElementAutomatic
,CMSSidebarElementCustom
,CMSSidebarElementDefault
CMSSidebarElement class.
Wrapper to link sidebar widgets to cms-pages. Has a subclass for each type of sidebar widget- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionEmpty constructor for the DAOCMSSidebarElement
(CMSSidebarElement orig, CMSPage owner) Default constructor for a certain type of widget and owning CMSPageCMSSidebarElement
(CMSSidebarElement orig, CMSPageTemplate owner) Default constructor for a certain type of widget and owning CMSPageTemplateDefault constructor for a certain type of widgetCMSSidebarElement
(WidgetContentType type, CMSPage owner) Default constructor for a certain type of widgetCMSSidebarElement
(WidgetContentType type, CMSPageTemplate owner) Default constructor for a certain type of widget -
Method Summary
Modifier and TypeMethodDescriptionstatic CMSSidebarElement
copy
(CMSSidebarElement orig, CMSPage owner) Clones the given sidebar element and assigns the given CMSPage as owner.static CMSSidebarElement
copy
(CMSSidebarElement orig, CMSPageTemplate owner) Clones the given sidebar element and assigns the given CMSPage as owner.theWidgetContentType
of the underlying widgettheWidgetGenerationType
of the underlying widgetgetId()
the database idint
getOrder()
The order in which the element is shown.theCMSPage
containing the elementgetTitle()
The title displayed for this element when editing the owning CMSPagevoid
setContentType
(WidgetContentType contentType) void
setGenerationType
(WidgetGenerationType generationType) void
void
setOrder
(int order) void
setOwnerPage
(CMSPage ownerPage) void
setOwnerTemplate
(CMSPageTemplate ownerTemplate)
-
Field Details
-
WIDGET_TYPE_DEFAULT
- See Also:
-
WIDGET_TYPE_AUTOMATIC
- See Also:
-
WIDGET_TYPE_CUSTOM
- See Also:
-
HASH_MULTIPLIER
protected static final int HASH_MULTIPLIERConstantHASH_MULTIPLIER=11
- See Also:
-
-
Constructor Details
-
CMSSidebarElement
public CMSSidebarElement()Empty constructor for the DAO -
CMSSidebarElement
Default constructor for a certain type of widget- Parameters:
type
-
-
CMSSidebarElement
Default constructor for a certain type of widget- Parameters:
type
-owner
-
-
CMSSidebarElement
Default constructor for a certain type of widget- Parameters:
type
-owner
-
-
CMSSidebarElement
Default constructor for a certain type of widget and owning CMSPage- Parameters:
orig
-owner
-
-
CMSSidebarElement
Default constructor for a certain type of widget and owning CMSPageTemplate- Parameters:
orig
-owner
-
-
-
Method Details
-
copy
Clones the given sidebar element and assigns the given CMSPage as owner. Depends on cloning constructors of subclasses- Parameters:
orig
-owner
-- Returns:
CMSSidebarElement
-
copy
Clones the given sidebar element and assigns the given CMSPage as owner. Depends on cloning constructors of subclasses- Parameters:
orig
-owner
-- Returns:
CMSSidebarElement
-
getId
the database id- Returns:
- the id
-
setId
- Parameters:
id
- the id to set
-
getOwnerPage
theCMSPage
containing the element- Returns:
- the ownerPage
-
setOwnerPage
- Parameters:
ownerPage
- the ownerPage to set
-
getOwnerTemplate
-
setOwnerTemplate
-
getOrder
public int getOrder()The order in which the element is shown. Low numbers are displayed on top of the sidebar, high numbers at the bottom- Returns:
- the order
-
setOrder
public void setOrder(int order) - Parameters:
order
- the order to set
-
getGenerationType
theWidgetGenerationType
of the underlying widget- Returns:
- the generationType
-
setGenerationType
- Parameters:
generationType
- the generationType to set
-
getContentType
theWidgetContentType
of the underlying widget- Returns:
- the contentType
-
setContentType
- Parameters:
contentType
- the contentType to set
-
getTitle
The title displayed for this element when editing the owning CMSPage- Returns:
TranslatedText
-