de.laures.cewolf.storage
Class SessionStorageGroup

java.lang.Object
  extended by de.laures.cewolf.storage.SessionStorageGroup

public class SessionStorageGroup
extends java.lang.Object

A container for any images for an user session. This is needed to ensure that one user can not access other users' images.

Author:
brianf, zluspai

Constructor Summary
SessionStorageGroup()
          Constructor registers this storage group for the
 
Method Summary
protected  void cleanup()
          Clean up (remove) all expired charts from this storage group.
 SessionStorageItem get(java.lang.Object chartId)
          Get the storage for a chart
 boolean isEmpty()
          If the storage group is empty
 void put(java.lang.String chartId, SessionStorageItem item)
          Add a chart to the storage
 void remove(java.lang.String chartId)
          Remove one chart item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionStorageGroup

public SessionStorageGroup()
Constructor registers this storage group for the

Method Detail

get

public SessionStorageItem get(java.lang.Object chartId)
Get the storage for a chart

Parameters:
chartId - The id of a chart
Returns:
The storage

put

public void put(java.lang.String chartId,
                SessionStorageItem item)
Add a chart to the storage

Parameters:
chartId - The id
item - The storage item

remove

public void remove(java.lang.String chartId)
Remove one chart item.

Parameters:
chartId -

cleanup

protected void cleanup()
Clean up (remove) all expired charts from this storage group.


isEmpty

public boolean isEmpty()
If the storage group is empty

Returns:
If empty


cewolf tag library - web charts with JFreeChart