|
||||||||||
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 | |
---|---|
protected |
AllPermission()
For serialization purposes. |
|
AllPermission(String wiki)
Creates a new AllPermission for the given wikis. |
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. |
protected static boolean |
isJSPWikiPermission(Permission permission)
Checks if the given permission is one of ours. |
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 |
---|
protected AllPermission()
public AllPermission(String wiki)
wiki
- the wiki to which the permission should apply. If null, will
apply to all wikis.Method Detail |
---|
public final boolean equals(Object obj)
equals
in class Permission
obj
-
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()
public final String toString()
toString
in class Permission
Object.toString()
protected static final boolean isJSPWikiPermission(Permission permission)
permission
- Permission to check
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |