Class MockPortletSession

Object
com.liferay.portal.kernel.test.portlet.MockPortletSession
All Implemented Interfaces:
jakarta.portlet.PortletSession

public class MockPortletSession extends Object implements jakarta.portlet.PortletSession
Author:
Dante Wang
  • Constructor Details

    • MockPortletSession

      public MockPortletSession()
    • MockPortletSession

      public MockPortletSession(jakarta.portlet.PortletContext portletContext)
  • Method Details

    • access

      public void access()
    • clearAttributes

      public void clearAttributes()
    • 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
    • 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
    • isInvalid

      public boolean isInvalid()
    • 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
    • setMaxInactiveInterval

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

      public void setNew(boolean value)
    • doClearAttributes

      protected void doClearAttributes(Map<String,Object> attributes)