1 23 24 package org.enhydra.pim.presentation; 25 26 import org.enhydra.pim.business.api.ContactI; 27 import org.enhydra.pim.business.api.ContactTypeI; 28 import org.enhydra.pim.business.api.OwnerI; 29 import org.enhydra.pim.business.api.PersonI; 30 31 36 37 public class EnhydraPimSessionData implements java.io.Serializable { 38 39 42 public static final String SESSION_KEY = "EnhydraPimSessionData"; 43 44 49 protected OwnerI myUser = null; 50 51 protected String userMessage = null; 52 53 58 protected OwnerI ownerSessionHandle = null; 59 60 65 protected PersonI personSessionHandle = null; 66 67 72 protected ContactI contactDataSessionHandle = null; 73 74 79 protected ContactTypeI contactTypeSessionHandle = null; 80 81 86 public static String getSESSION_KEY() { 87 return SESSION_KEY; 88 } 89 90 95 public ContactI getContactDataSessionHandle() { 96 return this.contactDataSessionHandle; 97 } 98 99 104 public void setContactDataSessionHandle(ContactI contactDataSessionHandle) { 105 this.contactDataSessionHandle = contactDataSessionHandle; 106 } 107 108 113 public ContactTypeI getContactTypeSessionHandle() { 114 return this.contactTypeSessionHandle; 115 } 116 117 122 public void setContactTypeSessionHandle(ContactTypeI contactTypeSessionHandle) { 123 this.contactTypeSessionHandle = contactTypeSessionHandle; 124 } 125 126 131 public OwnerI getMyUser() { 132 return this.myUser; 133 } 134 135 140 public void setMyUser(OwnerI myUser) { 141 this.myUser = myUser; 142 } 143 144 149 public OwnerI getOwnerSessionHandle() { 150 return this.ownerSessionHandle; 151 } 152 153 158 public void setOwnerSessionHandle(OwnerI ownerSessionHandle) { 159 this.ownerSessionHandle = ownerSessionHandle; 160 } 161 162 167 public PersonI getPersonSessionHandle() { 168 return this.personSessionHandle; 169 } 170 171 176 public void setPersonSessionHandle(PersonI personSessionHandle) { 177 this.personSessionHandle = personSessionHandle; 178 } 179 180 185 public String getUserMessage() { 186 return this.userMessage; 187 } 188 189 190 195 public void setUser(OwnerI theUser) { 196 this.myUser = theUser; 197 } 198 199 204 public OwnerI getUser() { 205 return this.myUser; 206 } 207 208 211 public void removeUser() { 212 this.myUser = null; 213 } 214 215 222 public void setUserMessage(String msg) { 223 this.userMessage = msg; 224 } 225 226 227 231 public String getAndClearUserMessage() { 232 String msg = this.userMessage; 233 this.userMessage = null; 234 return msg; 235 } 236 } 237 | Popular Tags |