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.SystemUser; 30 import org.infoglue.cms.entities.management.SystemUserVO; 31 import org.infoglue.cms.exception.ConstraintException; 32 33 public class SystemUserImpl implements SystemUser 34 { 35 private java.util.Collection roles = new ArrayList (); 36 private java.util.Collection groups = new ArrayList (); 37 private SystemUserVO valueObject = new SystemUserVO(); 38 39 public SystemUserVO getValueObject() 40 { 41 return this.valueObject; 42 } 43 44 public Object getIdAsObject() 45 { 46 return getUserName(); 47 } 48 49 public Integer getId() 50 { 51 return null; 52 } 53 54 public String toString() 55 { 56 return this.valueObject.toString(); 57 } 58 59 public void setValueObject(SystemUserVO valueObject) 60 { 61 this.valueObject = valueObject; 62 } 63 66 public BaseEntityVO getVO() 67 { 68 return (BaseEntityVO) getValueObject(); 69 } 70 73 public void setVO(BaseEntityVO valueObject) 74 { 75 setValueObject((SystemUserVO) valueObject); 76 } 77 78 public java.lang.String getUserName() 79 { 80 return this.valueObject.getUserName(); 81 } 82 83 public void setUserName(java.lang.String userName) throws ConstraintException 84 { 85 this.valueObject.setUserName(userName); 86 } 87 88 public java.lang.String getPassword() 89 { 90 return this.valueObject.getPassword(); 91 } 92 93 public void setPassword(java.lang.String password) throws ConstraintException 94 { 95 this.valueObject.setPassword(password); 96 } 97 98 public java.lang.String getFirstName() 99 { 100 return this.valueObject.getFirstName(); 101 } 102 103 public void setFirstName(java.lang.String firstName) throws ConstraintException 104 { 105 this.valueObject.setFirstName(firstName); 106 } 107 108 public java.lang.String getLastName() 109 { 110 return this.valueObject.getLastName(); 111 } 112 113 public void setLastName(java.lang.String lastName) throws ConstraintException 114 { 115 this.valueObject.setLastName(lastName); 116 } 117 118 public java.lang.String getEmail() 119 { 120 return this.valueObject.getEmail(); 121 } 122 123 public void setEmail(java.lang.String email) throws ConstraintException 124 { 125 this.valueObject.setEmail(email); 126 } 127 128 public java.util.Collection getRoles() 129 { 130 return this.roles; 131 } 132 133 public void setRoles (java.util.Collection roles) 134 { 135 this.roles = roles; 136 } 137 138 public java.util.Collection getGroups() 139 { 140 return groups; 141 } 142 143 public void setGroups(java.util.Collection groups) 144 { 145 this.groups = groups; 146 } 147 } 148 | Popular Tags |