Interface WidgetModelService
- All Known Implementing Classes:
WidgetModelServiceImpl
public interface WidgetModelService
-
Nested Class Summary
-
Field 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.
-
Field Details
-
MODEL_NAME_FUNCTION
-
-
Method Details
-
getAllWidgetEntityModels
Iterable<EntityModel> getAllWidgetEntityModels()Get all widget entity models.- Returns:
- all widget entity models.
-
getMainWidgetEntityModels
Iterable<EntityModel> getMainWidgetEntityModels()Get all main widget entity models.- Returns:
- all main widget entity models.
-
getChildWidgetEntityModels
Iterable<EntityModel> getChildWidgetEntityModels()Get all child widget entity models.- Returns:
- all child widget entity models.
-
getWidgetEntityModel
Return the entity model which belongs to a widget template - if there is one.- 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
Resolve a widget'sEntityModel
to it's root widget model.- Parameters:
widgetModel
- a widgetEntityModel
- Returns:
- the corresponding
WidgetModelService.RootWidgetModel
-