Interface WidgetService
- All Known Implementing Classes:
WidgetServiceImpl
public interface WidgetService
-
Method Summary
Modifier and TypeMethodDescriptionresolveRootWidgetConfigEntityList
(Entity widgetConfigEntity) Resolve the root widget for widget config entitysetUniqueWidgetKeys
(String html, @Nullable PrimaryKey sectionKey) Set unique attribute "key" on<widget>
tags.
-
Method Details
-
resolveRootWidgetConfigEntityList
Resolve the root widget for widget config entity- Parameters:
widgetConfigEntity
- a widget config entity- Returns:
- the provided widget config entity's root config entity
- Throws:
PersistException
-
setUniqueWidgetKeys
String setUniqueWidgetKeys(String html, @Nullable @Nullable PrimaryKey sectionKey) throws PersistException Set unique attribute "key" on<widget>
tags.- Parameters:
html
- Any html string (containing some widgets)- Returns:
- the same html string, but every widget tag has a unique key attribute (system-wide)
- Throws:
PersistException
-