Package org.apache.wiki.auth.permissions
Class AllPermission
java.lang.Object
java.security.Permission
org.apache.wiki.auth.permissions.AllPermission
- All Implemented Interfaces:
Serializable,Guard
public final class AllPermission extends Permission implements Serializable
Permission to perform all operations on a given wiki.
- Since:
- 2.3.80
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Modifier Constructor Description protectedAllPermission()For serialization purposes.AllPermission(String wiki)Creates a new AllPermission for the given wikis. -
Method Summary
Modifier and Type Method Description booleanequals(Object obj)Two AllPermission objects are considered equal if their wikis are equal.StringgetActions()No-op; always returnsnullStringgetWiki()Returns the name of the wiki containing the page represented by this permission; may return the wildcard string.inthashCode()Returns the hash code for this WikiPermission.booleanimplies(Permission permission)WikiPermission can only imply other WikiPermissions; no other permission types are implied.PermissionCollectionnewPermissionCollection()Returns a newAllPermissionCollection.StringtoString()Prints a human-readable representation of this permission.Methods inherited from class java.security.Permission
checkGuard, getName
-
Constructor Details
-
AllPermission
protected AllPermission()For serialization purposes. -
AllPermission
Creates a new AllPermission for the given wikis.- Parameters:
wiki- the wiki to which the permission should apply. If null, will apply to all wikis.
-
-
Method Details
-
equals
Two AllPermission objects are considered equal if their wikis are equal.- Specified by:
equalsin classPermission- Parameters:
obj-- Returns:
- See Also:
Object.equals(java.lang.Object)
-
getActions
No-op; always returnsnull- Specified by:
getActionsin classPermission- Returns:
- Always null.
- See Also:
Permission.getActions()
-
getWiki
Returns the name of the wiki containing the page represented by this permission; may return the wildcard string.- Returns:
- The wiki
-
hashCode
Returns the hash code for this WikiPermission.- Specified by:
hashCodein classPermission- Returns:
- See Also:
Object.hashCode()
-
implies
WikiPermission can only imply other WikiPermissions; no other permission types are implied. One WikiPermission implies another if all of the other WikiPermission's actions are equal to, or a subset of, those for this permission.- Specified by:
impliesin classPermission- Parameters:
permission- the permission which may (or may not) be implied by this instance- Returns:
trueif the permission is implied,falseotherwise- See Also:
Permission.implies(java.security.Permission)
-
newPermissionCollection
Returns a newAllPermissionCollection.- Overrides:
newPermissionCollectionin classPermission- Returns:
- See Also:
Permission.newPermissionCollection()
-
toString
Prints a human-readable representation of this permission.- Overrides:
toStringin classPermission- Returns:
- See Also:
Object.toString()
-