Class Permission
- java.lang.Object
-
- org.opends.server.authorization.dseecompat.Permission
-
public final class Permission extends Object
A class representing the permissions of an bind rule. The permissions of an ACI look like deny(search, write).
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasAccessType(org.opends.server.authorization.dseecompat.EnumAccessType accessType)
Checks if a given access type enumeration is equal to this classes access type.boolean
hasRights(int rights)
Checks if the permission's rights has the specified rights.String
toString()
-
-
-
Method Detail
-
hasAccessType
public boolean hasAccessType(org.opends.server.authorization.dseecompat.EnumAccessType accessType)
Checks if a given access type enumeration is equal to this classes access type.- Parameters:
accessType
- An enumeration representing an access type.- Returns:
- True if the access types are equal.
-
hasRights
public boolean hasRights(int rights)
Checks if the permission's rights has the specified rights.- Parameters:
rights
- The rights to check for.- Returns:
- True if the permission's rights has the specified rights.
-
-