Package com.liferay.portlet.internal
Class PortletSessionImpl
Object
com.liferay.portlet.internal.PortletSessionImpl
- All Implemented Interfaces:
com.liferay.portal.kernel.portlet.LiferayPortletSession
,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 javax.servlet.http.HttpSession
protected final PortletContext
protected final String
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
ConstructorsConstructorDescriptionPortletSessionImpl
(javax.servlet.http.HttpSession httpSession, PortletContext portletContext, String portletName, long plid) -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(String name) getAttribute
(String name, int scope) getAttributeMap
(int scope) getAttributeNames
(int scope) long
javax.servlet.http.HttpSession
getId()
long
int
void
boolean
boolean
isNew()
void
removeAttribute
(String name) void
removeAttribute
(String name, int scope) void
setAttribute
(String name, Object value) void
setAttribute
(String name, Object value, int scope) void
setHttpSession
(javax.servlet.http.HttpSession httpSession) void
setMaxInactiveInterval
(int interval)
-
Field Details
-
httpSession
protected javax.servlet.http.HttpSession httpSession -
portletContext
-
scopePrefix
-
-
Constructor Details
-
PortletSessionImpl
public PortletSessionImpl(javax.servlet.http.HttpSession httpSession, PortletContext portletContext, String portletName, long plid)
-
-
Method Details
-
getAttribute
- Specified by:
getAttribute
in interfacePortletSession
-
getAttribute
- Specified by:
getAttribute
in interfacePortletSession
-
getAttributeMap
- Specified by:
getAttributeMap
in interfacePortletSession
-
getAttributeMap
- Specified by:
getAttributeMap
in interfacePortletSession
-
getAttributeNames
- Specified by:
getAttributeNames
in interfacePortletSession
-
getAttributeNames
- Specified by:
getAttributeNames
in interfacePortletSession
-
getCreationTime
public long getCreationTime()- Specified by:
getCreationTime
in interfacePortletSession
-
getHttpSession
public javax.servlet.http.HttpSession getHttpSession() -
getId
- Specified by:
getId
in interfacePortletSession
-
getLastAccessedTime
public long getLastAccessedTime()- Specified by:
getLastAccessedTime
in interfacePortletSession
-
getMaxInactiveInterval
public int getMaxInactiveInterval()- Specified by:
getMaxInactiveInterval
in interfacePortletSession
-
getPortletContext
- Specified by:
getPortletContext
in interfacePortletSession
-
invalidate
public void invalidate()- Specified by:
invalidate
in interfacePortletSession
-
isInvalidated
public boolean isInvalidated() -
isNew
public boolean isNew()- Specified by:
isNew
in interfacePortletSession
-
removeAttribute
- Specified by:
removeAttribute
in interfacePortletSession
-
removeAttribute
- Specified by:
removeAttribute
in interfacePortletSession
-
setAttribute
- Specified by:
setAttribute
in interfacePortletSession
-
setAttribute
- Specified by:
setAttribute
in interfacePortletSession
-
setHttpSession
public void setHttpSession(javax.servlet.http.HttpSession httpSession) - Specified by:
setHttpSession
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletSession
-
setMaxInactiveInterval
public void setMaxInactiveInterval(int interval) - Specified by:
setMaxInactiveInterval
in interfacePortletSession
-