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 TypeMethodDescriptionvoidadd(Permission permission) Adds an AllPermission object to this AllPermissionCollection.elements()Returns an enumeration of all AllPermission objects stored in this collection.booleanimplies(Permission permission) Iterates through the AllPermission objects stored by this AllPermissionCollection and determines if any of them imply a supplied Permission.booleanvoidMethods 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, aSecurityExceptionis thrown.- Specified by:
addin classPermissionCollection- Parameters:
permission-- See Also:
-
elements
Returns an enumeration of all AllPermission objects stored in this collection.- Specified by:
elementsin 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,PagePermissionorWikiPermission, 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:
impliesin 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:
isReadOnlyin classPermissionCollection
-
setReadOnly
- Overrides:
setReadOnlyin classPermissionCollection- See Also:
-