1 16 package org.apache.cocoon.portal.pluto.om.common; 17 18 import java.util.Collection ; 19 import java.util.Locale ; 20 21 import org.apache.pluto.om.common.Description; 22 import org.apache.pluto.om.common.DescriptionSet; 23 import org.apache.pluto.om.common.SecurityRoleRef; 24 25 32 public class SecurityRoleRefImpl implements SecurityRoleRef, java.io.Serializable 33 { 34 35 private String roleName; 36 private String roleLink; 37 private DescriptionSet descriptions; 38 39 public SecurityRoleRefImpl() { 40 descriptions = new DescriptionSetImpl(); 41 } 42 43 45 public String getRoleName() { 46 return roleName; 47 } 48 49 public String getRoleLink() { 50 return roleLink; 51 } 52 53 56 public Description getDescription(Locale locale) { 57 return descriptions.get(locale); 58 } 59 60 61 public void setRoleName(String roleName) { 62 this.roleName = roleName; 63 } 64 65 67 public void setRoleLink(String roleLink) { 68 this.roleLink = roleLink; 69 } 70 71 public DescriptionSet getDescriptionSet() { 72 return descriptions; 73 } 74 75 public void setDescriptionSet(DescriptionSet descriptions) { 76 this.descriptions = descriptions; 77 } 78 79 public Collection getCastorDescriptions() { 80 return(DescriptionSetImpl)descriptions; 81 } 82 83 public void setCastorDescriptions(DescriptionSet castorDescriptions) { 84 this.descriptions = castorDescriptions; 85 } 86 87 88 } 89 | Popular Tags |