|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.wvcm.AccessControlElement
public class AccessControlElement
NOT YET STANDARD
Access Control List (ACL): An "ACL" is a list of access control elements that define access control to a particular resource.
Access Control Element (ACE): An "ACE" either grants or denies a particular set of (non-abstract) privileges for a particular principal.
Inherited ACE: An "inherited ACE" is an ACE that is dynamically shared from the ACL of another resource. When a shared ACE changes on the primary resource, it is also changed on inheriting resources.
Nested Class Summary | |
---|---|
static interface |
AccessControlElement.Privilege
NOT YET STANDARD Privilege: A "privilege" controls access to a particular set of HTTP operations on a resource. |
Constructor Summary | |
---|---|
AccessControlElement(Principal principal,
java.util.List privileges,
boolean grant)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object that)
|
Resource |
getInheritedFrom()
Get the resource from which this ACE is inherited from. |
Principal |
getPrincipal()
Get the principal of this ACE |
java.util.List |
getPrivileges()
Set the List of Privilege objects which are granted or denied by this ACE |
int |
hashCode()
|
boolean |
isGrant()
Returns true, if the privileges of this ACE are all granted, and false if the privileges of this ACE are all denied. |
void |
setGrant(boolean grant)
Set whether the privileges of this ACE are granted (grant=true) or denied (grant=false) |
void |
setInheritedFrom(Resource inheritedFrom)
Set the resource this ACE is inherited from. |
void |
setPrincipal(Principal principal)
Set the principal of this ACE |
void |
setPrivileges(java.util.List privileges)
Set the List of Privilege objects to be granted or denied by this ACE |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AccessControlElement(Principal principal, java.util.List privileges, boolean grant)
Method Detail |
---|
public void setPrincipal(Principal principal)
principal
- a Principal objectpublic Principal getPrincipal()
public void setPrivileges(java.util.List privileges)
privileges
- a List of Privilege objectspublic java.util.List getPrivileges()
public void setGrant(boolean grant)
grant
- true to grant, false to denypublic boolean isGrant()
public void setInheritedFrom(Resource inheritedFrom)
inheritedFrom
- a Resourcepublic Resource getInheritedFrom()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object that)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |