com.liferay.faces.bridge.context.map
Class SessionMap

java.lang.Object
  extended by com.liferay.faces.util.map.AbstractPropertyMap<Object>
      extended by com.liferay.faces.bridge.context.map.SessionMap
All Implemented Interfaces:
Map<String,Object>

public class SessionMap
extends AbstractPropertyMap<Object>

Author:
Neil Griffin

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
SessionMap(javax.portlet.PortletSession portletSession, BeanManager beanManager, int scope, boolean preferPreDestroy)
          Constructs a new SessionMap object instance.
 
Method Summary
 void clear()
          According to the JSF 2.0 JavaDocs for ExternalContext.getSessionMap, before a managed-bean is removed from the map, any public no-argument void return methods annotated with javax.annotation.PreDestroy must be called first.
protected  AbstractPropertyMapEntry<Object> createPropertyMapEntry(String name)
           
protected  Object getProperty(String name)
           
protected  Enumeration<String> getPropertyNames()
           
 Object remove(Object key)
          According to the JSF 2.0 JavaDocs for ExternalContext.getSessionMap, before a managed-bean is removed from the map, any public no-argument void return methods annotated with javax.annotation.PreDestroy must be called first.
protected  void removeProperty(String name)
           
protected  void setProperty(String name, Object value)
           
 
Methods inherited from class com.liferay.faces.util.map.AbstractPropertyMap
containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, size, values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

SessionMap

public SessionMap(javax.portlet.PortletSession portletSession,
                  BeanManager beanManager,
                  int scope,
                  boolean preferPreDestroy)
Constructs a new SessionMap object instance.

Parameters:
portletSession - The portlet session.
scope - The scope of the session map, which can be PortletSession.PORTLET_SCOPE or PortletSession.APPLICATION_SCOPE
Method Detail

clear

public void clear()
According to the JSF 2.0 JavaDocs for ExternalContext.getSessionMap, before a managed-bean is removed from the map, any public no-argument void return methods annotated with javax.annotation.PreDestroy must be called first.

Specified by:
clear in interface Map<String,Object>
Overrides:
clear in class AbstractPropertyMap<Object>

remove

public Object remove(Object key)
According to the JSF 2.0 JavaDocs for ExternalContext.getSessionMap, before a managed-bean is removed from the map, any public no-argument void return methods annotated with javax.annotation.PreDestroy must be called first.

Specified by:
remove in interface Map<String,Object>
Overrides:
remove in class AbstractPropertyMap<Object>

createPropertyMapEntry

protected AbstractPropertyMapEntry<Object> createPropertyMapEntry(String name)
Specified by:
createPropertyMapEntry in class AbstractPropertyMap<Object>

removeProperty

protected void removeProperty(String name)
Specified by:
removeProperty in class AbstractPropertyMap<Object>

getProperty

protected Object getProperty(String name)
Specified by:
getProperty in class AbstractPropertyMap<Object>

setProperty

protected void setProperty(String name,
                           Object value)
Specified by:
setProperty in class AbstractPropertyMap<Object>

getPropertyNames

protected Enumeration<String> getPropertyNames()
Specified by:
getPropertyNames in class AbstractPropertyMap<Object>


Copyright © 2014 Liferay, Inc.. All Rights Reserved.