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
Constructors -
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'sEntityModelto it's root widget model.
-
Constructor Details
-
WidgetModelServiceImpl
-
-
Method Details
-
getAllWidgetEntityModels
Description copied from interface:WidgetModelServiceGet all widget entity models.- Specified by:
getAllWidgetEntityModelsin interfaceWidgetModelService- Returns:
- all widget entity models.
-
getMainWidgetEntityModels
Description copied from interface:WidgetModelServiceGet all main widget entity models.- Specified by:
getMainWidgetEntityModelsin interfaceWidgetModelService- Returns:
- all main widget entity models.
-
getChildWidgetEntityModels
Description copied from interface:WidgetModelServiceGet all child widget entity models.- Specified by:
getChildWidgetEntityModelsin interfaceWidgetModelService- Returns:
- all child widget entity models.
-
getWidgetEntityModel
Description copied from interface:WidgetModelServiceReturn the entity model which belongs to a widget template - if there is one.- Specified by:
getWidgetEntityModelin 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:WidgetModelServiceResolve a widget'sEntityModelto it's root widget model.- Specified by:
resolveRootWidgetin interfaceWidgetModelService- Parameters:
widgetModel- a widgetEntityModel- Returns:
- the corresponding
WidgetModelService.RootWidgetModel
-