|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ecyrd.jspwiki.auth.acl.AclEntryImpl
public class AclEntryImpl
Implementation of a JSPWiki AclEntry.
Constructor Summary | |
---|---|
AclEntryImpl()
Constructs a new AclEntryImpl instance. |
Method Summary | |
---|---|
boolean |
addPermission(Permission permission)
Adds the specified permission to this ACL entry. |
boolean |
checkPermission(Permission permission)
Checks if the specified permission is part of the permission set in this entry. |
Object |
clone()
Returns a string representation of the contents of this ACL entry. |
Principal |
getPrincipal()
Returns the principal for which permissions are granted or denied by this ACL entry. |
Enumeration |
permissions()
Returns an enumeration of the permissions in this ACL entry. |
boolean |
removePermission(Permission permission)
Removes the specified permission from this ACL entry. |
boolean |
setPrincipal(Principal user)
Specifies the principal for which permissions are granted or denied by this ACL entry. |
String |
toString()
Clones this ACL entry. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AclEntryImpl()
Method Detail |
---|
public boolean addPermission(Permission permission)
AclEntry
PagePermission
. Note: An entry
can have multiple permissions.
addPermission
in interface AclEntry
permission
- the permission to be associated with the principal in
this entry
public boolean checkPermission(Permission permission)
AclEntry
checkPermission
in interface AclEntry
permission
- the permission to be checked for.
public Object clone()
AclEntry
clone
in interface AclEntry
clone
in class Object
public Principal getPrincipal()
AclEntry
getPrincipal
in interface AclEntry
public Enumeration permissions()
AclEntry
permissions
in interface AclEntry
public boolean removePermission(Permission permission)
AclEntry
removePermission
in interface AclEntry
permission
- the permission to be removed from this entry.
public boolean setPrincipal(Principal user)
AclEntry
setPrincipal
in interface AclEntry
user
- the principal to be set for this entry
public String toString()
AclEntry
toString
in interface AclEntry
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |