org.enhydra.barracuda.contrib.sam.data
Class DataObjectHandler

java.lang.Object
  extended byorg.enhydra.barracuda.core.event.DefaultBaseEventListener
      extended byorg.enhydra.barracuda.contrib.sam.data.DataObjectHandler
All Implemented Interfaces:
BaseEventListener, EventListener, GetConfig

public abstract class DataObjectHandler
extends DefaultBaseEventListener
implements GetConfig

Base class for other DataHandlers. DataObjectHandler instatiates the XML form map specified by it's Config. If the form is already visited, validation is performed.


Field Summary
protected  Config config
           
protected static org.apache.log4j.Logger logger
           
 
Fields inherited from class org.enhydra.barracuda.core.event.DefaultBaseEventListener
idStr, localLogger
 
Constructor Summary
DataObjectHandler()
           
 
Method Summary
protected  void controlEventHookAfterXmlFormMap(ControlEventContext context, DataObject dataObj)
          hook funtion to be overridden in subclasses, empty implementation.
protected  void controlEventHookBeforeXmlFormMap(ControlEventContext context, DataObject dataObj)
          hook funtion to be overridden in subclasses, empty implementation.
abstract  Config getConfig()
           
 void handleControlEvent(ControlEventContext context)
           get a DataObject based on the OID parameter given in the request instatiate a XMLFormMap based on a XML file given in the Config if the form is already visited, try to perform validation if validation fails, create a ErrorModel continue processing by calling the Config's ViewEvent
 
Methods inherited from class org.enhydra.barracuda.core.event.DefaultBaseEventListener
getListenerID, handleEvent, handleOtherEvent, handleViewEvent, isHandled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static org.apache.log4j.Logger logger

config

protected Config config
Constructor Detail

DataObjectHandler

public DataObjectHandler()
Method Detail

getConfig

public abstract Config getConfig()
Specified by:
getConfig in interface GetConfig

handleControlEvent

public void handleControlEvent(ControlEventContext context)
                        throws EventException,
                               javax.servlet.ServletException,
                               IOException

controlEventHookBeforeXmlFormMap

protected void controlEventHookBeforeXmlFormMap(ControlEventContext context,
                                                DataObject dataObj)
hook funtion to be overridden in subclasses, empty implementation. It is called before the XMLFormMap is instantiated


controlEventHookAfterXmlFormMap

protected void controlEventHookAfterXmlFormMap(ControlEventContext context,
                                               DataObject dataObj)
hook funtion to be overridden in subclasses, empty implementation. It is called after the XMLFormMap is instantiated and validated



Copyright © 2003 BarracudaMVC.org All Rights Reserved.