Interface ElementPermissions


@OpenApiAll public interface ElementPermissions
Interface for elements permissions handler.
  • Method Details

    • isElementEditable

      boolean isElementEditable(BaseElement element)
      Return true if elements properties can be changed.
      Parameters:
      element - element to check.
      Returns:
      true if elements properties can be changed.
    • canCreateChildIn

      boolean canCreateChildIn(BaseElement element)
      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

      boolean canAddChild(BaseElement parent, BaseElement child)
      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

      boolean canDelete(BaseElement element)
      Checks if element can be deleted
      Parameters:
      element - element to check
      Returns:
      if element can be deleted.