public class PortletSessionImpl
extends Object
implements com.liferay.portal.kernel.portlet.LiferayPortletSession
| Modifier and Type | Field and Description |
|---|---|
protected PortletContext |
portletContext |
protected String |
scopePrefix |
protected javax.servlet.http.HttpSession |
session |
LAYOUT_SEPARATOR, PORTLET_SCOPE_NAMESPACEAPPLICATION_SCOPE, PORTLET_SCOPE| Constructor and Description |
|---|
PortletSessionImpl(javax.servlet.http.HttpSession session,
PortletContext portletContext,
String portletName,
long plid) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(String name) |
Object |
getAttribute(String name,
int scope) |
Map<String,Object> |
getAttributeMap() |
Map<String,Object> |
getAttributeMap(int scope) |
Enumeration<String> |
getAttributeNames() |
Enumeration<String> |
getAttributeNames(int scope) |
long |
getCreationTime() |
javax.servlet.http.HttpSession |
getHttpSession() |
String |
getId() |
long |
getLastAccessedTime() |
int |
getMaxInactiveInterval() |
PortletContext |
getPortletContext() |
void |
invalidate() |
boolean |
isInvalidated() |
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 session) |
void |
setMaxInactiveInterval(int interval) |
protected final PortletContext portletContext
protected final String scopePrefix
protected javax.servlet.http.HttpSession session
public PortletSessionImpl(javax.servlet.http.HttpSession session,
PortletContext portletContext,
String portletName,
long plid)
public Object getAttribute(String name)
getAttribute in interface PortletSessionpublic Object getAttribute(String name,
int scope)
getAttribute in interface PortletSessionpublic Map<String,Object> getAttributeMap()
getAttributeMap in interface PortletSessionpublic Map<String,Object> getAttributeMap(int scope)
getAttributeMap in interface PortletSessionpublic Enumeration<String> getAttributeNames()
getAttributeNames in interface PortletSessionpublic Enumeration<String> getAttributeNames(int scope)
getAttributeNames in interface PortletSessionpublic long getCreationTime()
getCreationTime in interface PortletSessionpublic javax.servlet.http.HttpSession getHttpSession()
public String getId()
getId in interface PortletSessionpublic long getLastAccessedTime()
getLastAccessedTime in interface PortletSessionpublic int getMaxInactiveInterval()
getMaxInactiveInterval in interface PortletSessionpublic PortletContext getPortletContext()
getPortletContext in interface PortletSessionpublic void invalidate()
invalidate in interface PortletSessionpublic boolean isInvalidated()
public boolean isNew()
isNew in interface PortletSessionpublic void removeAttribute(String name)
removeAttribute in interface PortletSessionpublic void removeAttribute(String name,
int scope)
removeAttribute in interface PortletSessionpublic void setAttribute(String name,
Object value)
setAttribute in interface PortletSessionpublic void setAttribute(String name,
Object value,
int scope)
setAttribute in interface PortletSessionpublic void setHttpSession(javax.servlet.http.HttpSession session)
setHttpSession in interface com.liferay.portal.kernel.portlet.LiferayPortletSessionpublic void setMaxInactiveInterval(int interval)
setMaxInactiveInterval in interface PortletSession