| Session.java |
1 /*
2 * Session.java
3 *
4 * Copyright (c) 1998-2004, The University of Sheffield.
5 *
6 * This file is part of GATE (see http://gate.ac.uk/), and is free
7 * software, licenced under the GNU Library General Public License,
8 * Version 2, June 1991 (in the distribution as file licence.html,
9 * and also available at http://gate.ac.uk/gate/licence.html).
10 *
11 * Marin Dimitrov, 19/Sep/2001
12 *
13 * $Id: Session.java,v 1.7 2004/07/21 17:10:08 akshay Exp $
14 */
15
16 package gate.security;
17
18
19 public interface Session {
20
21 /** returns the session ID */
22 public Long getID();
23
24 /** returns the user associated with the session */
25 public User getUser();
26
27 /** returns the group associated with the session */
28 public Group getGroup();
29
30 /** TRUE if user associated with the session is in the
31 * ADMINS user group, otherwise FALSE */
32 public boolean isPrivilegedSession();
33
34
35 }
36