|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.security.acl.ACLImpl
public class ACLImpl
Simple ACL implementation that keeps the entries in a Map whose keys are the identities of the entries, to provide fast access.
| Constructor Summary | |
|---|---|
ACLImpl(org.jboss.security.authorization.Resource resource)
Builds an instance of ACLImpl for the specified resource. |
|
ACLImpl(org.jboss.security.authorization.Resource resource,
Collection<org.jboss.security.acl.ACLEntry> entries)
Builds an instance of ACLImpl for the specified resource, and initialize
it with the specified entries. |
|
| Method Summary | |
|---|---|
boolean |
addEntry(org.jboss.security.acl.ACLEntry entry)
|
long |
getACLId()
Obtains the persistent id of this ACLImpl. |
Collection<? extends org.jboss.security.acl.ACLEntry> |
getEntries()
|
org.jboss.security.authorization.Resource |
getResource()
|
boolean |
isGranted(org.jboss.security.acl.ACLPermission permission,
org.jboss.security.identity.Identity identity)
|
boolean |
removeEntry(org.jboss.security.acl.ACLEntry entry)
|
void |
setResource(org.jboss.security.authorization.Resource resource)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ACLImpl(org.jboss.security.authorization.Resource resource)
Builds an instance of ACLImpl for the specified resource.
resource - a reference to the Resource associated with
the ACL being constructed.
public ACLImpl(org.jboss.security.authorization.Resource resource,
Collection<org.jboss.security.acl.ACLEntry> entries)
Builds an instance of ACLImpl for the specified resource, and initialize
it with the specified entries.
resource - a reference to the Resource associated with
the ACL being constructed.entries - a Collection containing the ACL's initial entries.| Method Detail |
|---|
public long getACLId()
Obtains the persistent id of this ACLImpl.
long representing the persistent id this ACL.public boolean addEntry(org.jboss.security.acl.ACLEntry entry)
addEntry in interface org.jboss.security.acl.ACLpublic boolean removeEntry(org.jboss.security.acl.ACLEntry entry)
removeEntry in interface org.jboss.security.acl.ACLpublic Collection<? extends org.jboss.security.acl.ACLEntry> getEntries()
getEntries in interface org.jboss.security.acl.ACLpublic org.jboss.security.authorization.Resource getResource()
getResource in interface org.jboss.security.acl.ACLpublic void setResource(org.jboss.security.authorization.Resource resource)
public boolean isGranted(org.jboss.security.acl.ACLPermission permission,
org.jboss.security.identity.Identity identity)
isGranted in interface org.jboss.security.acl.ACL
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||