com.sri.emo.dbobj
Interface INodeHandler


public interface INodeHandler

Special handling for nodes.

Author:
Larry Hamel

Method Summary
 Transition getListTransition(ControllerRequest request)
          Supply list transition suitable for this type of object.
 void init(Node node)
          Add special initialization for this type of object; called after a Node object of this type is added.
 void list(Node samplenode, AbstractDBController action, ControllerRequest request, ControllerResponse response)
          List all nodes of type indicated by samplenode.
 void view(Node node, AbstractDBController defaultaction, ControllerRequest request, ControllerResponse response)
          View the node.
 

Method Detail

init

void init(Node node)
          throws DBException
Add special initialization for this type of object; called after a Node object of this type is added.

Parameters:
node - is a fully constructed node, with ID
Throws:
DBException - upon database related error.

getListTransition

Transition getListTransition(ControllerRequest request)
                             throws DBException
Supply list transition suitable for this type of object.

Parameters:
request - supply current request
Returns:
transition which can be used to list nodes of subclass type
Throws:
DBException - upon database related error.

view

void view(Node node,
          AbstractDBController defaultaction,
          ControllerRequest request,
          ControllerResponse response)
          throws DBException,
                 ControllerException
View the node.

Parameters:
node - The Node we're viewing.
defaultaction - The default action.
request - The ControllerRequest object.
response - The ControllerResponse object.
Throws:
DBException - upon database related error.
ControllerException - upon controller related error.

list

void list(Node samplenode,
          AbstractDBController action,
          ControllerRequest request,
          ControllerResponse response)
          throws DBException,
                 ControllerException
List all nodes of type indicated by samplenode. Handled here to permit customization of listing.

Parameters:
samplenode - has given type, but may NOT have an ID--it is just a sample
action - The action invoking this.
request - The ControllerRequest object.
response - The ControllerResponse object.
Throws:
DBException - upon database related error.
ControllerException - upon controller related error.


Copyright © 2004-2006 Codeguild, Inc.. All Rights Reserved.