edu.mit.stellar.api.ecm
Interface NodeManager

All Superinterfaces:
NodeFactory

public interface NodeManager
extends NodeFactory

NodeManager Interface to Create, Update, and Delete Nodes in the ECM

Version:
$Revision: 29988 $, $Date: 2008-02-09 22:10:42 -0500 (Sat, 09 Feb 2008) $
Author:
MIT Stellar team

Method Summary
 NodeM createChildNode(NodeM parentNode, java.lang.String atPath)
          Create a node as descendant of specified node at relative path.
 NodeM createNode(java.lang.String path)
          Create a node at absolute path.
 void deleteNode(Node node)
          Delete the specified node.
 NodeM getNodeM(Node node)
          Return a modifiable implementation for the specified node.
 void moveNode(Node node, NodeM toParent)
          Move node within hierarchy.
 void updateNode(NodeM node)
          Persist the modified node.
 
Methods inherited from interface edu.mit.stellar.api.ecm.NodeFactory
getNodeByPath, getNodeByUUID, nodeExistsAtPath, nodeExistsWithUUID
 

Method Detail

createNode

NodeM createNode(java.lang.String path)
                 throws java.lang.Exception
Create a node at absolute path.

Parameters:
path -
Returns:
modifiable Node
Throws:
java.lang.Exception - if error

createChildNode

NodeM createChildNode(NodeM parentNode,
                      java.lang.String atPath)
                      throws java.lang.Exception
Create a node as descendant of specified node at relative path.

Parameters:
parentNode -
atPath -
Returns:
modifiable Node
Throws:
java.lang.Exception - if error

getNodeM

NodeM getNodeM(Node node)
               throws java.lang.Exception
Return a modifiable implementation for the specified node.

Parameters:
node -
Returns:
modifiable Node corresponding to given Node (same UUID and path)
Throws:
java.lang.Exception - if error

updateNode

void updateNode(NodeM node)
                throws java.lang.Exception
Persist the modified node.

Parameters:
node -
Throws:
java.lang.Exception - if error

deleteNode

void deleteNode(Node node)
                throws java.lang.Exception
Delete the specified node.

Parameters:
node -
Throws:
java.lang.Exception - if error

moveNode

void moveNode(Node node,
              NodeM toParent)
              throws java.lang.Exception
Move node within hierarchy.

Parameters:
node -
toParent -
Throws:
java.lang.Exception - if error


Copyright © 2007-2008 MIT IS&T ISDA. All Rights Reserved.