
public final class AllPermission extends Permission implements Serializable
Permission to perform all operations on a given wiki.
| Modifier | Constructor and Description |
|---|---|
protected |
AllPermission()
For serialization purposes.
|
|
AllPermission(String wiki)
Creates a new AllPermission for the given wikis.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
checkGuard, getNameprotected AllPermission()
public AllPermission(String wiki)
wiki - the wiki to which the permission should apply. If null, will
apply to all wikis.public boolean equals(Object obj)
equals in class Permissionobj - Object.equals(java.lang.Object)public String getActions()
nullgetActions in class PermissionPermission.getActions()public String getWiki()
public int hashCode()
hashCode in class PermissionObject.hashCode()public boolean implies(Permission permission)
implies in class Permissionpermission - the permission which may (or may not) be implied by
this instancetrue if the permission is implied,
false otherwisePermission.implies(java.security.Permission)public PermissionCollection newPermissionCollection()
AllPermissionCollection.newPermissionCollection in class PermissionPermission.newPermissionCollection()public String toString()
toString in class PermissionObject.toString()protected static boolean isJSPWikiPermission(Permission permission)
permission - Permission to checkCopyright © 2001-2018 The Apache Software Foundation. All rights reserved.