01: /*
02: * Copyright (c) 1999-2001 Lutris Technologies, Inc. All Rights
03: * Reserved.
04: *
05: * This source code file is distributed by Lutris Technologies, Inc. for
06: * use only by licensed users of product(s) that include this source
07: * file. Use of this source file or the software that uses it is covered
08: * by the terms and conditions of the Lutris Enhydra Development License
09: * Agreement included with this product.
10: *
11: * This Software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF
12: * ANY KIND, either express or implied. See the License for the specific terms
13: * governing rights and limitations under the License.
14: *
15: * Contributor(s):
16: *
17: * $Id: help.java,v 1.1 2006-09-11 12:29:26 sinisa Exp $
18: */
19:
20: package com.lutris.airsent.presentation;
21:
22: import com.lutris.appserver.server.httpPresentation.*;
23: import com.lutris.appserver.server.session.*;
24: import com.lutris.util.*;
25: import org.enhydra.xml.xmlc.XMLObject;
26: import org.w3c.dom.*;
27: import org.w3c.dom.html.*;
28: import java.util.Date;
29: import com.lutris.airsent.presentation.BasePO;
30:
31: /**
32: * Login.java handles the login functionality of the DiscRack app.
33: *
34: * @author
35: * @version
36: */
37: public class help extends BasePO {
38:
39: /**
40: * Constants
41: */
42: private static final int AUTH_LEVEL = AirSentConstants.UNAUTH_USER;
43:
44: /**
45: * Superclass method override.
46: * returns the authorization level necessary to access this po.
47: *
48: * @return int required authorization level
49: */
50: public int getRequiredAuthLevel() {
51: return AUTH_LEVEL;
52: }
53:
54: /**
55: * Default event. Just show the page.
56: */
57: public XMLObject handleDefault() throws HttpPresentationException {
58: return showPage(null);
59: }
60:
61: /**
62: * handle throw exception event.
63: *
64: * @return html document
65: * @exception Exception
66: */
67: public XMLObject handleThrowException() throws Exception {
68: throw new Exception(
69: "This is a test exception thrown from Login.java handleThrowException()");
70: }
71:
72: /**
73: * display page
74: *
75: * @param errorMsg, the error messages
76: * @return html document
77: */
78: public XMLObject showPage(String errorMsg)
79: throws AirSentPresentationException {
80: helpHTML page = (helpHTML) getComms().xmlcFactory
81: .create(helpHTML.class);
82:
83: return page;
84: }
85:
86: }
|