Class PermissionQuery

java.lang.Object
com.groiss.accesscontrol.PermissionQuery

public class PermissionQuery extends Object
A query to the permission system.
  • Field Details

    • user

      @Deprecated(since="11.0", forRemoval=true) public User user
      Deprecated, for removal: This API element is subject to removal in a future version.
      use getter method
    • agent

      @Deprecated(since="11.0", forRemoval=true) public Agent agent
      Deprecated, for removal: This API element is subject to removal in a future version.
      use getter method
    • target

      @Deprecated(since="11.0", forRemoval=true) public Object target
      Deprecated, for removal: This API element is subject to removal in a future version.
      use getter method
    • value

      @Deprecated(since="11.0", forRemoval=true) public boolean value
      Deprecated, for removal: This API element is subject to removal in a future version.
      use getter method
  • Constructor Details

    • PermissionQuery

      public PermissionQuery(boolean value)
      empty permission query with given value
    • PermissionQuery

      public PermissionQuery(Agent agent, Right right)
    • PermissionQuery

      public PermissionQuery(Agent agent, Right right, Object target)
    • PermissionQuery

      public PermissionQuery(User user, Agent agent, Right right, Object target)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getUser

      public User getUser()
    • getAgent

      public Agent getAgent()
    • getRight

      public Right getRight()
    • getTarget

      public Object getTarget()
    • getValue

      public Boolean getValue()
      Returns null if the query has not been initialized with a true or false.