|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.security.Permission
com.ecyrd.jspwiki.auth.permissions.AllPermission
public final class AllPermission
Permission to perform all operations on a given wiki.
Constructor Summary | |
---|---|
AllPermission(String wiki)
Creates a new WikiPermission for a specified set of actions. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Two AllPermission objects are considered equal if their wikis are equal. |
String |
getActions()
No-op; always returns null |
String |
getWiki()
Returns the name of the wiki containing the page represented by this permission; may return the wildcard string. |
int |
hashCode()
Returns the hash code for this WikiPermission. |
boolean |
implies(Permission permission)
WikiPermission can only imply other WikiPermissions; no other permission types are implied. |
PermissionCollection |
newPermissionCollection()
Returns a new AllPermissionCollection . |
String |
toString()
Prints a human-readable representation of this permission. |
Methods inherited from class java.security.Permission |
---|
checkGuard, getName |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AllPermission(String wiki)
wiki
- the wiki to which the permission should applyMethod Detail |
---|
public final boolean equals(Object obj)
equals
in class Permission
Object.equals(java.lang.Object)
public final String getActions()
null
getActions
in class Permission
Permission.getActions()
public final String getWiki()
public final int hashCode()
hashCode
in class Permission
Object.hashCode()
public final boolean implies(Permission permission)
implies
in class Permission
permission
- the permission which may (or may not) be implied by
this instance
true
if the permission is implied,
false
otherwisePermission.implies(java.security.Permission)
public PermissionCollection newPermissionCollection()
AllPermissionCollection
.
newPermissionCollection
in class Permission
Permission.newPermissionCollection()
,
AllPermissionCollection.getInstance(String)
public final String toString()
toString
in class Permission
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |