Interface WidgetDao
- All Known Implementing Classes:
WidgetDaoImpl
public interface WidgetDao
Database access methods for
Widgets- Author:
- Andre Azzolini (apazzolini)
-
Method Summary
Modifier and TypeMethodDescriptionReturns a list of widgets such that each widget in the list is used by at least oneContentItem.Finds all Content Items which use the Widget by its internal database idreadWidgetById(Long id) saveWidget(Widget widget)
-
Method Details
-
readAllActiveWidgets
- Returns:
- a list of all currently active widgets
-
readAllStructuredContentTypeWidgetXrefs
List<StructuredContentTypeWidgetXref> readAllStructuredContentTypeWidgetXrefs()- Returns:
- a list of all structured content type widget xrefs
-
readAllCurrentlyUsedWidgets
Returns a list of widgets such that each widget in the list is used by at least oneContentItem.- Returns:
- a list of all currently used widgets
-
readWidgetById
- Parameters:
id-- Returns:
- the Widget with internal database id equal to the parameter
-
saveWidget
- Parameters:
widget-- Returns:
- the Widget that was persisted
-
readContentItemsByWidgetId
Finds all Content Items which use the Widget by its internal database id- Parameters:
id-- Returns:
- the list of
ContentItems
-