01: /*
02: * projectManagement
03: *
04: * Enhydra super-servlet presentation object
05: *
06: */
07:
08: package projectmanagement.presentation.payrates;
09:
10: import projectmanagement.presentation.*;
11:
12: import org.w3c.dom.*;
13: import org.w3c.dom.html.*;
14:
15: // Enhydra SuperServlet imports
16: import com.lutris.appserver.server.httpPresentation.*;
17: import org.enhydra.xml.xmlc.XMLObject;
18:
19: // Standard imports
20: import java.io.IOException;
21:
22: /**
23: * Generates the blank HTML page.
24: */
25: public class Context extends BasePO {
26:
27: private static String DISPLAY_ADMIN = "displayAdmin";
28:
29: /**
30: * Superclass method override. Returns 2.
31: */
32: protected int getRequiredAuthLevel() {
33: return 2;
34: }
35:
36: /**
37: * Default event. Just show the page.
38: */
39: public XMLObject handleDefault() throws HttpPresentationException {
40:
41: ContextHTML page = new ContextHTML();
42: String displayAdmin = this .getComms().request
43: .getParameter(DISPLAY_ADMIN);
44: if (displayAdmin != null
45: && displayAdmin.equalsIgnoreCase("true")) {
46: page.getElementFrameAdministering().setSrc(
47: "Administering.po");
48: }
49:
50: return page;
51: }
52:
53: }
|