Interface SecureTreeQuery.Builder

Enclosing interface:
SecureTreeQuery

public static interface SecureTreeQuery.Builder
A builder that combines some conditional tree with conditions from the ACL.
  • Method Summary

    Modifier and Type
    Method
    Description
    permission(Permission permission)
    Set the permission to be used to select the rules that should be built into the query.
    @Nullable Node
    toTree(boolean grantPerDefault)
    Return the resulting conditional tree that combines the conditions from the original query with the conditions from the ACL.
  • Method Details

    • permission

      SecureTreeQuery.Builder permission(Permission permission)
      Set the permission to be used to select the rules that should be built into the query.
      Parameters:
      permission - The permission used to select the rules.
      Returns:
      `this`
    • toTree

      @Nullable @Nullable Node toTree(boolean grantPerDefault) throws PersistException
      Return the resulting conditional tree that combines the conditions from the original query with the conditions from the ACL.
      Returns:
      The decorated conditional tree.
      Throws:
      PersistException - If an error occurs.