public class HWISessionManager extends Object implements Runnable
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
l4j |
Modifier | Constructor and Description |
---|---|
protected |
HWISessionManager() |
Modifier and Type | Method and Description |
---|---|
HWISessionItem |
createSession(HWIAuth a,
String sessionName)
Here we handle creating the SessionItem, we do this for the JSP client
because we need to set parameters the client is not aware of.
|
ArrayList<HWISessionItem> |
findAllSessionItems()
Rather then return the actual items we return a list copies.
|
Set<HWISessionItem> |
findAllSessionsForUser(HWIAuth auth)
Used to list all the sessions of a user.
|
Set<HWIAuth> |
findAllUsersWithSessions()
Used to list all users that have at least one session.
|
HWISessionItem |
findSessionItemByName(HWIAuth auth,
String sessionname)
Helper method useful when you know the session name you wish to reference.
|
protected TreeMap<HWIAuth,Set<HWISessionItem>> |
getItems() |
protected boolean |
isGoOn() |
void |
run()
This method scans the SessionItem collection.
|
protected void |
setGoOn(boolean goOn) |
protected void |
setItems(TreeMap<HWIAuth,Set<HWISessionItem>> items) |
public void run()
protected boolean isGoOn()
protected void setGoOn(boolean goOn)
protected TreeMap<HWIAuth,Set<HWISessionItem>> getItems()
protected void setItems(TreeMap<HWIAuth,Set<HWISessionItem>> items)
public ArrayList<HWISessionItem> findAllSessionItems()
public HWISessionItem createSession(HWIAuth a, String sessionName)
a
- Authenticated usersessionName
- Represents the session namepublic HWISessionItem findSessionItemByName(HWIAuth auth, String sessionname)
sessionname
- public Set<HWIAuth> findAllUsersWithSessions()
public Set<HWISessionItem> findAllSessionsForUser(HWIAuth auth)
auth
- the user being enquired aboutCopyright © 2017 The Apache Software Foundation. All rights reserved.