org.exoplatform.services.portletcontainer.plugins.pc.portletAPIImp
Class PortletSessionImp

java.lang.Object
  extended by org.exoplatform.commons.map.AbstractMap
      extended by org.exoplatform.services.portletcontainer.plugins.pc.portletAPIImp.PortletSessionImp
All Implemented Interfaces:
Map, javax.portlet.PortletSession

public class PortletSessionImp
extends org.exoplatform.commons.map.AbstractMap
implements javax.portlet.PortletSession

Created by The eXo Platform SAS. Author : Mestrallet Benjamin benjmestrallet@users.sourceforge.net Date: Jul 26, 2003 Time: 4:30:52 PM


Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
protected  org.exoplatform.container.ExoContainer cont
          Exo container.
 
Fields inherited from interface javax.portlet.PortletSession
APPLICATION_SCOPE, PORTLET_SCOPE
 
Constructor Summary
PortletSessionImp(org.exoplatform.container.ExoContainer cont, javax.servlet.http.HttpSession session, javax.portlet.PortletContext context, String windowId)
           
 
Method Summary
 Object getAttribute(String name)
          Overridden method.
 Object getAttribute(String name, int scope)
          Overridden method.
 Map getAttributeMap()
          Overridden method.
 Map getAttributeMap(int scope)
          Overridden method.
 Enumeration<String> getAttributeNames()
          Overridden method.
 Enumeration<String> getAttributeNames(int scope)
          Overridden method.
 long getCreationTime()
          Overridden method.
 String getId()
          Overridden method.
 long getLastAccessedTime()
          Overridden method.
 int getMaxInactiveInterval()
          Overridden method.
 javax.portlet.PortletContext getPortletContext()
          Overridden method.
 javax.servlet.http.HttpSession getSession()
           
 void invalidate()
          Overridden method.
 boolean isNew()
          Overridden method.
 boolean isSessionValid()
           
 void removeAttribute(String name)
          Overridden method.
 void removeAttribute(String name, int scope)
          Overridden method.
 void setAttribute(String name, Object o)
          Overridden method.
 void setAttribute(String name, Object o, int scope)
          Overridden method.
 void setMaxInactiveInterval(int i)
          Overridden method.
 void setSession(javax.servlet.http.HttpSession session, String windowId)
           
 
Methods inherited from class org.exoplatform.commons.map.AbstractMap
clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, toString, values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

cont

protected org.exoplatform.container.ExoContainer cont
Exo container.

Constructor Detail

PortletSessionImp

public PortletSessionImp(org.exoplatform.container.ExoContainer cont,
                         javax.servlet.http.HttpSession session,
                         javax.portlet.PortletContext context,
                         String windowId)
Parameters:
cont - exo container
session - http session
context - portlet context
windowId - window id
Method Detail

getAttribute

public final Object getAttribute(String name)
Overridden method.

Specified by:
getAttribute in interface javax.portlet.PortletSession
Specified by:
getAttribute in class org.exoplatform.commons.map.AbstractMap
Parameters:
name - name
Returns:
value
See Also:
AbstractMap.getAttribute(java.lang.String)

getAttribute

public final Object getAttribute(String name,
                                 int scope)
Overridden method.

Specified by:
getAttribute in interface javax.portlet.PortletSession
Parameters:
name - name
scope - scope
Returns:
value
See Also:
PortletSession.getAttribute(java.lang.String, int)

removeAttribute

public final void removeAttribute(String name)
Overridden method.

Specified by:
removeAttribute in interface javax.portlet.PortletSession
Specified by:
removeAttribute in class org.exoplatform.commons.map.AbstractMap
Parameters:
name - name
See Also:
AbstractMap.removeAttribute(java.lang.String)

removeAttribute

public final void removeAttribute(String name,
                                  int scope)
Overridden method.

Specified by:
removeAttribute in interface javax.portlet.PortletSession
Parameters:
name - name
scope - scope
See Also:
PortletSession.removeAttribute(java.lang.String, int)

setAttribute

public final void setAttribute(String name,
                               Object o)
Overridden method.

Specified by:
setAttribute in interface javax.portlet.PortletSession
Specified by:
setAttribute in class org.exoplatform.commons.map.AbstractMap
Parameters:
name - name
o - value
See Also:
AbstractMap.setAttribute(java.lang.String, java.lang.Object)

setAttribute

public final void setAttribute(String name,
                               Object o,
                               int scope)
Overridden method.

Specified by:
setAttribute in interface javax.portlet.PortletSession
Parameters:
name - name
o - value
scope - scope
See Also:
PortletSession.setAttribute(java.lang.String, java.lang.Object, int)

getAttributeNames

public final Enumeration<String> getAttributeNames()
Overridden method.

Specified by:
getAttributeNames in interface javax.portlet.PortletSession
Specified by:
getAttributeNames in class org.exoplatform.commons.map.AbstractMap
Returns:
attribute names
See Also:
AbstractMap.getAttributeNames()

getAttributeNames

public final Enumeration<String> getAttributeNames(int scope)
Overridden method.

Specified by:
getAttributeNames in interface javax.portlet.PortletSession
Parameters:
scope - scope
Returns:
attribute names
See Also:
PortletSession.getAttributeNames(int)

getAttributeMap

public final Map getAttributeMap()
Overridden method.

Specified by:
getAttributeMap in interface javax.portlet.PortletSession
Returns:
attribute map
See Also:
PortletSession.getAttributeMap()

getAttributeMap

public final Map getAttributeMap(int scope)
Overridden method.

Specified by:
getAttributeMap in interface javax.portlet.PortletSession
Parameters:
scope - scope
Returns:
attribute map
See Also:
PortletSession.getAttributeMap(int)

getCreationTime

public final long getCreationTime()
Overridden method.

Specified by:
getCreationTime in interface javax.portlet.PortletSession
Returns:
creation time
See Also:
PortletSession.getCreationTime()

getId

public final String getId()
Overridden method.

Specified by:
getId in interface javax.portlet.PortletSession
Returns:
id
See Also:
PortletSession.getId()

getLastAccessedTime

public final long getLastAccessedTime()
Overridden method.

Specified by:
getLastAccessedTime in interface javax.portlet.PortletSession
Returns:
last accessed time
See Also:
PortletSession.getLastAccessedTime()

getMaxInactiveInterval

public final int getMaxInactiveInterval()
Overridden method.

Specified by:
getMaxInactiveInterval in interface javax.portlet.PortletSession
Returns:
max inactive interval
See Also:
PortletSession.getMaxInactiveInterval()

invalidate

public final void invalidate()
Overridden method.

Specified by:
invalidate in interface javax.portlet.PortletSession
See Also:
PortletSession.invalidate()

isSessionValid

public final boolean isSessionValid()
Returns:
is session valid

isNew

public final boolean isNew()
Overridden method.

Specified by:
isNew in interface javax.portlet.PortletSession
Returns:
is new
See Also:
PortletSession.isNew()

setMaxInactiveInterval

public final void setMaxInactiveInterval(int i)
Overridden method.

Specified by:
setMaxInactiveInterval in interface javax.portlet.PortletSession
Parameters:
i - max inactive interval
See Also:
PortletSession.setMaxInactiveInterval(int)

getPortletContext

public final javax.portlet.PortletContext getPortletContext()
Overridden method.

Specified by:
getPortletContext in interface javax.portlet.PortletSession
Returns:
portlet context
See Also:
PortletSession.getPortletContext()

getSession

public final javax.servlet.http.HttpSession getSession()
Returns:
session

setSession

public final void setSession(javax.servlet.http.HttpSession session,
                             String windowId)
Parameters:
session - session
windowId - window id


Copyright © 2009 eXo Platform SAS. All Rights Reserved.