1 7 package org.jboss.ejb3.dd; 8 9 import java.util.ArrayList ; 10 import java.util.List ; 11 12 import org.jboss.logging.Logger; 13 14 21 public class MethodPermission 22 { 23 private static final Logger log = Logger.getLogger(MethodPermission.class); 24 25 private List roleNames = new ArrayList (); 26 private boolean isUnchecked = false; 27 private List <Method> methods = new ArrayList (); 28 29 public boolean isUnchecked() 30 { 31 return isUnchecked; 32 } 33 34 public void setUnchecked(boolean isUnchecked) 35 { 36 this.isUnchecked = isUnchecked; 37 } 38 39 public List getRoleNames() 40 { 41 return roleNames; 42 } 43 44 public void addRoleName(String roleName) 45 { 46 roleNames.add(roleName); 47 } 48 49 public List <Method> getMethods() 50 { 51 return methods; 52 } 53 54 public void addMethod(Method method) 55 { 56 methods.add(method); 57 } 58 59 public String toString() 60 { 61 StringBuffer sb = new StringBuffer (100); 62 sb.append("["); 63 sb.append("roleNames=").append(roleNames); 64 sb.append("]"); 65 return sb.toString(); 66 } 67 } 68 | Popular Tags |