Package org.apache.wiki.auth.permissions
Class AllPermissionCollection
java.lang.Object
java.security.PermissionCollection
org.apache.wiki.auth.permissions.AllPermissionCollection
- All Implemented Interfaces:
Serializable
A collection of AllPermission objects.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(Permission permission) Adds an AllPermission object to this AllPermissionCollection.elements()
Returns an enumeration of all AllPermission objects stored in this collection.boolean
implies
(Permission permission) Iterates through the AllPermission objects stored by this AllPermissionCollection and determines if any of them imply a supplied Permission.boolean
void
Methods inherited from class java.security.PermissionCollection
elementsAsStream, toString
-
Field Details
-
m_permissions
-
-
Constructor Details
-
AllPermissionCollection
public AllPermissionCollection()
-
-
Method Details
-
add
Adds an AllPermission object to this AllPermissionCollection. If this collection was previously marked read-only, or if the permission supplied is not of typeAllPermission
, aSecurityException
is thrown.- Specified by:
add
in classPermissionCollection
- Parameters:
permission
-- See Also:
-
elements
Returns an enumeration of all AllPermission objects stored in this collection.- Specified by:
elements
in classPermissionCollection
- Returns:
- See Also:
-
implies
Iterates through the AllPermission objects stored by this AllPermissionCollection and determines if any of them imply a supplied Permission. If the Permission is not of typeAllPermission
,PagePermission
orWikiPermission
, this method will returnfalse
. If none of the AllPermissions stored in this collection imply the permission, the method returnsfalse
; conversely, if one of the AllPermission objects implies the permission, the method returnstrue
.- Specified by:
implies
in classPermissionCollection
- Parameters:
permission
- the Permission to test. It may be any Permission type, but only the AllPermission, PagePermission or WikiPermission types are actually evaluated.- Returns:
- See Also:
-
isReadOnly
- Overrides:
isReadOnly
in classPermissionCollection
-
setReadOnly
- Overrides:
setReadOnly
in classPermissionCollection
- See Also:
-