| |
|
| java.lang.Object jtaDiscRack.presentation.BasePO
All known Subclasses: jtaDiscRack.presentation.personMgmt.Login, jtaDiscRack.presentation.discMgmt.Edit, jtaDiscRack.presentation.discMgmt.DiscCatalog, jtaDiscRack.presentation.personMgmt.Register,
BasePO | abstract public 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.
|
DISC_CATALOG_PAGE | protected static String DISC_CATALOG_PAGE(Code) | | |
transaction | protected UserTransaction transaction(Code) | | Transaction object reference
|
checkForUserLogin | protected void checkForUserLogin() throws ClientPageRedirectException, JtaDiscRackPresentationException(Code) | | Checks the session data for a User, if not there then redirects to the
login page
|
commitTransaction | protected void commitTransaction() throws Exception(Code) | | Method commits DB transation instance
|
getApplication | public JtaDiscRack getApplication()(Code) | | Returns the application object associated with the current request.
the application object. |
getComms | public HttpPresentationComms getComms()(Code) | | Gets HttpPresentation object
The saved comms objects to whichever subclass needs it |
getPageContentForEvent | public XMLObject getPageContentForEvent(String event) throws Exception(Code) | | If an event parameter is defined then this invokes the method that
handles that event.
Parameters: event - the incoming event name exception: Exception - |
getUserHandle | public String getUserHandle()(Code) | | Gets the user from the session
the person object in the session |
handleDefault | abstract public XMLObject handleDefault() throws HttpPresentationException(Code) | | 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) ofthe document to be displayed. This method would need to bechanged if you wanted to return binary data as well. It returns aString for simplicity right now. |
initTransaction | protected void initTransaction() throws Exception(Code) | | Method initializes DB transation instance
|
loggedInUserRequired | abstract protected boolean loggedInUserRequired()(Code) | | 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.
|
removeUserFromSession | public void removeUserFromSession()(Code) | | Method to remove the current user from the session
|
setUser | public void setUser(Person thePerson) throws JtaDiscRackPresentationException(Code) | | 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 |
|
|
|