com.metamatrix.platform.admin.api
Interface PermissionDataNodeTreeView

All Superinterfaces:
PermissionTreeView
All Known Implementing Classes:
PermissionDataNodeTreeViewImpl

public interface PermissionDataNodeTreeView
extends PermissionTreeView

Provides a view into the tree of PermissionDataNodes and supports utility methods that perform funcions on the tree as a whole.

A property can be set (or toggled) to determine if clients want methods to return nodes marked hidden. See PermissionTreeView.setShowHidden(boolean).


Method Summary
 boolean allDescendantsShareActions(PermissionNode startingPoint)
          Determine whether all descendants of the given node share the exact same actions as the given node.
 void hideAllSystemNodes()
          Hide all nodes whose resource name starts with "System".
 java.util.Collection setPermissions(java.util.Collection permissions)
          Set the permissions on the node containing each permission's resource.
 
Methods inherited from interface com.metamatrix.platform.admin.api.PermissionTreeView
breadthFirstIterator, breadthFirstIterator, getChildren, getDescendants, getMarked, getMarkedDescendants, getModified, getModifiedBreadthFirst, getModifiedDescendants, getParent, getRoot, getRoots, getUnModifiedDescendants, isDescendantOf, iterator, iterator, resetTree, setBranchHidden, setMarked, setShowHidden
 

Method Detail

hideAllSystemNodes

void hideAllSystemNodes()
Hide all nodes whose resource name starts with "System".


allDescendantsShareActions

boolean allDescendantsShareActions(PermissionNode startingPoint)
Determine whether all descendants of the given node share the exact same actions as the given node. This determination is independant of the state of showHidden.

Parameters:
startingPoint - The root of the subtree to check.

setPermissions

java.util.Collection setPermissions(java.util.Collection permissions)
Set the permissions on the node containing each permission's resource.

Returns:
The Collection of DataNodeExceptionss each containing a resource name that was not found in the tree.


Copyright © 2009. All Rights Reserved.