public interface WidgetService
Widget
sModifier and Type | Method and Description |
---|---|
List<Widget> |
findAllActiveWidgets() |
List<Widget> |
findAllCurrentlyUsedWidgets()
Returns a list of widgets such that each widget in the list is used by at least
one
ContentItem . |
List<ContentItem> |
findContentItemsByWidgetId(Long id)
Finds all Content Items which use the Widget by its internal database id
|
Widget |
findWidgetById(Long id)
Finds a Widget instance by its internal database id
|
String |
getWidgetClasspathPath(String pathPrefix,
Widget widget)
Returns a computed classpath for the given widget
|
String |
replaceCssThemeFields(String resourceData)
This is used to ensure that widget css is theme compatible by replacing the css theme fields.
|
Widget |
saveWidget(Widget widget)
Persists the given widget to the database.
|
List<Widget> findAllActiveWidgets()
List<Widget> findAllCurrentlyUsedWidgets()
ContentItem
.Widget findWidgetById(Long id)
id
- Widget
List<ContentItem> findContentItemsByWidgetId(Long id)
id
- Item
sWidget saveWidget(Widget widget)
widget
- String getWidgetClasspathPath(String pathPrefix, Widget widget)
pathPrefix
- widget
- Copyright © 2020. All rights reserved.