1 22 package org.jboss.ejb3.metamodel; 23 24 import java.util.ArrayList ; 25 import java.util.List ; 26 import org.jboss.logging.Logger; 27 28 35 public class MethodPermission 36 { 37 private static final Logger log = Logger.getLogger(MethodPermission.class); 38 39 private List roleNames = new ArrayList (); 40 private boolean isUnchecked = false; 41 private List <Method> methods = new ArrayList (); 42 43 public boolean isUnchecked() 44 { 45 return isUnchecked; 46 } 47 48 public void setUnchecked(boolean isUnchecked) 49 { 50 this.isUnchecked = isUnchecked; 51 } 52 53 public List getRoleNames() 54 { 55 return roleNames; 56 } 57 58 public void addRoleName(String roleName) 59 { 60 roleNames.add(roleName); 61 } 62 63 public List <Method> getMethods() 64 { 65 return methods; 66 } 67 68 public void addMethod(Method method) 69 { 70 methods.add(method); 71 } 72 73 public String toString() 74 { 75 StringBuffer sb = new StringBuffer (100); 76 sb.append("["); 77 sb.append("roleNames=").append(roleNames); 78 sb.append("]"); 79 return sb.toString(); 80 } 81 } 82 | Popular Tags |