public class HttpSessionWrapper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ALF_MAP_ATTR
Attribute name for the ALF map.
|
static String |
CLIENT_INFO_UTIL_ATTR
Session attribute for the ClientInfoUtil instance.
|
static String |
CONNECTOR_ATTR
Name for http session attribute of a connector-instance.
|
static String |
DIALOGS_SET_ATTR
Attribute name for the set containing the IDs of open dialogs.
|
static String |
IS_SSO_LOGIN
Session attribute set to true if SSO is used for login.
|
static String |
LOCK_SET
Attribute name for a set of locked document IDs.
|
static String |
MAIN_WINDOW
Attribute name for the main window.
|
static String |
SSO_DISABLE_LOGOFF_BUTTON
Session attribute used to disable the logoff button when SSO is used.
|
static String |
USER_ATTR
Name for http session attribute of the user.
|
static String |
USER_WEB_SESSION_ATTR
Name for web session attribute
|
static String |
VIEWER_POPUP_BEANS
Name for http session attribute of the viewer-popup beans.
|
static String |
WF_CONNECTOR_ATTR
Name for http session attribute of a workflow connector-instance.
|
static String |
WF_DDC_ATTR
Attribute name for the workflow ddc name.
|
Constructor and Description |
---|
HttpSessionWrapper()
Constructs a new SessionWrapper using an internal http session.
|
HttpSessionWrapper(javax.servlet.http.HttpSession httpSession)
Constructs a new SessionWrapper with a given http session.
|
Modifier and Type | Method and Description |
---|---|
Map<String,LinkedList<String>> |
getAlfMap()
Convenience method to retrieve the alf-map attribute.
|
Object |
getAttribute(String key)
Get the attribute for the given key.
|
<T> T |
getAttribute(String key,
Class<T> type)
This method returns the session attribute with the specified key.
|
org.zkoss.zul.Window |
getMainWindow() |
Set<String> |
getOpenDialogs()
Returns the set containing the dialogs that are open in the current session.
|
Map<String,OpenDocumentBean> |
getPopupBeans()
Convenience method to retrieve the map with the viewer-popup-beans.
|
javax.servlet.http.HttpSession |
getSession()
Gets the session.
|
User |
getUserAttribute()
Convenience method to retrieve the user attribute.
|
boolean |
isIndexUser()
Checks if the currently logged-on user uses an index-license.
|
boolean |
isSingleTenant()
Returns true if the current session is working on a single-tenant-system.
|
void |
removeAttribute(String key)
Removes the attribute with the specified key from the current session.
|
void |
setAttribute(String key,
Object value)
Set attribute in the current session.
|
public static final String CONNECTOR_ATTR
public static final String WF_CONNECTOR_ATTR
public static final String USER_ATTR
public static final String USER_WEB_SESSION_ATTR
public static final String VIEWER_POPUP_BEANS
public static final String LOCK_SET
public static final String MAIN_WINDOW
public static final String ALF_MAP_ATTR
public static final String WF_DDC_ATTR
public static final String DIALOGS_SET_ATTR
public static final String SSO_DISABLE_LOGOFF_BUTTON
public static final String IS_SSO_LOGIN
public static final String CLIENT_INFO_UTIL_ATTR
public HttpSessionWrapper()
public HttpSessionWrapper(javax.servlet.http.HttpSession httpSession)
httpSession
- The http session to use.public void setAttribute(String key, Object value)
key
- The key of the attribute.value
- The value of the attribute.public void removeAttribute(String key)
key
- of the attribute to removepublic Object getAttribute(String key)
key
- The key to get the attribute for.public <T> T getAttribute(String key, Class<T> type)
T
- type parameterkey
- key of the attributetype
- expected type of the attributepublic User getUserAttribute()
getAttribute(USER_ATTR)
.public Map<String,LinkedList<String>> getAlfMap()
getAttribute(ALF_MAP_ATTR)
. The alf-map contains the files the user has opened
in the current session.public Map<String,OpenDocumentBean> getPopupBeans()
getAttribute(VIEWER_POPUP_BEANS)
. The map contains beans that define the
document that is shown in a viewer-popup.public boolean isSingleTenant()
public javax.servlet.http.HttpSession getSession()
public org.zkoss.zul.Window getMainWindow()
public boolean isIndexUser()
Copyright © 2021 Hyland Software Germany GmbH. All rights reserved.