public final class ReadPermission extends Permission implements Serializable
Locator.| Constructor and Description |
|---|
ReadPermission(Locator locator)
Creates a new ReadPermission object for the specified locator.
|
ReadPermission(String locator,
String actions)
Creates a new
ReadPermission object for a locator
with the given external form. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other)
Checks two ReadPermission objects for equality.
|
String |
getActions()
Returns the canonical string representation of the actions,
which currently is the empty string "", since there are no actions for
a ReadPermission.
|
int |
hashCode()
Returns the hash code value for this object.
|
boolean |
implies(Permission p)
Checks if this ReadPermission object "implies" the specified
permission.
|
checkGuard, getName, newPermissionCollection, toStringpublic ReadPermission(Locator locator)
locator - The locator. Null indicates permission for all locators.public ReadPermission(String locator, String actions)
ReadPermission object for a locator
with the given external form. The actions string
is currently unused and should be null. This
constructor exists for use by the Policy object to
instantiate new Permission objects.locator - The external form of the locator. The string
"*" indicates all locators.actions - Should be null.public boolean implies(Permission p)
More specificially, this method returns true if:
implies in class Permissionp - The permission to check against.true if the specified permission is
implied by this object, false if not.public boolean equals(Object other)
equals in class Permissionother - the object we are testing for equality with this
object.true if other is of
type ReadPermission and has the same locator as
this ReadPermission object.public int hashCode()
hashCode in class Permissionpublic String getActions()
getActions in class PermissionCopyright © 2012 code4tv.com. All Rights Reserved.