Package com.liferay.portlet.internal
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 Summary
FieldsModifier and TypeFieldDescriptionprotected jakarta.servlet.http.HttpSessionprotected final jakarta.portlet.PortletContextprotected final StringFields inherited from interface com.liferay.portal.kernel.portlet.LiferayPortletSession
LAYOUT_SEPARATOR, PORTLET_SCOPE_NAMESPACEFields inherited from interface jakarta.portlet.PortletSession
APPLICATION_SCOPE, PORTLET_SCOPE -
Constructor Summary
ConstructorsConstructorDescriptionPortletSessionImpl(jakarta.servlet.http.HttpSession httpSession, jakarta.portlet.PortletContext portletContext, String portletName, long plid) -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String name) getAttribute(String name, int scope) getAttributeMap(int scope) getAttributeNames(int scope) longjakarta.servlet.http.HttpSessiongetId()longintjakarta.portlet.PortletContextvoidbooleanbooleanisNew()voidremoveAttribute(String name) voidremoveAttribute(String name, int scope) voidsetAttribute(String name, Object value) voidsetAttribute(String name, Object value, int scope) voidsetHttpSession(jakarta.servlet.http.HttpSession httpSession) voidsetMaxInactiveInterval(int interval)
-
Field Details
-
httpSession
protected jakarta.servlet.http.HttpSession httpSession -
portletContext
protected final jakarta.portlet.PortletContext portletContext -
scopePrefix
-
-
Constructor Details
-
PortletSessionImpl
public PortletSessionImpl(jakarta.servlet.http.HttpSession httpSession, jakarta.portlet.PortletContext portletContext, String portletName, long plid)
-
-
Method Details
-
getAttribute
- Specified by:
getAttributein interfacejakarta.portlet.PortletSession
-
getAttribute
- Specified by:
getAttributein interfacejakarta.portlet.PortletSession
-
getAttributeMap
- Specified by:
getAttributeMapin interfacejakarta.portlet.PortletSession
-
getAttributeMap
- Specified by:
getAttributeMapin interfacejakarta.portlet.PortletSession
-
getAttributeNames
- Specified by:
getAttributeNamesin interfacejakarta.portlet.PortletSession
-
getAttributeNames
- Specified by:
getAttributeNamesin interfacejakarta.portlet.PortletSession
-
getCreationTime
public long getCreationTime()- Specified by:
getCreationTimein interfacejakarta.portlet.PortletSession
-
getHttpSession
public jakarta.servlet.http.HttpSession getHttpSession() -
getId
- Specified by:
getIdin interfacejakarta.portlet.PortletSession
-
getLastAccessedTime
public long getLastAccessedTime()- Specified by:
getLastAccessedTimein interfacejakarta.portlet.PortletSession
-
getMaxInactiveInterval
public int getMaxInactiveInterval()- Specified by:
getMaxInactiveIntervalin interfacejakarta.portlet.PortletSession
-
getPortletContext
public jakarta.portlet.PortletContext getPortletContext()- Specified by:
getPortletContextin interfacejakarta.portlet.PortletSession
-
invalidate
public void invalidate()- Specified by:
invalidatein interfacejakarta.portlet.PortletSession
-
isInvalidated
public boolean isInvalidated() -
isNew
public boolean isNew()- Specified by:
isNewin interfacejakarta.portlet.PortletSession
-
removeAttribute
- Specified by:
removeAttributein interfacejakarta.portlet.PortletSession
-
removeAttribute
- Specified by:
removeAttributein interfacejakarta.portlet.PortletSession
-
setAttribute
- Specified by:
setAttributein interfacejakarta.portlet.PortletSession
-
setAttribute
- Specified by:
setAttributein interfacejakarta.portlet.PortletSession
-
setHttpSession
public void setHttpSession(jakarta.servlet.http.HttpSession httpSession) - Specified by:
setHttpSessionin interfacecom.liferay.portal.kernel.portlet.LiferayPortletSession
-
setMaxInactiveInterval
public void setMaxInactiveInterval(int interval) - Specified by:
setMaxInactiveIntervalin interfacejakarta.portlet.PortletSession
-