Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 19 20 package com.lutris.airsent.presentation; 21 22 import com.lutris.airsent.spec.customer.*; 23 import com.lutris.airsent.spec.messenger.Messenger; 24 import com.lutris.airsent.spec.delivery.OrderForm; 25 26 import java.util.*; 27 28 33 public class AirSentSessionData implements java.io.Serializable { 34 35 38 public static final String SESSION_KEY = "AirSentSessionData"; 39 private int AUTHORIZATION = AirSentConstants.UNAUTH_USER; 40 protected String userMessage = null; 41 private Messenger messenger = null; 42 private Customer customer = null; 43 private OrderForm orderForm = null; 44 private long browserState = System.currentTimeMillis(); 45 46 53 public int getUserAuth() { 54 return AUTHORIZATION; 55 } 56 57 65 public void setUserAuth(int auth) { 66 this.AUTHORIZATION = auth; 67 } 68 69 77 public void setMessenger(Messenger messenger) { 78 this.messenger = messenger; 79 } 80 81 89 public void setCustomer(Customer customer) { 90 this.customer = customer; 91 } 92 93 97 public Messenger getMessenger() { 98 return messenger; 99 } 100 101 105 public Customer getCustomer() { 106 return customer; 107 } 108 109 114 public void setUserMessage(String msg) { 115 this.userMessage = msg; 116 } 117 118 122 public String getAndClearUserMessage() { 123 String msg = this.userMessage; 124 125 this.userMessage = null; 126 127 return msg; 128 } 129 130 138 public void setBrowserState(long browserState) { 139 this.browserState = browserState; 140 } 141 142 151 public long getBrowserState() { 152 return browserState; 153 } 154 155 public void setOrderForm(OrderForm d) { 156 orderForm = d; 157 } 158 159 public OrderForm getOrderForm() { 160 return orderForm; 161 } 162 } 163 164
| Popular Tags
|