Interface WidgetDao

All Known Implementing Classes:
WidgetDaoImpl

public interface WidgetDao
Database access methods for Widgets
Author:
Andre Azzolini (apazzolini)
  • Method Details

    • readAllActiveWidgets

      List<Widget> readAllActiveWidgets()
      Returns:
      a list of all currently active widgets
    • readAllStructuredContentTypeWidgetXrefs

      List<StructuredContentTypeWidgetXref> readAllStructuredContentTypeWidgetXrefs()
      Returns:
      a list of all structured content type widget xrefs
    • readAllCurrentlyUsedWidgets

      List<Widget> readAllCurrentlyUsedWidgets()
      Returns a list of widgets such that each widget in the list is used by at least one ContentItem.
      Returns:
      a list of all currently used widgets
    • readWidgetById

      Widget readWidgetById(Long id)
      Parameters:
      id -
      Returns:
      the Widget with internal database id equal to the parameter
    • saveWidget

      Widget saveWidget(Widget widget)
      Parameters:
      widget -
      Returns:
      the Widget that was persisted
    • readContentItemsByWidgetId

      List<ContentItem> readContentItemsByWidgetId(Long id)
      Finds all Content Items which use the Widget by its internal database id
      Parameters:
      id -
      Returns:
      the list of ContentItems