|
Java DTV API 1.3 18-Nov-2009 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.security.Permission
com.sun.dtv.application.AppManagerPermission
public class AppManagerPermission
AppManagerPermission is needed to query or control applications. To query the available applications the "read" action is required. To manage the lifecycle of another application the "manage" action is required. To fetch new applications the "fetch" action is required.
Constructor Summary | |
---|---|
AppManagerPermission(String name,
String actions)
Construct a new AppManagerPermission with the requested resource and actions. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Checks two AppManagerPermission objects for equality. |
String |
getActions()
Returns the "canonical string representation" of the actions. |
int |
hashCode()
Returns the hash code value for this object. |
boolean |
implies(Permission p)
Checks if this AppManagerPermission object "implies" the specified permission. |
Methods inherited from class java.security.Permission |
---|
checkGuard, getName, newPermissionCollection, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AppManagerPermission(String name, String actions)
appId
of
the application to be managed. It may be "*" to allow access
to all applications.
name
- the name of the application to allow access to or
"*" to allow access to all applications.actions
- contains a comma-separated list of the desired actions
granted. Possible actions are "read", "fetch", and "manage".Method Detail |
---|
public String getActions()
getActions
in class Permission
public boolean equals(Object obj)
equals
in class Permission
obj
- the object to be tested for equality with this object.
true
if obj is a AppManagerPermission and has
the same name and actions as this AppManagerPermission object.public int hashCode()
getName().hashCode() + getActions.hashCode()
,
where getName is from the Permission superclass and getActions is
in this class.
hashCode
in class Permission
public boolean implies(Permission p)
implies
in class Permission
p
- the Permission to check.
true
iff this permission implies Permission p.
|
Java DTV API 1.3 18-Nov-2009 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |