|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jetspeed.portlets.security.SecurityApplicationUtils
Utility class for the security application.
Field Summary | |
private static org.apache.commons.logging.Log |
log
The logger. |
private static String |
PATH_DELIMITER
Node path delimiter. |
Constructor Summary | |
SecurityApplicationUtils()
|
Method Summary | |
static org.apache.myfaces.custom.tree.model.DefaultTreeModel |
buildRoleTreeModel()
Build the role tree model. |
private static org.apache.myfaces.custom.tree.model.DefaultTreeModel |
buildTreeModel(String prefsRoot)
Build the tree model. |
static org.apache.myfaces.custom.tree.DefaultMutableTreeNode |
findTreeNode(RoleTreeTable treeModel,
String nodePath)
Finds a tree node in the tree model given the nodePath of the node to find. |
protected static org.apache.myfaces.custom.tree.DefaultMutableTreeNode |
findTreeNodeAtDepth(String nodePath,
Iterator children)
Finds the current child matching the sub node path where the node path is the path matching the level of the children. |
protected static String |
getNodePathAtDepth(String nodePath,
int depth)
Gets a subset of the node path at the given depth. |
protected static int |
getNodePathDepth(String nodePath)
The depth represented in the node path. |
private static void |
processPreferences(Preferences prefs,
org.apache.myfaces.custom.tree.DefaultMutableTreeNode parent)
Recursively processes the preferences to build the role tree model. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final org.apache.commons.logging.Log log
private static final String PATH_DELIMITER
Constructor Detail |
public SecurityApplicationUtils()
Method Detail |
public static org.apache.myfaces.custom.tree.model.DefaultTreeModel buildRoleTreeModel()
Build the role tree model.
private static org.apache.myfaces.custom.tree.model.DefaultTreeModel buildTreeModel(String prefsRoot)
Build the tree model.
private static void processPreferences(Preferences prefs, org.apache.myfaces.custom.tree.DefaultMutableTreeNode parent)
Recursively processes the preferences to build the role tree model.
prefs
- The preferences.parent
- The parent to add the role item to.public static org.apache.myfaces.custom.tree.DefaultMutableTreeNode findTreeNode(RoleTreeTable treeModel, String nodePath)
Finds a tree node in the tree model given the nodePath of the node to find.
treeModel
- The tree model.nodePath
- The path of the node to find.
DefaultMutableTreeNode
.protected static org.apache.myfaces.custom.tree.DefaultMutableTreeNode findTreeNodeAtDepth(String nodePath, Iterator children)
Finds the current child matching the sub node path where the node path is the path matching the level of the children.
nodePath
- The node path to find the child at.children
- The children at the given level.
protected static String getNodePathAtDepth(String nodePath, int depth)
Gets a subset of the node path at the given depth.
nodePath
- The node path.depth
- The depth where depth starts at 0;
protected static int getNodePathDepth(String nodePath)
The depth represented in the node path.
nodePath
- The node path.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |