|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.security.acl.ACLEntryImpl
public class ACLEntryImpl
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 Summary | |
|---|---|
ACLEntryImpl(BitMaskPermission permission,
org.jboss.security.identity.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. |
|
| Method Summary | |
|---|---|
boolean |
checkPermission(org.jboss.security.acl.ACLPermission permission)
|
boolean |
equals(Object obj)
|
ACLImpl |
getAcl()
|
long |
getACLEntryId()
Obtains the persistent id of this ACLEntryImpl. |
org.jboss.security.identity.Identity |
getIdentity()
|
String |
getIdentityOrRole()
|
org.jboss.security.acl.ACLPermission |
getPermission()
|
int |
hashCode()
|
void |
setAcl(ACLImpl acl)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ACLEntryImpl(BitMaskPermission permission,
org.jboss.security.identity.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.| Method Detail |
|---|
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 org.jboss.security.acl.ACLEntrypublic org.jboss.security.identity.Identity getIdentity()
getIdentity in interface org.jboss.security.acl.ACLEntrypublic org.jboss.security.acl.ACLPermission getPermission()
getPermission in interface org.jboss.security.acl.ACLEntrypublic boolean checkPermission(org.jboss.security.acl.ACLPermission permission)
checkPermission in interface org.jboss.security.acl.ACLEntrypublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||