@Entity public class ACLEntryImpl extends Object implements ACLEntry, Serializable
This class represents an entry in the Access Control List (ACL), and associates a permission to an identity. This
implementation only stores permissions of type BitMaskPermission, and can also only check permissions of
that type.
| Constructor and Description |
|---|
ACLEntryImpl(BitMaskPermission permission,
Identity identity)
Builds an instance of
ACLEntryImpl with the specified permission and identity. |
ACLEntryImpl(BitMaskPermission permission,
String identityOrRole)
Builds an instance of
ACLEntryImpl with the specified permission and identity/role name. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkPermission(ACLPermission permission) |
boolean |
equals(Object obj) |
ACLImpl |
getAcl() |
long |
getACLEntryId()
Obtains the persistent id of this
ACLEntryImpl. |
Identity |
getIdentity() |
String |
getIdentityOrRole() |
ACLPermission |
getPermission() |
int |
hashCode() |
void |
setAcl(ACLImpl acl) |
public ACLEntryImpl(BitMaskPermission permission, Identity identity)
Builds an instance of ACLEntryImpl with the specified permission and identity.
permission - the ACLPermission granted to the associated identity.identity - the Identity for which the permission is being granted.public ACLEntryImpl(BitMaskPermission permission, String identityOrRole)
Builds an instance of ACLEntryImpl with the specified permission and identity/role name.
permission - the ACLPermission granted to the associated identity.identityOrRole - a String representing the identity or role name.public long getACLEntryId()
Obtains the persistent id of this ACLEntryImpl.
long representing the persistent id this entry.public ACLImpl getAcl()
public void setAcl(ACLImpl acl)
public String getIdentityOrRole()
getIdentityOrRole in interface ACLEntrypublic Identity getIdentity()
getIdentity in interface ACLEntrypublic ACLPermission getPermission()
getPermission in interface ACLEntrypublic boolean checkPermission(ACLPermission permission)
checkPermission in interface ACLEntryCopyright © 2018 JBoss by Red Hat. All rights reserved.