1 23 24 package transactionsDiscRack.presentation; 25 26 import transactionsDiscRack.spec.*; 27 28 33 public class TransactionsDiscRackSessionData implements java.io.Serializable { 34 35 38 public static final String SESSION_KEY = "DiscRackSessionData"; 39 40 protected Person myUser = null; 41 protected String userMessage = null; 42 43 48 public void setUser(Person thePerson) { 49 this.myUser = thePerson; 50 } 51 52 57 public Person getUser() { 58 return this.myUser; 59 } 60 61 64 public void removeUser() { 65 this.myUser = null; 66 } 67 68 73 public void setUserMessage(String msg) { 74 this.userMessage = msg; 75 } 76 77 81 public String getAndClearUserMessage() { 82 String msg = this.userMessage; 83 this.userMessage = null; 84 return msg; 85 } 86 } 87 | Popular Tags |