Interface ElementPermissions
@OpenApiAll
public interface ElementPermissions
Interface for elements permissions handler.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canAddChild
(BaseElement parent, BaseElement child) Checks if there is permissions to add given child to given parent.boolean
canCreateChildIn
(BaseElement element) Return true if children can be created in given elementboolean
canDelete
(BaseElement element) Checks if element can be deletedboolean
isElementEditable
(BaseElement element) Return true if elements properties can be changed.
-
Method Details
-
isElementEditable
Return true if elements properties can be changed.- Parameters:
element
- element to check.- Returns:
- true if elements properties can be changed.
-
canCreateChildIn
Return true if children can be created in given element- Parameters:
element
- element to check- Returns:
- true if children can be created in given element
-
canAddChild
Checks if there is permissions to add given child to given parent.- Parameters:
parent
- parent to check.child
- child to check- Returns:
- true if there is permissions to add given child to given parent.
-
canDelete
Checks if element can be deleted- Parameters:
element
- element to check- Returns:
- if element can be deleted.
-