Interface WidgetModelService

All Known Implementing Classes:
WidgetModelServiceImpl

public interface WidgetModelService
  • Field Details

  • 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

      Optional<EntityModel> getWidgetEntityModel(String widgetTemplateId)
      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

      WidgetModelService.RootWidgetModel resolveRootWidget(EntityModel widgetModel)
      Resolve a widget's EntityModel to it's root widget model.
      Parameters:
      widgetModel - a widget EntityModel
      Returns:
      the corresponding WidgetModelService.RootWidgetModel