1 package org.apache.turbine.modules; 2 3 56 57 import org.apache.turbine.RunData; 58 59 73 public abstract class SecureModule 74 extends Module 75 { 76 83 protected void doBuildTemplate( RunData data ) 84 throws Exception  85 { 86 if (isAuthorized(data)) 87 { 88 doBuildTemplate(data, getTemplateContext(data)); 89 } 90 } 91 92 101 protected abstract boolean isAuthorized(RunData data) 102 throws Exception ; 103 } 104 | Popular Tags |