Package org.jboss.security.acl
Interface ACLEntry
-
- All Known Implementing Classes:
ACLEntryImpl
public interface ACLEntry
This interface represents an entry in the Access Control List.
- Author:
- Stefan Guilhen
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
checkPermission(ACLPermission permission)
Checks if the specified permission is part of the this entry's permission.Identity
getIdentity()
Obtains theIdentity
for which a permission has been assigned in this entry.String
getIdentityOrRole()
Obtains the identity or role for which a permission has been assigned in this entry.ACLPermission
getPermission()
Obtains thePermission
object held by this entry.
-
-
-
Method Detail
-
getIdentityOrRole
String getIdentityOrRole()
Obtains the identity or role for which a permission has been assigned in this entry.
- Returns:
- a
String
representing the identity or role name.
-
getIdentity
Identity getIdentity()
Obtains the
Identity
for which a permission has been assigned in this entry.- Returns:
- a reference to the
Identity
contained in this entry.
-
getPermission
ACLPermission getPermission()
Obtains the
Permission
object held by this entry.- Returns:
- a reference to the
Permission
contained in this entry.
-
checkPermission
boolean checkPermission(ACLPermission permission)
Checks if the specified permission is part of the this entry's permission.
- Parameters:
permission
- theACLPermission
to be checked for.- Returns:
true
if the permission is part of this entry's permission;false
otherwise.
-
-