1 22 package org.jboss.metadata.web; 23 24 import java.util.HashSet ; 25 import java.util.Set ; 26 27 import org.jboss.logging.Logger; 28 29 36 public class AuthConstraint 37 { 38 private static final Logger log = Logger.getLogger(AuthConstraint.class); 39 40 private Set <String > roleNames = new HashSet <String >(); 41 42 public Set <String > getRoleNames() 43 { 44 return roleNames; 45 } 46 public void setRoleNames(Set <String > roleNames) 47 { 48 this.roleNames = roleNames; 49 } 50 public boolean addRoleName(String name) 51 { 52 return roleNames.add(name); 53 } 54 55 public String toString() 56 { 57 StringBuffer sb = new StringBuffer (100); 58 return sb.toString(); 59 } 60 } 61 | Popular Tags |