1 23 24 package org.infoglue.cms.entities.management.impl.simple; 25 26 import java.util.ArrayList ; 27 28 import org.infoglue.cms.entities.kernel.BaseEntityVO; 29 import org.infoglue.cms.entities.management.Role; 30 import org.infoglue.cms.entities.management.RoleVO; 31 import org.infoglue.cms.exception.ConstraintException; 32 33 public class RoleImpl implements Role 34 { 35 private RoleVO valueObject = new RoleVO(); 36 private java.util.Collection systemUsers = new ArrayList (); 37 38 public Integer getId() 39 { 40 return null; 41 } 42 43 public Object getIdAsObject() 44 { 45 return getRoleName(); 46 } 47 48 public String toString() 49 { 50 return this.valueObject.toString(); 51 } 52 53 public RoleVO getValueObject() 54 { 55 return this.valueObject; 56 } 57 58 public void setValueObject(RoleVO valueObject) 59 { 60 this.valueObject = valueObject; 61 } 62 65 public BaseEntityVO getVO() 66 { 67 return (BaseEntityVO) getValueObject(); 68 } 69 72 public void setVO(BaseEntityVO valueObject) 73 { 74 setValueObject((RoleVO) valueObject); 75 } 76 77 public java.lang.String getRoleName() 78 { 79 return this.valueObject.getRoleName(); 80 } 81 82 public void setRoleName(java.lang.String roleName) throws ConstraintException 83 { 84 this.valueObject.setRoleName(roleName); 85 } 86 87 public String getDescription() 88 { 89 return this.valueObject.getDescription(); 90 } 91 92 public void setDescription(String description) throws ConstraintException 93 { 94 this.valueObject.setDescription(description); 95 } 96 97 public java.util.Collection getSystemUsers() 98 { 99 return this.systemUsers; 100 } 101 102 public void setSystemUsers (java.util.Collection systemUsers) 103 { 104 this.systemUsers = systemUsers; 105 } 106 107 } 108 | Popular Tags |