1 7 8 package projectmanagement.presentation.worksheets; 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 IS_PERSONAL = "isPersonal"; 28 private static String DISPLAY_ADMIN= "displayAdmin"; 29 private static String EMPLOYEE= "employee"; 30 31 34 protected int getRequiredAuthLevel() { 35 String isPersonal=""; 36 try { 37 isPersonal=this.getComms().request.getParameter(IS_PERSONAL); 38 } catch (Exception ex) {} 39 40 if (isPersonal!=null && isPersonal.equalsIgnoreCase("true")) { 41 return 1; 42 } else { 43 return 2; 44 } 45 } 46 47 50 public XMLObject handleDefault() throws HttpPresentationException { 51 52 ContextHTML page=new ContextHTML(); 53 54 String isPersonal=this.getComms().request.getParameter(IS_PERSONAL); 55 String displayAdmin=this.getComms().request.getParameter(DISPLAY_ADMIN); 56 String employee=this.getComms().request.getParameter(EMPLOYEE); 57 58 if (isPersonal!=null && isPersonal.equalsIgnoreCase("true")) { 59 page.getElementFrameControl().setSrc("Controls.po?isPersonal=true"); 60 } 61 62 return page; 63 } 64 65 } 66 | Popular Tags |