Class PortletSessionImpl

Object
com.liferay.portlet.internal.PortletSessionImpl
All Implemented Interfaces:
com.liferay.portal.kernel.portlet.LiferayPortletSession, jakarta.portlet.PortletSession

public class PortletSessionImpl extends Object implements com.liferay.portal.kernel.portlet.LiferayPortletSession
Author:
Brian Wing Shun Chan, Shuyang Zhou
  • Field Details

    • httpSession

      protected jakarta.servlet.http.HttpSession httpSession
    • portletContext

      protected final jakarta.portlet.PortletContext portletContext
    • scopePrefix

      protected final String scopePrefix
  • Constructor Details

    • PortletSessionImpl

      public PortletSessionImpl(jakarta.servlet.http.HttpSession httpSession, jakarta.portlet.PortletContext portletContext, String portletName, long plid)
  • Method Details

    • getAttribute

      public Object getAttribute(String name)
      Specified by:
      getAttribute in interface jakarta.portlet.PortletSession
    • getAttribute

      public Object getAttribute(String name, int scope)
      Specified by:
      getAttribute in interface jakarta.portlet.PortletSession
    • getAttributeMap

      public Map<String,Object> getAttributeMap()
      Specified by:
      getAttributeMap in interface jakarta.portlet.PortletSession
    • getAttributeMap

      public Map<String,Object> getAttributeMap(int scope)
      Specified by:
      getAttributeMap in interface jakarta.portlet.PortletSession
    • getAttributeNames

      public Enumeration<String> getAttributeNames()
      Specified by:
      getAttributeNames in interface jakarta.portlet.PortletSession
    • getAttributeNames

      public Enumeration<String> getAttributeNames(int scope)
      Specified by:
      getAttributeNames in interface jakarta.portlet.PortletSession
    • getCreationTime

      public long getCreationTime()
      Specified by:
      getCreationTime in interface jakarta.portlet.PortletSession
    • getHttpSession

      public jakarta.servlet.http.HttpSession getHttpSession()
    • getId

      public String getId()
      Specified by:
      getId in interface jakarta.portlet.PortletSession
    • getLastAccessedTime

      public long getLastAccessedTime()
      Specified by:
      getLastAccessedTime in interface jakarta.portlet.PortletSession
    • getMaxInactiveInterval

      public int getMaxInactiveInterval()
      Specified by:
      getMaxInactiveInterval in interface jakarta.portlet.PortletSession
    • getPortletContext

      public jakarta.portlet.PortletContext getPortletContext()
      Specified by:
      getPortletContext in interface jakarta.portlet.PortletSession
    • invalidate

      public void invalidate()
      Specified by:
      invalidate in interface jakarta.portlet.PortletSession
    • isInvalidated

      public boolean isInvalidated()
    • isNew

      public boolean isNew()
      Specified by:
      isNew in interface jakarta.portlet.PortletSession
    • removeAttribute

      public void removeAttribute(String name)
      Specified by:
      removeAttribute in interface jakarta.portlet.PortletSession
    • removeAttribute

      public void removeAttribute(String name, int scope)
      Specified by:
      removeAttribute in interface jakarta.portlet.PortletSession
    • setAttribute

      public void setAttribute(String name, Object value)
      Specified by:
      setAttribute in interface jakarta.portlet.PortletSession
    • setAttribute

      public void setAttribute(String name, Object value, int scope)
      Specified by:
      setAttribute in interface jakarta.portlet.PortletSession
    • setHttpSession

      public void setHttpSession(jakarta.servlet.http.HttpSession httpSession)
      Specified by:
      setHttpSession in interface com.liferay.portal.kernel.portlet.LiferayPortletSession
    • setMaxInactiveInterval

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