1 22 package org.jboss.metadata; 23 24 import java.util.HashSet ; 25 import java.util.Set ; 26 27 37 public class SecurityRoleMetaData extends MetaData 38 { 39 private String description; 40 private String roleName; 41 private Set <String > principals; 42 43 public SecurityRoleMetaData() 44 { 45 this(null); 46 } 47 public SecurityRoleMetaData(String roleName) 48 { 49 this.roleName = roleName; 50 this.principals = new HashSet <String >(); 51 } 52 53 public String getDescription() 54 { 55 return description; 56 } 57 public void setDescription(String description) 58 { 59 this.description = description; 60 } 61 public void addPrincipalName(String principalName) 62 { 63 principals.add(principalName); 64 } 65 66 public void addPrincipalNames(Set <String > principalNames) 67 { 68 principals.addAll(principalNames); 69 } 70 71 public String getRoleName() 72 { 73 return roleName; 74 } 75 public void setRoleName(String roleName) 76 { 77 this.roleName = roleName; 78 } 79 80 public Set <String > getPrincipals() 81 { 82 return principals; 83 } 84 } 85 | Popular Tags |