com.liferay.portlet
Class PortletSessionImpl

java.lang.Object
  extended by com.liferay.portlet.PortletSessionImpl
All Implemented Interfaces:
com.liferay.portal.kernel.portlet.LiferayPortletSession, javax.portlet.PortletSession

public class PortletSessionImpl
extends java.lang.Object
implements com.liferay.portal.kernel.portlet.LiferayPortletSession

View Source

Author:
Brian Wing Shun Chan

Field Summary
 
Fields inherited from interface com.liferay.portal.kernel.portlet.LiferayPortletSession
LAYOUT_SEPARATOR, PORTLET_SCOPE_NAMESPACE
 
Fields inherited from interface javax.portlet.PortletSession
APPLICATION_SCOPE, PORTLET_SCOPE
 
Constructor Summary
PortletSessionImpl(javax.servlet.http.HttpServletRequest request, java.lang.String portletName, javax.portlet.PortletContext portletContext, java.lang.String portalSessionId, long plid)
           
 
Method Summary
 java.lang.Object getAttribute(java.lang.String name)
           
 java.lang.Object getAttribute(java.lang.String name, int scope)
           
 java.util.Map<java.lang.String,java.lang.Object> getAttributeMap()
           
 java.util.Map<java.lang.String,java.lang.Object> getAttributeMap(int scope)
           
 java.util.Enumeration<java.lang.String> getAttributeNames()
           
 java.util.Enumeration<java.lang.String> getAttributeNames(int scope)
           
 long getCreationTime()
           
 javax.servlet.http.HttpSession getHttpSession()
           
 java.lang.String getId()
           
 long getLastAccessedTime()
           
 int getMaxInactiveInterval()
           
 java.lang.String getPortalSessionId()
           
 javax.portlet.PortletContext getPortletContext()
           
static java.lang.String getPortletScope(java.lang.String portletName, long plid)
           
static java.lang.String getPortletScopeName(java.lang.String portletName, long plid, java.lang.String name)
           
 void invalidate()
           
 boolean isNew()
           
 boolean isValid()
           
 void removeAttribute(java.lang.String name)
           
 void removeAttribute(java.lang.String name, int scope)
           
 void setAttribute(java.lang.String name, java.lang.Object value)
           
 void setAttribute(java.lang.String name, java.lang.Object value, int scope)
           
 void setHttpSession(javax.servlet.http.HttpSession session)
           
 void setLastAccessedTime(long lastAccessedTime)
           
 void setMaxInactiveInterval(int interval)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletSessionImpl

public PortletSessionImpl(javax.servlet.http.HttpServletRequest request,
                          java.lang.String portletName,
                          javax.portlet.PortletContext portletContext,
                          java.lang.String portalSessionId,
                          long plid)
Method Detail

getPortletScope

public static final java.lang.String getPortletScope(java.lang.String portletName,
                                                     long plid)

getPortletScopeName

public static final java.lang.String getPortletScopeName(java.lang.String portletName,
                                                         long plid,
                                                         java.lang.String name)

getAttribute

public java.lang.Object getAttribute(java.lang.String name)
Specified by:
getAttribute in interface javax.portlet.PortletSession

getAttribute

public java.lang.Object getAttribute(java.lang.String name,
                                     int scope)
Specified by:
getAttribute in interface javax.portlet.PortletSession

getAttributeMap

public java.util.Map<java.lang.String,java.lang.Object> getAttributeMap()
Specified by:
getAttributeMap in interface javax.portlet.PortletSession

getAttributeMap

public java.util.Map<java.lang.String,java.lang.Object> getAttributeMap(int scope)
Specified by:
getAttributeMap in interface javax.portlet.PortletSession

getAttributeNames

public java.util.Enumeration<java.lang.String> getAttributeNames()
Specified by:
getAttributeNames in interface javax.portlet.PortletSession

getAttributeNames

public java.util.Enumeration<java.lang.String> getAttributeNames(int scope)
Specified by:
getAttributeNames in interface javax.portlet.PortletSession

getCreationTime

public long getCreationTime()
Specified by:
getCreationTime in interface javax.portlet.PortletSession

getHttpSession

public javax.servlet.http.HttpSession getHttpSession()

getId

public java.lang.String getId()
Specified by:
getId in interface javax.portlet.PortletSession

getLastAccessedTime

public long getLastAccessedTime()
Specified by:
getLastAccessedTime in interface javax.portlet.PortletSession

getMaxInactiveInterval

public int getMaxInactiveInterval()
Specified by:
getMaxInactiveInterval in interface javax.portlet.PortletSession

getPortalSessionId

public java.lang.String getPortalSessionId()

getPortletContext

public javax.portlet.PortletContext getPortletContext()
Specified by:
getPortletContext in interface javax.portlet.PortletSession

invalidate

public void invalidate()
Specified by:
invalidate in interface javax.portlet.PortletSession

isNew

public boolean isNew()
Specified by:
isNew in interface javax.portlet.PortletSession

isValid

public boolean isValid()

removeAttribute

public void removeAttribute(java.lang.String name)
Specified by:
removeAttribute in interface javax.portlet.PortletSession

removeAttribute

public void removeAttribute(java.lang.String name,
                            int scope)
Specified by:
removeAttribute in interface javax.portlet.PortletSession

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.Object value)
Specified by:
setAttribute in interface javax.portlet.PortletSession

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.Object value,
                         int scope)
Specified by:
setAttribute in interface javax.portlet.PortletSession

setHttpSession

public void setHttpSession(javax.servlet.http.HttpSession session)
Specified by:
setHttpSession in interface com.liferay.portal.kernel.portlet.LiferayPortletSession

setLastAccessedTime

public void setLastAccessedTime(long lastAccessedTime)

setMaxInactiveInterval

public void setMaxInactiveInterval(int interval)
Specified by:
setMaxInactiveInterval in interface javax.portlet.PortletSession