com.ibm.ram.repository.web
Class RelAssetTree

java.lang.Object
  extended by com.ibm.ram.repository.web.RelAssetTree

public class RelAssetTree
extends java.lang.Object

Root node in the tree of Related assets shown on the asset details page. It's children are RelationshipTreeNodes which are just the relationship type names. Children of a relationship type are the actual assets (see RelatedAssetNode). Children of the AssetTreeNodes are RelationshipTreeNodes... and on and on recursively.

Since:
1.0.0

Constructor Summary
RelAssetTree(java.lang.Object asset, java.lang.Object user)
           
 
Method Summary
 java.lang.String getAssetLinkMap()
           
 RelatedAssetNode[] getChildren()
           
 java.lang.String getName()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelAssetTree

public RelAssetTree(java.lang.Object asset,
                    java.lang.Object user)
Method Detail

getChildren

public RelatedAssetNode[] getChildren()
Returns:
Array of Relationship types for the main asset shown on the asset details page
Since:
1.0.0

getAssetLinkMap

public java.lang.String getAssetLinkMap()
Returns:
JavaScript which defines an array containing the list of URL parameters used for redirecting to another asset. The key in the array is the actual asset name and version which is displayed in the tree. The value is the URL parameter. When the user selects one of the asset tree nodes, a JavaScript method is called which uses this map to lookup the URL parameter to use for redirection. Example: key: value:
Since:
1.0.0

getName

public java.lang.String getName()