com.metamatrix.platform.admin.api
Interface PermissionDataNode

All Superinterfaces:
java.lang.Comparable, PermissionNode, PropertiedObject, TreeNode
All Known Implementing Classes:
PermissionDataNodeImpl

public interface PermissionDataNode
extends PermissionNode

Defines an interface to tree node for displaying entitlements.


Method Summary
 int getDataNodeType()
          Get the type of this PermissionDataNode.
 boolean isDescendantEnabled()
          Are there any entitled nodes below this point in the tree?
 boolean isDescendantEnabledFor(AuthorizationActions actions)
          Does this node have any descendants enabled for the given AuthorizationActions?
 boolean isGroupNode()
           
 boolean isPhysical()
          Does this node belong to a physical model?
 java.lang.String printDebug()
          Return stringafied representation of the object suitable for debugging.
 
Methods inherited from interface com.metamatrix.platform.admin.api.PermissionNode
actionsAreEqual, actionsAreEqual, actionsAreEqual, getActionLabels, getActions, getAllowedActions, getDisplayName, getResourceName, getUUID, hasPermission, isHidden, isLeafNode, setActions, setActions, setHidden
 
Methods inherited from interface com.metamatrix.common.tree.TreeNode
compareTo, equals, exists, getFullName, getName, getNamespace, getSeparator, getSeparatorChar, getType, isModified, toString
 

Method Detail

isPhysical

boolean isPhysical()
Does this node belong to a physical model?

Returns:
true if this node is part of a physical model.

getDataNodeType

int getDataNodeType()
Get the type of this PermissionDataNode.
This method returns the int type of this node which coresponds to PermissionDataNodeDefinition.TYPE.

Returns:
The type of this PermisionDataNode.

isDescendantEnabled

boolean isDescendantEnabled()
Are there any entitled nodes below this point in the tree?

Returns:
True, if a decendant is entitled with any AuthorizationActions, False otherwise.

isDescendantEnabledFor

boolean isDescendantEnabledFor(AuthorizationActions actions)
Does this node have any descendants enabled for the given AuthorizationActions?

Parameters:
actions - The actions of interest.
Returns:
True, if a decendant of this node is entitled with the given actions, False otherwise.

isGroupNode

boolean isGroupNode()

printDebug

java.lang.String printDebug()
Return stringafied representation of the object suitable for debugging.



Copyright © 2009. All Rights Reserved.