1 16 package org.apache.cocoon.portal.pluto.om.common; 17 18 import org.apache.pluto.om.common.SecurityRole; 19 import org.apache.pluto.util.StringUtils; 20 21 28 public class SecurityRoleImpl implements SecurityRole, java.io.Serializable { 29 30 private String description; 31 private String roleName; 32 33 public SecurityRoleImpl() { 34 } 36 37 39 public String getDescription() { 40 return description; 41 } 42 43 public String getRoleName() { 44 return roleName; 45 } 46 47 49 public void setDescription(String description) { 50 this.description = description; 51 } 52 53 public void setRoleName(String roleName) { 54 this.roleName = roleName; 55 } 56 57 public String toString() { 58 return toString(0); 59 } 60 61 public String toString(int indent) { 62 StringBuffer buffer = new StringBuffer (50); 63 StringUtils.newLine(buffer,indent); 64 buffer.append(getClass().toString()); 65 buffer.append(": role-name='"); 66 buffer.append(roleName); 67 buffer.append("', description='"); 68 buffer.append(description); 69 buffer.append("'"); 70 return buffer.toString(); 71 } 72 73 } 74 | Popular Tags |