com.liferay.portlet
Class PortletSessionImpl
java.lang.Object
com.liferay.portlet.PortletSessionImpl
- All Implemented Interfaces:
- LiferayPortletSession, PortletSession
public class PortletSessionImpl
- extends Object
- implements LiferayPortletSession
Method Summary |
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()
|
String |
getPortalSessionId()
|
PortletContext |
getPortletContext()
|
static String |
getPortletScope(String portletName,
long plid)
|
static String |
getPortletScopeName(String portletName,
long plid,
String name)
|
void |
invalidate()
|
boolean |
isNew()
|
boolean |
isValid()
|
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 |
setLastAccessedTime(long lastAccessedTime)
|
void |
setMaxInactiveInterval(int interval)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PortletSessionImpl
public PortletSessionImpl(javax.servlet.http.HttpServletRequest request,
String portletName,
PortletContext portletContext,
String portalSessionId,
long plid)
getPortletScope
public static final String getPortletScope(String portletName,
long plid)
getPortletScopeName
public static final String getPortletScopeName(String portletName,
long plid,
String name)
getAttribute
public Object getAttribute(String name)
- Specified by:
getAttribute
in interface PortletSession
getAttribute
public Object getAttribute(String name,
int scope)
- Specified by:
getAttribute
in interface PortletSession
getAttributeMap
public Map<String,Object> getAttributeMap()
- Specified by:
getAttributeMap
in interface PortletSession
getAttributeMap
public Map<String,Object> getAttributeMap(int scope)
- Specified by:
getAttributeMap
in interface PortletSession
getAttributeNames
public Enumeration<String> getAttributeNames()
- Specified by:
getAttributeNames
in interface PortletSession
getAttributeNames
public Enumeration<String> getAttributeNames(int scope)
- Specified by:
getAttributeNames
in interface PortletSession
getCreationTime
public long getCreationTime()
- Specified by:
getCreationTime
in interface PortletSession
getHttpSession
public javax.servlet.http.HttpSession getHttpSession()
getId
public String getId()
- Specified by:
getId
in interface PortletSession
getLastAccessedTime
public long getLastAccessedTime()
- Specified by:
getLastAccessedTime
in interface PortletSession
getMaxInactiveInterval
public int getMaxInactiveInterval()
- Specified by:
getMaxInactiveInterval
in interface PortletSession
getPortalSessionId
public String getPortalSessionId()
getPortletContext
public PortletContext getPortletContext()
- Specified by:
getPortletContext
in interface PortletSession
invalidate
public void invalidate()
- Specified by:
invalidate
in interface PortletSession
isNew
public boolean isNew()
- Specified by:
isNew
in interface PortletSession
isValid
public boolean isValid()
removeAttribute
public void removeAttribute(String name)
- Specified by:
removeAttribute
in interface PortletSession
removeAttribute
public void removeAttribute(String name,
int scope)
- Specified by:
removeAttribute
in interface PortletSession
setAttribute
public void setAttribute(String name,
Object value)
- Specified by:
setAttribute
in interface PortletSession
setAttribute
public void setAttribute(String name,
Object value,
int scope)
- Specified by:
setAttribute
in interface PortletSession
setHttpSession
public void setHttpSession(javax.servlet.http.HttpSession session)
- Specified by:
setHttpSession
in interface LiferayPortletSession
setLastAccessedTime
public void setLastAccessedTime(long lastAccessedTime)
setMaxInactiveInterval
public void setMaxInactiveInterval(int interval)
- Specified by:
setMaxInactiveInterval
in interface PortletSession