1 25 26 package org.objectweb.easybeans.container.info.security; 27 28 import java.security.Permission ; 29 import java.util.ArrayList ; 30 import java.util.List ; 31 32 import org.objectweb.easybeans.api.bean.info.IMethodSecurityInfo; 33 34 38 public class MethodSecurityInfo implements IMethodSecurityInfo { 39 40 43 private boolean excluded = false; 44 45 48 private boolean unchecked = false; 49 50 53 private List <String > roles = null; 54 55 58 private Permission permission; 59 60 63 public MethodSecurityInfo() { 64 this.roles = new ArrayList <String >(); 65 } 66 67 68 72 public void setExcluded(final boolean excluded) { 73 this.excluded = excluded; 74 } 75 76 79 public boolean isExcluded() { 80 return excluded; 81 } 82 83 87 public void setUnchecked(final boolean unchecked) { 88 this.unchecked = unchecked; 89 } 90 91 94 public boolean isUnchecked() { 95 return unchecked; 96 } 97 98 102 public void addRole(final String roleName) { 103 this.roles.add(roleName); 104 } 105 106 109 public List <String > getRoles() { 110 return roles; 111 } 112 113 117 public void setPermission(final Permission permission) { 118 this.permission = permission; 119 } 120 121 124 public Permission getPermission() { 125 return permission; 126 } 127 128 } 129 | Popular Tags |