public class ProducerSessionInformation extends Object implements Serializable
| Constructor and Description |
|---|
ProducerSessionInformation() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSessionForPortlet(String portletHandle,
SessionContext sessionContext)
Associates the portlet session information provided by the specified SessionContext with the portlet identified by the specified portlet handle.
|
List<String> |
getGroupCookiesFor(String groupId)
Retrieves the String representations of the cookies associated with the portlet group identified by the specified group identifier.
|
String |
getSessionIdForPortlet(String portletHandle)
Retrieves the session id for the portlet with the specified handle.
|
List<String> |
getUserCookies()
Retrieves an up-to-date list of String representations of user-level cookies.
|
boolean |
isInitCookieDone()
Whether we already called initCookie for the associated producer.
|
boolean |
isPerGroupCookies()
Whether the producer required cookies to be initialized per portlet group instead of per user.
|
void |
setGroupCookiesFor(String groupId,
List<CookieUtil.Cookie> cookies)
Associates the given cookies with a given portlet group, as identified by the specified group identifier.
|
void |
setPerGroupCookies(boolean perGroupCookies)
Only public for test purposes.
|
void |
setUserCookies(List<CookieUtil.Cookie> userCookie) |
public List<String> getUserCookies()
public void setUserCookies(List<CookieUtil.Cookie> userCookie)
public boolean isInitCookieDone()
true if initCookie has already been called, false otherwisepublic boolean isPerGroupCookies()
true if the producer required cookies to be initialized per portlet group, false otherwisepublic void setPerGroupCookies(boolean perGroupCookies)
perGroupCookies - public void setGroupCookiesFor(String groupId, List<CookieUtil.Cookie> cookies)
groupId - the portlet group identifiercookies - the cookies to be associated with the portlet grouppublic List<String> getGroupCookiesFor(String groupId)
groupId - the group identifier for which we want to retrieve the associated cookiespublic void addSessionForPortlet(String portletHandle, SessionContext sessionContext)
portletHandle - the handle of the portlet with which session information needs to be associatedsessionContext - the new session information to be associated to the portletpublic String getSessionIdForPortlet(String portletHandle)
portletHandle - the handle of the portlet for which the session id is to be retrievednull if there is no session associated with the
portlet or if the session has expired.Copyright © 2006-2014 GateIn. All Rights Reserved.