olr.presentation
Class Welcome2

java.lang.Object
  extended byolr.presentation.ExtendedHttpPresentation
      extended byolr.presentation.SecureHttpPresentation
          extended byolr.presentation.Welcome2
All Implemented Interfaces:
com.lutris.appserver.server.httpPresentation.HttpPresentation

public class Welcome2
extends SecureHttpPresentation

Version:
$Id: Welcome2.java,v 1.17 2004/08/03 12:27:16 roku Exp $

Constructor Summary
Welcome2()
          Initializes an instance of this class.
 
Method Summary
 java.lang.String handleAdmin()
          Displays the OLR adminstration main page.
 java.lang.String handleAuthor()
          Handles the Admin event.
 java.lang.String handleDefault()
          Called upon page request.
 java.lang.String handleReader()
          Displays the start page for readers.
 java.lang.String handleStart()
           
 java.lang.String showPage()
           
 java.lang.String showPage(boolean author)
          Shows this page in athor mode without any error message.
 java.lang.String showPage(java.lang.String errorMsg)
          Shows this page in reader mode.
 java.lang.String showPage(java.lang.String errorMsg, boolean author)
           
 
Methods inherited from class olr.presentation.SecureHttpPresentation
loggedInUserRequired
 
Methods inherited from class olr.presentation.ExtendedHttpPresentation
checkForUserLogin, clearSession, getApplication, getComms, getPageContentForEvent, getSessionData, getUser, handleEvent, initSessionData, run, setUser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Welcome2

public Welcome2()
Initializes an instance of this class.

Method Detail

handleDefault

public java.lang.String handleDefault()
                               throws com.lutris.appserver.server.httpPresentation.HttpPresentationException
Description copied from class: ExtendedHttpPresentation
Called upon page request.

Specified by:
handleDefault in class ExtendedHttpPresentation
Returns:
Should return a string of (X)HTML
Throws:
com.lutris.appserver.server.httpPresentation.HttpPresentationException
See Also:
ExtendedHttpPresentation.handleDefault()

handleAuthor

public java.lang.String handleAuthor()
                              throws com.lutris.appserver.server.httpPresentation.HttpPresentationException
Handles the Admin event.

Returns:
(X)HTML of the Admin screen.
Throws:
com.lutris.appserver.server.httpPresentation.HttpPresentationException

handleAdmin

public java.lang.String handleAdmin()
                             throws com.lutris.appserver.server.httpPresentation.HttpPresentationException
Displays the OLR adminstration main page.

Returns:
Throws:
com.lutris.appserver.server.httpPresentation.HttpPresentationException

handleReader

public java.lang.String handleReader()
                              throws com.lutris.appserver.server.httpPresentation.HttpPresentationException
Displays the start page for readers.

Returns:
Throws:
com.lutris.appserver.server.httpPresentation.HttpPresentationException

handleStart

public java.lang.String handleStart()
                             throws com.lutris.appserver.server.httpPresentation.HttpPresentationException
Throws:
com.lutris.appserver.server.httpPresentation.HttpPresentationException

showPage

public java.lang.String showPage()
Returns:
showPage(null)
See Also:
showPage(String)

showPage

public java.lang.String showPage(java.lang.String errorMsg)
Shows this page in reader mode. An optional error message is diplayed.

Parameters:
errorMsg - Optional error message to display.
Returns:

showPage

public java.lang.String showPage(boolean author)
Shows this page in athor mode without any error message.

Parameters:
author -
Returns:
See Also:
showPage(String, boolean)

showPage

public java.lang.String showPage(java.lang.String errorMsg,
                                 boolean author)
Parameters:
errorMsg - An optional error message to dispaly. May be null.
author - Weahter the current user is an author or not.
Returns:


Copyright © 2001-2004 University of Hannover. All Rights Reserved.