|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.endeca.portal.data.MDEXStateRelationshipUtil
public class MDEXStateRelationshipUtil
Utility class providing convenient methods for navigating data source relationships, based on the use of the "parentDataSource" configuration property.
Field Summary | |
---|---|
static java.lang.String |
CONFIG_PROPERTY_PARENT_DATA_SOURCE
|
Constructor Summary | |
---|---|
MDEXStateRelationshipUtil()
|
Method Summary | |
---|---|
static java.util.List<MDEXState> |
getDescendants(MDEXState mdexState,
UserSession userSession)
Gets a list of MDEXState objects that are descendants of the provided MDEXState, determined by the CONFIG_PROPERTY_PARENT_DATA_SOURCE property used in data source configurations. |
static java.util.Map<java.lang.String,MDEXState> |
getFamilyMembers(MDEXState mdexState,
UserSession userSession)
Function to get all MDEXStates which belong to the same data source family. |
static MDEXState |
getParentMDEXState(MDEXState mdexState,
UserSession userSession)
Gets the parent MDEXState object determined by the CONFIG_PROPERTY_PARENT_DATA_SOURCE
property used in data source configurations. |
static MDEXState |
getRootMDEXState(MDEXState mdexState,
UserSession userSession)
Gets the MDEXState object representing the top of the ancestor tree determined by the CONFIG_PROPERTY_PARENT_DATA_SOURCE property used in data source configurations. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CONFIG_PROPERTY_PARENT_DATA_SOURCE
Constructor Detail |
---|
public MDEXStateRelationshipUtil()
Method Detail |
---|
public static MDEXState getParentMDEXState(MDEXState mdexState, UserSession userSession)
CONFIG_PROPERTY_PARENT_DATA_SOURCE
property used in data source configurations.
mdexState
- the MDEXState object containing the CONFIG_PROPERTY_PARENT_DATA_SOURCE
property
which references the requested parentuserSession
- the UserSession
public static MDEXState getRootMDEXState(MDEXState mdexState, UserSession userSession)
CONFIG_PROPERTY_PARENT_DATA_SOURCE
property used in data source configurations.
mdexState
- the MDEXState object containing the CONFIG_PROPERTY_PARENT_DATA_SOURCE
property
which references a parent MDEXState (which presumably also includes the property and
thus defines an ancestor tree)userSession
- the UserSession
public static java.util.List<MDEXState> getDescendants(MDEXState mdexState, UserSession userSession)
CONFIG_PROPERTY_PARENT_DATA_SOURCE
property used in data source configurations.
This method will look for any other MDEXState defined in session containing a reference
to the provided MDEXState's ID, and will recursively traverse the relationship tree
looking for all descendants.
mdexState
- the MDEXState object for which all descendants are requested.userSession
- the UserSession
public static java.util.Map<java.lang.String,MDEXState> getFamilyMembers(MDEXState mdexState, UserSession userSession)
mdexState
- userSession
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |