|
||||||||||
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 org.apache.jetspeed.security.FolderPermission
public class FolderPermission
Folder permission.
This code was partially inspired from:
Field Summary | |
---|---|
private String |
cpath
|
private boolean |
folder
|
static char |
FOLDER_SEPARATOR
|
static String |
FOLDER_SEPARATOR_STR
|
private boolean |
recursive
|
static char |
RECURSIVE_CHAR
|
static char |
WILD_CHAR
|
static String |
WILD_CHAR_STR
|
Fields inherited from class org.apache.jetspeed.security.PortalResourcePermission |
---|
mask |
Constructor Summary | |
---|---|
FolderPermission(String name,
int mask)
Constructor for FolderPermission. |
|
FolderPermission(String name,
String actions)
Constructor for FolderPermission. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Checks two FolderPermission objects for equality. |
int |
hashCode()
Returns the hash code value for this object. |
boolean |
implies(Permission p)
Checks if this FolderPermission object "implies" the specified permission. |
(package private) boolean |
impliesIgnoreMask(FolderPermission that)
Checks if the Permission's actions are a proper subset of the this object's actions. |
private void |
parsePath()
Parses the path. |
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 String WILD_CHAR_STR
public static final char FOLDER_SEPARATOR
public static final String FOLDER_SEPARATOR_STR
private boolean folder
private boolean recursive
private String cpath
Constructor Detail |
---|
public FolderPermission(String name, String actions)
Constructor for FolderPermission.
name
- The portlet name.actions
- The actions on the portlet.public FolderPermission(String name, int mask)
Constructor for FolderPermission.
name
- The portlet name.mask
- The mask of actions on the portlet.Method Detail |
---|
private void parsePath()
Parses the path.
public boolean implies(Permission p)
implies
in class PortalResourcePermission
p
- the permission to check against.
boolean impliesIgnoreMask(FolderPermission that)
that
- the FolderPermission to check against.
public boolean equals(Object obj)
equals
in class Permission
obj
- the object we are testing for equality with this object.
public int hashCode()
hashCode
in class PortalResourcePermission
Permission.hashCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |