source: trunk/greenstone3-extensions/gsdl-as/src/org/greenstone/gsdlas/users/UserManager.java@ 8717

Last change on this file since 8717 was 8717, checked in by schweer, 19 years ago

started to rework control flow, user authentication

  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 KB
Line 
1/*
2 * Created on Dec 1, 2004
3 * Copyright (C) Andrea Schweer, 2004
4 *
5 * This file is part of the Greenstone Alerting Service.
6 * Refer to the COPYING file in the base directory of this package
7 * for licensing information.
8 */
9package org.greenstone.gsdlas.users;
10
11import java.util.Map;
12
13import javax.servlet.http.HttpSession;
14
15/**
16 * @author andrea
17 *
18 * TODO To change the template for this generated type comment go to
19 * Window - Preferences - Java - Code Style - Code Templates
20 */
21public class UserManager {
22 private static UserManager instance;
23
24 private UserManager() {
25 // hide constructor
26 }
27
28 static public UserManager getInstance() {
29 if (instance == null) {
30 instance = new UserManager();
31 }
32 return instance;
33 }
34
35 /**
36 * @param session
37 * @return
38 */
39 public boolean isLoggedIn(HttpSession session) {
40 if (session.getCreationTime() - session.getLastAccessedTime() > session.getMaxInactiveInterval())
41 return false;
42
43 // TODO Auto-generated method stub
44 return true;
45 }
46
47 /**
48 * @param arguments
49 * @param session
50 */
51 public void createUser(Map arguments, HttpSession session) {
52 // TODO Auto-generated method stub
53
54 }
55
56 /**
57 * @param arguments
58 * @param session
59 */
60 public void loginUser(Map arguments, HttpSession session) {
61 // TODO Auto-generated method stub
62
63 }
64
65
66}
Note: See TracBrowser for help on using the repository browser.