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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ObjectPermission.Type
Specific types of object-level permissions.
-
Constructor Summary
Constructors Constructor Description ObjectPermission(ObjectPermission.Type type, String identifier)
Creates a new ObjectPermission having the given type and identifier.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getObjectIdentifier()
Returns the identifier of the specific object affected by this permission.ObjectPermission.Type
getType()
Returns the type of operation affected by this permission.int
hashCode()
-
-
-
Constructor Detail
-
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 Detail
-
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 interfacePermission<ObjectPermission.Type>
- Returns:
- The type of operation affected by this permission.
-
-