public class PortletSessionScope extends SessionScope
Constructor and Description |
---|
PortletSessionScope()
Create a new SessionScope, storing attributes in a locally isolated session (or default session, if there is no
distinction between a global session and a component-specific session).
|
PortletSessionScope(boolean globalSession)
Create a new SessionScope, specifying whether to store attributes in the global session, provided that such a
distinction is available.
|
Modifier and Type | Method and Description |
---|---|
int |
getScope() |
get, getConversationId, remove
registerDestructionCallback, resolveContextualObject
public PortletSessionScope()
public PortletSessionScope(boolean globalSession)
This distinction is important for Portlet environments, where there are two notions of a session: "portlet scope" and "application scope". If this flag is on, objects will be put into the "application scope" session; else they will end up in the "portlet scope" session (the typical default).
In a Servlet environment, this flag is effectively ignored.
globalSession
- true
in case of the global session as target; false
in case of a
component-specific session as targetPortletRequestAttributes
,
RequestAttributes
public int getScope()
getScope
in class SessionScope
Copyright © 2019 Liferay, Inc.. All rights reserved.