|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.security.Permission
org.apache.jetspeed.security.PortalResourcePermission
Generalized Portlet Resoure permission.
This code was partially inspired from articles from:
Field Summary | |
protected int |
mask
Mask used for determining what action to perform. |
protected Subject |
subject
The subject the permission is being performed against. |
Fields inherited from class java.security.Permission |
|
Constructor Summary | |
PortalResourcePermission(String name,
String actions,
Subject subject)
Constructor for PortletPermission. |
Method Summary | |
boolean |
equals(Object object)
|
String |
getActions()
|
Subject |
getSubject()
Gets the subject. |
int |
hashCode()
|
boolean |
implies(Permission permission)
|
private void |
parseActions(String actions)
Parses the actions string. |
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 |
Field Detail |
protected int mask
Mask used for determining what action to perform.
protected Subject subject
The subject the permission is being performed against.
Constructor Detail |
public PortalResourcePermission(String name, String actions, Subject subject)
Constructor for PortletPermission.
name
- The portlet name.actions
- The actions on the portlet.Method Detail |
public int hashCode()
Permission.hashCode()
public boolean equals(Object object)
Permission.equals(Object)
public String getActions()
Permission.getActions()
public boolean implies(Permission permission)
private void parseActions(String actions)
Parses the actions string.
Actions are separated by commas or white space.
actions
- The actionspublic Subject getSubject()
Gets the subject.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |