public class AllPermissionCollection extends PermissionCollection
Modifier and Type | Field and Description |
---|---|
protected Hashtable<Permission,Permission> |
m_permissions |
Constructor and Description |
---|
AllPermissionCollection() |
Modifier and Type | Method and Description |
---|---|
void |
add(Permission permission)
Adds an AllPermission object to this AllPermissionCollection.
|
Enumeration<Permission> |
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 |
isReadOnly() |
void |
setReadOnly() |
toString
protected final Hashtable<Permission,Permission> m_permissions
public AllPermissionCollection()
public void add(Permission permission)
AllPermission
, a SecurityException
is
thrown.add
in class PermissionCollection
permission
- PermissionCollection.add(java.security.Permission)
public Enumeration<Permission> elements()
elements
in class PermissionCollection
PermissionCollection.elements()
public boolean implies(Permission permission)
AllPermission
,
PagePermission
or WikiPermission
, this method will
return false
. If none of the AllPermissions stored in
this collection imply the permission, the method returns
false
; conversely, if one of the AllPermission objects
implies the permission, the method returns true
.implies
in class PermissionCollection
permission
- the Permission to test. It may be any Permission type,
but only the AllPermission, PagePermission or WikiPermission types are
actually evaluated.PermissionCollection.implies(java.security.Permission)
public boolean isReadOnly()
isReadOnly
in class PermissionCollection
public void setReadOnly()
setReadOnly
in class PermissionCollection
PermissionCollection.setReadOnly()
Copyright © 2001-2019 The Apache Software Foundation. All rights reserved.