com.ibm.ram.repository.web
Class RelatedAssetNode

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

public class RelatedAssetNode
extends java.lang.Object

Tree node for the JSF odc:tree component which encapsulates the actual related asset.

Since:
1.0.0

Constructor Summary
RelatedAssetNode(java.lang.String relationshipType, java.lang.Object parent, java.lang.Object asset, java.lang.Object user)
           
 
Method Summary
 void addChild(RelatedAssetNode child)
           
 RelatedAssetNode[] getChildren()
          Recursively get the related assets for this asset and create tree nodes that are the relationship type names and corresponding related assets that are of that relationship type.
 java.lang.String getId()
           
 java.lang.String getName()
          Show name and version as the tree node name
 java.lang.String getVersion()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelatedAssetNode

public RelatedAssetNode(java.lang.String relationshipType,
                        java.lang.Object parent,
                        java.lang.Object asset,
                        java.lang.Object user)
Method Detail

getChildren

public RelatedAssetNode[] getChildren()
Recursively get the related assets for this asset and create tree nodes that are the relationship type names and corresponding related assets that are of that relationship type.


getId

public java.lang.String getId()

getName

public java.lang.String getName()
Show name and version as the tree node name


getVersion

public java.lang.String getVersion()

addChild

public void addChild(RelatedAssetNode child)