01: /*
02: * Copyright (C) 2001, 2002 Robert MacGrogan
03: *
04: * This library is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU Lesser General Public
06: * License as published by the Free Software Foundation; either
07: * version 2.1 of the License, or (at your option) any later version.
08: *
09: * This library is distributed in the hope that it will be useful,
10: * but WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12: * Lesser General Public License for more details.
13: *
14: * You should have received a copy of the GNU Lesser General Public
15: * License along with this library; if not, write to the Free Software
16: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17: *
18: *
19: * $Archive: SourceJammer$
20: * $FileName: Session.java$
21: * $FileID: 4516$
22: *
23: * Last change:
24: * $AuthorName: Rob MacGrogan$
25: * $Date: 4/23/03 5:20 PM$
26: * $Comment: Replaced GPL header with LGPL header.$
27: */
28:
29: package org.sourcejammer.server.security;
30:
31: /**
32: * Title: $FileName: Session.java$
33: * @version $VerNum: 3$
34: * @author $AuthorName: Rob MacGrogan$<br><br>
35: *
36: * $Description: $<br>
37: * $KeyWordsOff: $
38: */
39: public class Session {
40:
41: private User user = null;
42: private long lastUpdateTime = new java.util.Date().getTime();
43: private long sessionID = -1;
44:
45: public Session() {
46: }
47:
48: public void setSessionID(long l) {
49: sessionID = l;
50: }
51:
52: public long getSessionID() {
53: return sessionID;
54: }
55:
56: public void setUser(User u) {
57: user = u;
58: }
59:
60: public User getUser() {
61: return user;
62: }
63:
64: public long getLastUpdateTime() {
65: return lastUpdateTime;
66: }
67:
68: public void update() {
69: lastUpdateTime = new java.util.Date().getTime();
70: }
71:
72: }
|