|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.endeca.portal.data.MDEXStateManager
public class MDEXStateManager
The MDEXStateManager class provides helper static functions used by
DataSource
methods to work with QueryState
s.
Field Summary | |
---|---|
protected static org.apache.log4j.Logger |
logger
|
Constructor Summary | |
---|---|
MDEXStateManager()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.log4j.Logger logger
Constructor Detail |
---|
public MDEXStateManager()
Method Detail |
---|
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 state
QueryStateException
- 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 request
UserSession
associated with the current request
UserSessionException
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 PortletRequestds
- The MDEXState representing the data source that has changed and needs an event triggered
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |