abstractpublic class BasePO implements HttpPresentation(Code)
This is the parent Presentaion object. All presentation objects
should extend this class.
The run method looks for an event parameter and then calls
handle. If the "event" Parameter is not defined then
the handleDefault() method is called in your child class.
loggedInUserRequired() This method should be implemented in the subclass so that it returns
true if this particular request requires the user to be logged
in, otherwise false.
If an event parameter is defined then this invokes the method that
handles that event.
Parameters: event - the incoming event name exception: Exception -
This is the procedure that is called if there is no "event"
HTTP parameter found. It must be overriden by the subclass to
do default processing or error checking/handling.
String The String representation of the HTML or (other format)of the document to be displayed. This method would need to be changedif you wanted to return binary data as well. It returns a Stringfor simplicity right now.
Method to get or create the AgSessionData object from the user session
This object is saved in the EbrokerPresentation object
Parameters: comms - HttpPresentationComms exception: Exception -
This method should be implemented in the subclass so that it returns
true if this particular request requires the user to be logged
in, otherwise false.
Sets the user into the session
Parameters: thePerson - the person to be set in the session exception: DiscRackPresentationException -
writeDebugMsg
public static void writeDebugMsg(String msg)(Code)
Method to write a debugging message to the debug log
channel when the DEBUG flag is turned on
Parameters: msg - The message to write to the DEBUG log channel