Class WidgetModelServiceImpl
java.lang.Object
ch.tocco.nice2.optional.cms.impl.content.widget.WidgetModelServiceImpl
- All Implemented Interfaces:
WidgetModelService
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.optional.cms.impl.content.widget.WidgetModelService
WidgetModelService.RootWidgetModel
-
Field Summary
Fields inherited from interface ch.tocco.nice2.optional.cms.impl.content.widget.WidgetModelService
MODEL_NAME_FUNCTION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet all widget entity models.Get all child widget entity models.Get all main widget entity models.getWidgetEntityModel
(String widgetTemplateId) Return the entity model which belongs to a widget template - if there is one.resolveRootWidget
(EntityModel widgetModel) Resolve a widget'sEntityModel
to it's root widget model.
-
Constructor Details
-
WidgetModelServiceImpl
-
-
Method Details
-
getAllWidgetEntityModels
Description copied from interface:WidgetModelService
Get all widget entity models.- Specified by:
getAllWidgetEntityModels
in interfaceWidgetModelService
- Returns:
- all widget entity models.
-
getMainWidgetEntityModels
Description copied from interface:WidgetModelService
Get all main widget entity models.- Specified by:
getMainWidgetEntityModels
in interfaceWidgetModelService
- Returns:
- all main widget entity models.
-
getChildWidgetEntityModels
Description copied from interface:WidgetModelService
Get all child widget entity models.- Specified by:
getChildWidgetEntityModels
in interfaceWidgetModelService
- Returns:
- all child widget entity models.
-
getWidgetEntityModel
Description copied from interface:WidgetModelService
Return the entity model which belongs to a widget template - if there is one.- Specified by:
getWidgetEntityModel
in interfaceWidgetModelService
- Parameters:
widgetTemplateId
- The id of the template to return the entity model for.- Returns:
- the entity model which belongs to a widget template - if there is one.
-
resolveRootWidget
Description copied from interface:WidgetModelService
Resolve a widget'sEntityModel
to it's root widget model.- Specified by:
resolveRootWidget
in interfaceWidgetModelService
- Parameters:
widgetModel
- a widgetEntityModel
- Returns:
- the corresponding
WidgetModelService.RootWidgetModel
-