Class ObjectPermission

java.lang.Object
org.apache.guacamole.net.auth.permission.ObjectPermission
All Implemented Interfaces:
Permission<ObjectPermission.Type>

public class ObjectPermission extends Object implements Permission<ObjectPermission.Type>
A permission which affects a specific object, rather than the system as a whole.
  • Constructor Details

    • ObjectPermission

      public ObjectPermission(ObjectPermission.Type type, String identifier)
      Creates a new ObjectPermission having the given type and identifier. The identifier must be the unique identifier assigned to the object associated with this permission by the AuthenticationProvider in use.
      Parameters:
      type - The type of operation affected by this permission.
      identifier - The identifier of the object associated with the operation affected by this permission.
  • Method Details

    • getObjectIdentifier

      public String getObjectIdentifier()
      Returns the identifier of the specific object affected by this permission.
      Returns:
      The identifier of the specific object affected by this permission.
    • getType

      public ObjectPermission.Type getType()
      Description copied from interface: Permission
      Returns the type of operation affected by this permission.
      Specified by:
      getType in interface Permission<ObjectPermission.Type>
      Returns:
      The type of operation affected by this permission.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object