|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.security.Permission org.apache.jetspeed.security.PortalResourcePermission
public abstract class PortalResourcePermission
Generalized Portlet Resoure permission.
This code was partially inspired from articles from:
Field Summary | |
---|---|
protected int |
mask
Mask used for determining what actions are allowed or requested. |
Constructor Summary | |
---|---|
PortalResourcePermission(String name,
int mask)
Constructor for PortletPermission. |
|
PortalResourcePermission(String name,
String actions)
Constructor for PortletPermission. |
Method Summary | |
---|---|
String |
getActions()
|
int |
hashCode()
|
boolean |
implies(Permission permission)
|
PermissionCollection |
newPermissionCollection()
Overrides Permission.newPermissionCollection() . |
static int |
parseActions(String actions)
Parses the actions string. |
Methods inherited from class java.security.Permission |
---|
checkGuard, equals, getName, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final int mask
Mask used for determining what actions are allowed or requested.
Constructor Detail |
---|
public PortalResourcePermission(String name, String actions)
Constructor for PortletPermission.
name
- The portlet name.actions
- The actions on the portlet.public PortalResourcePermission(String name, int mask)
Constructor for PortletPermission.
name
- The portlet name.mask
- The mask representing actions on the portlet.Method Detail |
---|
public int hashCode()
hashCode
in class Permission
Permission.hashCode()
public String getActions()
getActions
in class Permission
Permission.getActions()
public boolean implies(Permission permission)
implies
in class Permission
public static int parseActions(String actions)
Parses the actions string.
Actions are separated by commas or white space.
actions
- The actionspublic PermissionCollection newPermissionCollection()
Overrides Permission.newPermissionCollection()
.
newPermissionCollection
in class Permission
Permission.newPermissionCollection()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |