public abstract class SessionManager
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Set<SessionListener> |
listeners |
protected LoginSession |
session |
| Modifier | Constructor and Description |
|---|---|
protected |
SessionManager(Realm realm) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(SessionListener listener)
Add a new listener
|
protected void |
checkRealm() |
protected void |
dispose() |
static SessionManager |
getDefault() |
Realm |
getRealm() |
LoginSession |
getSession() |
boolean |
hasRole(java.lang.String role) |
void |
removeListener(SessionListener listener)
Remove a new listener
|
protected void |
setSession(LoginSession session) |
protected final java.util.Set<SessionListener> listeners
protected LoginSession session
public void addListener(SessionListener listener)
Must be called from the realm of the manager. This is normally the display thread.
listener - to addprotected void checkRealm()
public void removeListener(SessionListener listener)
Must be called from the realm of the manager. This is normally the display thread.
listener - to removeprotected void setSession(LoginSession session)
protected void dispose()
public Realm getRealm()
public static SessionManager getDefault()
public LoginSession getSession()
public boolean hasRole(java.lang.String role)
Copyright (c) IBH SYSTEMS GmbH and others 2010, 2013.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0