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