1 23 24 package org.infoglue.deliver.taglib.structure; 25 26 import javax.servlet.jsp.JspException ; 27 28 import org.infoglue.deliver.taglib.component.ComponentLogicTag; 29 30 public class HasPageAccessTag extends ComponentLogicTag 31 { 32 private static final long serialVersionUID = 4050206323348354355L; 33 34 private Integer siteNodeId; 35 private String interceptionPointName = "SiteNodeVersion.Read"; 36 37 public HasPageAccessTag() 38 { 39 super(); 40 } 41 42 public int doEndTag() throws JspException 43 { 44 setResultAttribute(new Boolean (this.getController().getHasUserPageAccess(siteNodeId, interceptionPointName))); 45 return EVAL_PAGE; 46 } 47 48 public void setSiteNodeId(String siteNodeId) throws JspException 49 { 50 this.siteNodeId = evaluateInteger("HasPageAccessTag", "siteNodeId", siteNodeId); 51 } 52 53 public void setInterceptionPointName(String interceptionPointName) throws JspException 54 { 55 this.interceptionPointName = evaluateString("HasPageAccessTag", "interceptionPointName", interceptionPointName); 56 } 57 58 } 59 | Popular Tags |