Class WidgetDaoImpl
java.lang.Object
com.broadleafcommerce.advancedcms.dao.WidgetDaoImpl
- All Implemented Interfaces:
WidgetDao
- Author:
- Andre Azzolini (apazzolini)
-
Field Summary
Fields -
Constructor Summary
Constructors -
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)
-
Field Details
-
em
protected jakarta.persistence.EntityManager em
-
-
Constructor Details
-
WidgetDaoImpl
public WidgetDaoImpl()
-
-
Method Details
-
readWidgetById
- Specified by:
readWidgetByIdin interfaceWidgetDao- Returns:
- the Widget with internal database id equal to the parameter
-
saveWidget
- Specified by:
saveWidgetin interfaceWidgetDao- Returns:
- the Widget that was persisted
-
readAllActiveWidgets
- Specified by:
readAllActiveWidgetsin interfaceWidgetDao- Returns:
- a list of all currently active widgets
-
readAllStructuredContentTypeWidgetXrefs
- Specified by:
readAllStructuredContentTypeWidgetXrefsin interfaceWidgetDao- Returns:
- a list of all structured content type widget xrefs
-
readAllCurrentlyUsedWidgets
Description copied from interface:WidgetDaoReturns a list of widgets such that each widget in the list is used by at least oneContentItem.- Specified by:
readAllCurrentlyUsedWidgetsin interfaceWidgetDao- Returns:
- a list of all currently used widgets
-
readContentItemsByWidgetId
Description copied from interface:WidgetDaoFinds all Content Items which use the Widget by its internal database id- Specified by:
readContentItemsByWidgetIdin interfaceWidgetDao- Returns:
- the list of
ContentItems
-