Class CMSSidebarElementCustom
java.lang.Object
io.goobi.viewer.model.cms.widgets.embed.CMSSidebarElement
io.goobi.viewer.model.cms.widgets.embed.CMSSidebarElementCustom
- All Implemented Interfaces:
Serializable
Wrapper element for custom (user created) sidebar widgets. Linked to an instance of
CustomSidebarWidget providing the data to display- Author:
- florian
- See Also:
-
Field Summary
Fields inherited from class io.goobi.viewer.model.cms.widgets.embed.CMSSidebarElement
HASH_MULTIPLIER, WIDGET_TYPE_AUTOMATIC, WIDGET_TYPE_CUSTOM, WIDGET_TYPE_DEFAULT -
Constructor Summary
ConstructorsConstructorDescriptionEmpty contructor for the DAOCMSSidebarElementCustom(CustomSidebarWidget widget, CMSPage owner) Default constructor for aCustomSidebarWidgetproviding the data and an owningCMSPageCMSSidebarElementCustom(CustomSidebarWidget widget, CMSPageTemplate owner) CMSSidebarElementCustom(CMSSidebarElementCustom orig, CMSPage owner) Cloning constructor with a CMSPage to set as owner -
Method Summary
Modifier and TypeMethodDescriptionbooleancanEdit()getTitle()Get the title of the underlying widgetGet theCustomSidebarWidgetproviding the datavoidsetWidget(CustomSidebarWidget widget) Methods inherited from class io.goobi.viewer.model.cms.widgets.embed.CMSSidebarElement
copy, copy, getContentType, getGenerationType, getId, getOrder, getOwnerPage, getOwnerTemplate, setContentType, setGenerationType, setId, setOrder, setOwnerPage, setOwnerTemplate
-
Constructor Details
-
CMSSidebarElementCustom
public CMSSidebarElementCustom()Empty contructor for the DAO -
CMSSidebarElementCustom
Default constructor for aCustomSidebarWidgetproviding the data and an owningCMSPage- Parameters:
widget-owner-
-
CMSSidebarElementCustom
-
CMSSidebarElementCustom
Cloning constructor with a CMSPage to set as owner- Parameters:
orig-owner-
-
CMSSidebarElementCustom
-
-
Method Details
-
getWidget
Get theCustomSidebarWidgetproviding the data- Returns:
- the widget
-
setWidget
- Parameters:
widget-
-
getTitle
Get the title of the underlying widget- Overrides:
getTitlein classCMSSidebarElement- Returns:
- the title
-
getDescription
- Overrides:
getDescriptionin classCMSSidebarElement
-
canEdit
public boolean canEdit()- Overrides:
canEditin classCMSSidebarElement
-
getAdminBackendUrl
- Overrides:
getAdminBackendUrlin classCMSSidebarElement
-