|
||||||||||
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. |
|
ACLImpl(String resourceString,
Collection<org.jboss.security.acl.ACLEntry> 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.acl.ACLEntry |
getEntry(org.jboss.security.identity.Identity identity)
|
org.jboss.security.acl.ACLEntry |
getEntry(String identityOrRole)
|
org.jboss.security.authorization.Resource |
getResource()
|
String |
getResourceAsString()
Obtains the stringfied representation of the resource associated with this ACL . |
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)
Sets the resource associated with this ACL . |
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.public ACLImpl(String resourceString, Collection<org.jboss.security.acl.ACLEntry> 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.ACL
public boolean removeEntry(org.jboss.security.acl.ACLEntry entry)
removeEntry
in interface org.jboss.security.acl.ACL
public Collection<? extends org.jboss.security.acl.ACLEntry> getEntries()
getEntries
in interface org.jboss.security.acl.ACL
public org.jboss.security.acl.ACLEntry getEntry(org.jboss.security.identity.Identity identity)
getEntry
in interface org.jboss.security.acl.ACL
public org.jboss.security.acl.ACLEntry getEntry(String identityOrRole)
getEntry
in interface org.jboss.security.acl.ACL
public boolean isGranted(org.jboss.security.acl.ACLPermission permission, org.jboss.security.identity.Identity identity)
isGranted
in interface org.jboss.security.acl.ACL
public String getResourceAsString()
Obtains the stringfied representation of the resource associated with this ACL
.
String
representation of the resource.public org.jboss.security.authorization.Resource getResource()
getResource
in interface org.jboss.security.acl.ACL
public void setResource(org.jboss.security.authorization.Resource resource)
Sets the resource associated with this ACL
.
resource
- a reference to the Resource
associated with this ACL
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |