org.enhydra.barracuda.contrib.sam.data
Class DataObjectHandler
java.lang.Object
org.enhydra.barracuda.core.event.DefaultBaseEventListener
org.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static org.apache.log4j.Logger logger
config
protected Config config
DataObjectHandler
public DataObjectHandler()
getConfig
public abstract Config getConfig()
- Specified by:
getConfig
in interface GetConfig
handleControlEvent
public void handleControlEvent(ControlEventContext context)
throws EventException,
javax.servlet.ServletException,
IOException
- 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
- Overrides:
handleControlEvent
in class DefaultBaseEventListener
- Parameters:
context
- the ControlEventContext
- Throws:
EventException
IOException
javax.servlet.ServletException
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.