|
||||||||||
| 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
org.apache.jetspeed.security.FolderPermission
public class FolderPermission
Folder permission.
This code was partially inspired from:
| Field Summary | |
|---|---|
static char |
FOLDER_SEPARATOR
|
static java.lang.String |
FOLDER_SEPARATOR_STR
|
static char |
RECURSIVE_CHAR
|
static char |
WILD_CHAR
|
static java.lang.String |
WILD_CHAR_STR
|
| Fields inherited from class org.apache.jetspeed.security.PortalResourcePermission |
|---|
mask |
| Constructor Summary | |
|---|---|
FolderPermission(java.lang.String name,
int mask)
Constructor for FolderPermission. |
|
FolderPermission(java.lang.String name,
java.lang.String actions)
Constructor for FolderPermission. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Checks two FolderPermission objects for equality. |
int |
hashCode()
Returns the hash code value for this object. |
boolean |
implies(java.security.Permission p)
Checks if this FolderPermission object "implies" the specified permission. |
| Methods inherited from class org.apache.jetspeed.security.PortalResourcePermission |
|---|
getActions, newPermissionCollection, parseActions |
| Methods inherited from class java.security.Permission |
|---|
checkGuard, getName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final char RECURSIVE_CHAR
public static final char WILD_CHAR
public static final java.lang.String WILD_CHAR_STR
public static final char FOLDER_SEPARATOR
public static final java.lang.String FOLDER_SEPARATOR_STR
| Constructor Detail |
|---|
public FolderPermission(java.lang.String name,
java.lang.String actions)
Constructor for FolderPermission.
name - The portlet name.actions - The actions on the portlet.
public FolderPermission(java.lang.String name,
int mask)
Constructor for FolderPermission.
name - The portlet name.mask - The mask of actions on the portlet.| Method Detail |
|---|
public boolean implies(java.security.Permission p)
implies in class PortalResourcePermissionp - the permission to check against.
public boolean equals(java.lang.Object obj)
equals in class java.security.Permissionobj - the object we are testing for equality with this object.
public int hashCode()
hashCode in class PortalResourcePermissionPermission.hashCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||