public final class AllPermission
extends java.security.Permission
implements java.io.Serializable
Permission to perform all operations on a given wiki.
Modifier | Constructor and Description |
---|---|
protected |
AllPermission()
For serialization purposes.
|
|
AllPermission(java.lang.String wiki)
Creates a new AllPermission for the given wikis.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Two AllPermission objects are considered equal if their wikis are equal.
|
java.lang.String |
getActions()
No-op; always returns
null |
java.lang.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(java.security.Permission permission)
WikiPermission can only imply other WikiPermissions; no other permission
types are implied.
|
protected static boolean |
isJSPWikiPermission(java.security.Permission permission)
Checks if the given permission is one of ours.
|
java.security.PermissionCollection |
newPermissionCollection()
Returns a new
AllPermissionCollection . |
java.lang.String |
toString()
Prints a human-readable representation of this permission.
|
protected AllPermission()
public AllPermission(java.lang.String wiki)
wiki
- the wiki to which the permission should apply. If null, will
apply to all wikis.@CheckReturnValue public boolean equals(java.lang.Object obj)
equals
in class java.security.Permission
obj
- Object.equals(java.lang.Object)
public java.lang.String getActions()
null
getActions
in class java.security.Permission
Permission.getActions()
public java.lang.String getWiki()
@CheckReturnValue public int hashCode()
hashCode
in class java.security.Permission
Object.hashCode()
public boolean implies(java.security.Permission permission)
implies
in class java.security.Permission
permission
- the permission which may (or may not) be implied by
this instancetrue
if the permission is implied,
false
otherwisePermission.implies(java.security.Permission)
public java.security.PermissionCollection newPermissionCollection()
AllPermissionCollection
.newPermissionCollection
in class java.security.Permission
Permission.newPermissionCollection()
@CheckReturnValue @Nonnull public java.lang.String toString()
toString
in class java.security.Permission
Object.toString()
protected static boolean isJSPWikiPermission(java.security.Permission permission)
permission
- Permission to checkstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.