Modifier and Type | Field and Description |
---|---|
protected javax.persistence.EntityManager |
em |
Constructor and Description |
---|
WidgetDaoImpl() |
Modifier and Type | Method and Description |
---|---|
List<Widget> |
readAllActiveWidgets() |
List<Widget> |
readAllCurrentlyUsedWidgets()
Returns a list of widgets such that each widget in the list is used by at least
one
ContentItem . |
List<StructuredContentTypeWidgetXref> |
readAllStructuredContentTypeWidgetXrefs() |
List<ContentItem> |
readContentItemsByWidgetId(Long id)
Finds all Content Items which use the Widget by its internal database id
|
Widget |
readWidgetById(Long id) |
Widget |
saveWidget(Widget widget) |
public Widget readWidgetById(Long id)
readWidgetById
in interface WidgetDao
public Widget saveWidget(Widget widget)
saveWidget
in interface WidgetDao
public List<Widget> readAllActiveWidgets()
readAllActiveWidgets
in interface WidgetDao
public List<StructuredContentTypeWidgetXref> readAllStructuredContentTypeWidgetXrefs()
readAllStructuredContentTypeWidgetXrefs
in interface WidgetDao
public List<Widget> readAllCurrentlyUsedWidgets()
WidgetDao
ContentItem
.readAllCurrentlyUsedWidgets
in interface WidgetDao
public List<ContentItem> readContentItemsByWidgetId(Long id)
WidgetDao
readContentItemsByWidgetId
in interface WidgetDao
Item
sCopyright © 2020. All rights reserved.