|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.endeca.portal.data.MDEXStateMetadataObjectRelationshipUtil
public class MDEXStateMetadataObjectRelationshipUtil
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_DATA_SOURCE_NAME
|
static java.lang.String |
CONFIG_PROPERTY_PARENT_DATA_SOURCE
|
Constructor Summary | |
---|---|
MDEXStateMetadataObjectRelationshipUtil()
|
Method Summary | |
---|---|
static java.util.List<MDEXStateMetadataObject> |
getDescendants(MDEXStateMetadataObject mdexStateMetadataObject)
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,MDEXStateMetadataObject> |
getFamilyMembers(MDEXStateMetadataObject mdexStateMetadataObject)
Function to get all MDEXStates which belong to the same data source family. |
static java.util.Map<java.lang.String,MDEXStateMetadataObject> |
getFamilyMembers(java.lang.String dataSourceId)
Convience method for getting family |
static MDEXStateMetadataObject |
getParentMDEXStateMetadataObject(MDEXStateMetadataObject mdexStateMetadataObject)
Gets the parent MDEXState object determined by the CONFIG_PROPERTY_PARENT_DATA_SOURCE
property used in data source configurations. |
static MDEXStateMetadataObject |
getRootMDEXStateMetadataObject(MDEXStateMetadataObject mdexStateMetadataObject)
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
public static final java.lang.String CONFIG_PROPERTY_DATA_SOURCE_NAME
Constructor Detail |
---|
public MDEXStateMetadataObjectRelationshipUtil()
Method Detail |
---|
public static MDEXStateMetadataObject getParentMDEXStateMetadataObject(MDEXStateMetadataObject mdexStateMetadataObject)
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 MDEXStateMetadataObject getRootMDEXStateMetadataObject(MDEXStateMetadataObject mdexStateMetadataObject)
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<MDEXStateMetadataObject> getDescendants(MDEXStateMetadataObject mdexStateMetadataObject)
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,MDEXStateMetadataObject> getFamilyMembers(MDEXStateMetadataObject mdexStateMetadataObject)
mdexState
- userSession
-
public static java.util.Map<java.lang.String,MDEXStateMetadataObject> getFamilyMembers(java.lang.String dataSourceId)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |