public class UserSession
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Method and Description |
---|---|
static void |
caughtParameters(java.lang.String sessionId) |
static void |
clearAllCacheForExploreDataset(java.lang.String collectionId)
Clears 'Explore outside project context' cache for the given data set.
|
static void |
clearAllCachesForDataset(javax.portlet.PortletRequest request,
java.lang.String collectionKey)
Clears both explore outside project context cache as well as any projects affected for all users
|
static void |
clearAllCachesForDataset(java.lang.String collectionKey,
java.util.Collection<java.lang.Long> projectIds)
Clears both explore outside project context cache as well as any projects affected for all users
|
static void |
clearViewTransitionParameters(java.lang.String sessionId) |
java.lang.Boolean |
containsChartColorMap(PinnedAttribute pinnedAttribute) |
protected static UserSession |
createTestInstance()
Deprecated.
|
static boolean |
deferredLoad(java.lang.String sessionId) |
static java.io.Serializable |
getAttribute(javax.portlet.PortletRequest request,
java.lang.String key)
Get an "attribute" (not to be confused with an MDEX attribute) which is a Serializable object that is shared across the whole portal.
|
java.io.Serializable |
getAttribute(java.lang.String key)
Get an "attribute" (not to be confused with an MDEX attribute) which is a Serializable object that is shared across the whole portal.
|
BddSecurityManager |
getBddSecurityManager() |
java.util.HashMap<java.lang.String,java.lang.Integer> |
getChartColorMap(PinnedAttribute pinnedAttribute) |
java.util.Map<java.lang.String,java.lang.Long> |
getExploreProjectCache() |
static UserSession |
getInstance(javax.portlet.PortletRequest request)
TODO: This whole method just seems a little awkward...can it be cleaned up?
|
java.util.Map<java.lang.String,MDEXState> |
getMDEXStates() |
MDEXState |
getOrCreateMDEXState(java.lang.Long groupId,
javax.portlet.PortletRequest request) |
MDEXState |
getOrCreateMDEXState(javax.portlet.PortletRequest request) |
MDEXState |
getOrCreateMDEXState(java.lang.String[] boundDatasets,
javax.portlet.PortletRequest request) |
java.lang.String |
getViewTransitionParameter(java.lang.String key) |
java.util.Iterator<java.util.Map.Entry<java.lang.String,java.lang.String>> |
getViewTransitionParameters() |
void |
putChartColorMap(PinnedAttribute pinnedAttribute,
java.util.HashMap<java.lang.String,java.lang.Integer> value) |
java.io.Serializable |
removeAttribute(java.lang.String key)
Remove an "attribute" associated with the specified key
|
protected static void |
removeInstance(java.lang.String key) |
static java.io.Serializable |
setAttribute(javax.portlet.PortletRequest request,
java.lang.String key,
java.io.Serializable value)
Set an "attribute" (not to be confused with MDEX attributes) which is a Serializable object that is shared across the whole portal.
|
java.io.Serializable |
setAttribute(java.lang.String key,
java.io.Serializable value)
Set an "attribute" (not to be confused with MDEX attributes) which is a Serializable object that is shared across the whole portal.
|
static java.io.Serializable |
setIfAbsent(javax.portlet.PortletRequest request,
java.lang.String key,
java.io.Serializable value)
Sets an attribute if it is absent.
|
java.io.Serializable |
setIfAbsent(java.lang.String key,
java.io.Serializable value)
Sets an attribute if it is absent.
|
void |
setViewTransitionDeferred() |
void |
setViewTransitionParameter(java.lang.String key,
java.lang.String value) |
static boolean |
throwingParameters(java.lang.String sessionId) |
static void |
unsetViewTransitionDeferred(java.lang.String sessionId) |
static void |
updateMDEXStatesByGroupId(java.lang.Long groupId)
Finds all MDEXStates for the specified project and forcefully invalidates its collection cache.
|
static void |
updateMDEXStatesByGroupId(java.lang.Long groupId,
boolean force)
Finds all MDEXStates for the specified project and potentially invalidates its collection cache.
|
@Deprecated protected static UserSession createTestInstance()
protected static void removeInstance(java.lang.String key)
public static UserSession getInstance(javax.portlet.PortletRequest request) throws UserSessionException
UserSessionException
public java.util.Map<java.lang.String,MDEXState> getMDEXStates()
public java.util.Map<java.lang.String,java.lang.Long> getExploreProjectCache()
public MDEXState getOrCreateMDEXState(javax.portlet.PortletRequest request)
public MDEXState getOrCreateMDEXState(java.lang.Long groupId, javax.portlet.PortletRequest request)
public MDEXState getOrCreateMDEXState(java.lang.String[] boundDatasets, javax.portlet.PortletRequest request)
public BddSecurityManager getBddSecurityManager()
public java.io.Serializable getAttribute(java.lang.String key)
public java.io.Serializable removeAttribute(java.lang.String key)
key
- public static java.io.Serializable getAttribute(javax.portlet.PortletRequest request, java.lang.String key)
public static void updateMDEXStatesByGroupId(java.lang.Long groupId)
groupId
- project identifierpublic static void updateMDEXStatesByGroupId(java.lang.Long groupId, boolean force)
groupId
- project identifierforce
- true to always invalidate all collection caches for this project; false to only invalidate them if necessary based on project inventory versionpublic static void clearAllCacheForExploreDataset(java.lang.String collectionId)
collectionId
- public static void clearAllCachesForDataset(javax.portlet.PortletRequest request, java.lang.String collectionKey) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException, TransformScriptException, DataSourceException, KeyNotFoundException, ModelException, java.text.ParseException, Formatter.FormatParseException
request
- collectionKey
- com.liferay.portal.PortalException
com.liferay.portal.SystemException
Formatter.FormatParseException
java.text.ParseException
ModelException
KeyNotFoundException
DataSourceException
TransformScriptException
public static void clearAllCachesForDataset(java.lang.String collectionKey, java.util.Collection<java.lang.Long> projectIds) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException, TransformScriptException, DataSourceException, KeyNotFoundException, ModelException, java.text.ParseException, Formatter.FormatParseException
com.liferay.portal.PortalException
com.liferay.portal.SystemException
TransformScriptException
DataSourceException
KeyNotFoundException
ModelException
java.text.ParseException
Formatter.FormatParseException
public java.io.Serializable setAttribute(java.lang.String key, java.io.Serializable value)
ConcurrentHashMap.put(Object, Object)
public static java.io.Serializable setAttribute(javax.portlet.PortletRequest request, java.lang.String key, java.io.Serializable value)
NOTE: Need a request so previous state will get deserialized on restart
public java.io.Serializable setIfAbsent(java.lang.String key, java.io.Serializable value)
ConcurrentHashMap.putIfAbsent(Object, Object)
public static java.io.Serializable setIfAbsent(javax.portlet.PortletRequest request, java.lang.String key, java.io.Serializable value)
NOTE: Need a request so previous state will get deserialized on restart
public java.lang.Boolean containsChartColorMap(PinnedAttribute pinnedAttribute)
public java.util.HashMap<java.lang.String,java.lang.Integer> getChartColorMap(PinnedAttribute pinnedAttribute)
public void putChartColorMap(PinnedAttribute pinnedAttribute, java.util.HashMap<java.lang.String,java.lang.Integer> value)
public java.lang.String getViewTransitionParameter(java.lang.String key)
public void setViewTransitionParameter(java.lang.String key, java.lang.String value)
public java.util.Iterator<java.util.Map.Entry<java.lang.String,java.lang.String>> getViewTransitionParameters()
public static void clearViewTransitionParameters(java.lang.String sessionId) throws UserSessionException
UserSessionException
public static boolean throwingParameters(java.lang.String sessionId) throws UserSessionException
UserSessionException
public static void caughtParameters(java.lang.String sessionId) throws UserSessionException
UserSessionException
public void setViewTransitionDeferred() throws UserSessionException
UserSessionException
public static void unsetViewTransitionDeferred(java.lang.String sessionId) throws UserSessionException
UserSessionException
public static boolean deferredLoad(java.lang.String sessionId) throws UserSessionException
UserSessionException
Copyright 2003, 2014, Oracle and/or its affiliates. All rights reserved.