1 7 8 package projectmanagement.presentation.projects; 9 10 import projectmanagement.presentation.*; 11 12 import org.w3c.dom.*; 13 import org.w3c.dom.html.*; 14 15 import com.lutris.appserver.server.httpPresentation.*; 17 import org.enhydra.xml.xmlc.XMLObject; 18 19 import java.io.IOException ; 21 22 25 public class Context extends BasePO { 26 27 private static String CUSTOMER= "customer"; 28 private static String DISPLAY_ADMIN= "displayAdmin"; 29 30 33 protected int getRequiredAuthLevel() { 34 return 2; 35 } 36 37 40 public XMLObject handleDefault() throws HttpPresentationException { 41 42 ContextHTML page=new ContextHTML(); 43 String customerID=this.getComms().request.getParameter(CUSTOMER); 44 String displayAdmin=this.getComms().request.getParameter(DISPLAY_ADMIN); 45 if (customerID!=null) { 46 page.getElementFrameControl().setSrc("Controls.po?"+CUSTOMER+"="+customerID); 47 } 48 if (displayAdmin!=null && displayAdmin.equalsIgnoreCase("true")) { 49 page.getElementFrameAdministering().setSrc("Administering.po?"+CUSTOMER+"="+customerID); 50 } 51 52 return page; 53 } 54 55 } 56 | Popular Tags |