org.apache.cocoon.portal.util
Class SessionMapWrapper
java.lang.Object
org.apache.cocoon.portal.util.SessionMapWrapper
- All Implemented Interfaces:
- Map
- public class SessionMapWrapper
- extends Object
- implements Map
This is a wrapper for a Map
storing the real map
in a session attribute.
The idea is to have a global map for all users that delegates at run
time to a user specific map stored in a session.
- Version:
- $Id: SessionMapWrapper.java 326465 2005-10-19 08:25:07Z cziegeler $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
attrName
protected final String attrName
context
protected final Context context
SessionMapWrapper
public SessionMapWrapper(Context context,
String attrName)
getRealMap
protected Map getRealMap(boolean create)
- Get the real map for the current user.
clear
public void clear()
- Specified by:
clear
in interface Map
- See Also:
Map.clear()
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interface Map
- See Also:
Map.containsKey(java.lang.Object)
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interface Map
- See Also:
Map.containsValue(java.lang.Object)
entrySet
public Set entrySet()
- Specified by:
entrySet
in interface Map
- See Also:
Map.entrySet()
get
public Object get(Object key)
- Specified by:
get
in interface Map
- See Also:
Map.get(java.lang.Object)
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface Map
- See Also:
Map.isEmpty()
keySet
public Set keySet()
- Specified by:
keySet
in interface Map
- See Also:
Map.keySet()
put
public Object put(Object key,
Object value)
- Specified by:
put
in interface Map
- See Also:
Map.put(java.lang.Object, java.lang.Object)
putAll
public void putAll(Map t)
- Specified by:
putAll
in interface Map
- See Also:
Map.putAll(java.util.Map)
remove
public Object remove(Object key)
- Specified by:
remove
in interface Map
- See Also:
Map.remove(java.lang.Object)
size
public int size()
- Specified by:
size
in interface Map
- See Also:
Map.size()
values
public Collection values()
- Specified by:
values
in interface Map
- See Also:
Map.values()
Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.