public class MDEXStateManager
extends java.lang.Object
DataSource
methods to work with QueryState
s.Modifier and Type | Field and Description |
---|---|
protected static org.apache.log4j.Logger |
logger |
Constructor and Description |
---|
MDEXStateManager() |
Modifier and Type | Method and Description |
---|---|
protected static void |
addEventTrigger(javax.portlet.PortletRequest request,
MDEXState ds)
Use this method to make sure an appropriate change event will be triggered for an altered MDEXState.
|
protected static UserSession |
fetchUserSession(javax.portlet.PortletRequest request)
Method to fetch the current
UserSession . |
protected static java.util.List<QueryFunction> |
getSubtractedFilterList(QueryState baseState,
QueryState stateToSubtract) |
static QueryState |
handleStateInitial(javax.portlet.PortletRequest request,
MDEXState mdexState)
Returns specified MDEXState's initial
QueryState . |
static QueryState |
handleStateMerge(javax.portlet.PortletRequest request,
MDEXState mdexState)
Returns a QueryState after any necessary merge operations with other QueryStates.
|
static void |
handleStateReset(javax.portlet.PortletRequest request,
MDEXState mdexState)
Resets an MDEXState, then publishes the event trigger.
|
static void |
handleStateUpdate(javax.portlet.PortletRequest request,
MDEXState mdexState,
QueryState newQueryState)
Sets the given QueryState onto the specified MDEXState, then publishes the event trigger.
|
protected static void |
publishEventTriggersForState(javax.portlet.PortletRequest request,
MDEXState mdexState,
UserSession userSession)
Publishes an event trigger for a data source change event on this state.
|
public static QueryState handleStateMerge(javax.portlet.PortletRequest request, MDEXState mdexState) throws QueryStateException
MDEXState
's QueryState
because the input state is deep-cloned during this merge operation.QueryStateException
public static void handleStateUpdate(javax.portlet.PortletRequest request, MDEXState mdexState, QueryState newQueryState) throws QueryStateException
QueryStateException
public static void handleStateReset(javax.portlet.PortletRequest request, MDEXState mdexState) throws QueryStateException
request
- the PortletRequestmdexState
- the current data source stateQueryStateException
- on errorpublic static QueryState handleStateInitial(javax.portlet.PortletRequest request, MDEXState mdexState) throws QueryStateException
QueryState
.QueryStateException
protected static java.util.List<QueryFunction> getSubtractedFilterList(QueryState baseState, QueryState stateToSubtract)
protected static void publishEventTriggersForState(javax.portlet.PortletRequest request, MDEXState mdexState, UserSession userSession)
request
- current requestmdexState
- mdexState undergoing state changeuserSession
- current user sessionprotected static UserSession fetchUserSession(javax.portlet.PortletRequest request) throws UserSessionException
UserSession
. The separate method facilitates testing.request
- the current requestUserSession
associated with the current requestUserSessionException
protected static void addEventTrigger(javax.portlet.PortletRequest request, MDEXState ds)
handleStateReset(PortletRequest, MDEXState)
and from
handleStateUpdate(PortletRequest, MDEXState, QueryState)
to ensure all portlets are aware of the change.request
- the current PortletRequestCopyright 2003, 2014, Oracle and/or its affiliates. All rights reserved.