public interface WidgetInstancePermissionService
| Modifier and Type | Method and Description |
|---|---|
boolean |
canCreateInstance(Widget widget,
WidgetInstance parentInstance)
Checks if it is possible to create a new instance of the given widget as a child of the given parent instance
according to rules.
|
boolean |
canRemoveInstance(WidgetInstance instance)
Checks if it is possible to remove given widget instance of the given widget according to rules.
|
boolean canCreateInstance(Widget widget, WidgetInstance parentInstance)
widget - the widget to create instances forparentInstance - the parent instance of the to-be-created instanceboolean canRemoveInstance(WidgetInstance instance)
instance - the widget instance to be removedCopyright © 2018. All rights reserved.