|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.endeca.portal.data.model.ModelUtil
public class ModelUtil
Class containing utility methods for converting various query result objects into a single record object.
Method Summary | |
---|---|
static Assignment |
convert(com.endeca.mdex.conversation.Assignment assignment)
Convert a 7-series assignment into a unified model assignment. |
static Assignment |
convert(com.endeca.mdex.conversation.Assignment assignment,
AttributeKeyConverter attributeKeyConverter)
Convert a 7-series assignment into a unified model assignment. |
static java.lang.Iterable<Record> |
convert(AttributeSettings uam,
java.util.List<com.endeca.mdex.conversation.Record> csRecList)
This method converts a list of conversation records to an iterable of uniform record model object. |
static Record |
convert(AttributeSettings uam,
com.endeca.mdex.conversation.Record csRec)
Convenience converter for taking MDEX attributes and a discovery service record and converting it to a unified model object. |
static Record |
convert(AttributeSettings uam,
com.endeca.mdex.conversation.Record csRec,
AttributeKeyConverter attributeKeyConverter)
|
static java.lang.Iterable<Record> |
convert(java.util.List<com.endeca.mdex.conversation.Record> csRecList)
This method converts a list of conversation records to an iterable of uniform record model object. |
static java.lang.Iterable<Record> |
convert(java.util.List<com.endeca.mdex.conversation.Record> csRecList,
AttributeKeyConverter attributeKeyConverter)
|
static com.endeca.mdex.conversation.NavigationMenu |
convert(com.endeca.mdex.conversation.NavigationMenu navigationMenu,
AttributeKeyConverter attributeKeyConverter,
java.util.Locale currentLocale)
Substitute locale specific attribute keys with default locale attribute keys using attributeKeyConverter passed |
static Record |
convert(com.endeca.mdex.conversation.Record csRec)
Convert a conversation service record with a null record spec. |
static Record |
convert(com.endeca.mdex.conversation.Record csRec,
AttributeKeyConverter attributeKeyConverter)
|
static Record |
convert(RecordSpec recordSpec,
com.endeca.mdex.conversation.Record csRec)
Converts a conversation service record into a uniform record model object. |
static Record |
convert(RecordSpec recordSpec,
com.endeca.mdex.conversation.Record csRec,
AttributeKeyConverter attributeKeyConverter)
Converts a conversation service record into a uniform record model object. |
static com.endeca.mdex.conversation.ValueSearch |
convert(com.endeca.mdex.conversation.ValueSearch attributeValueSearch,
AttributeKeyConverter attributeKeyConverter)
Substitute old key values with new key values using attributeKeyConverter passed |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Record convert(com.endeca.mdex.conversation.Record csRec)
csRec
-
public static Record convert(com.endeca.mdex.conversation.Record csRec, AttributeKeyConverter attributeKeyConverter)
public static Record convert(AttributeSettings uam, com.endeca.mdex.conversation.Record csRec)
attributes
- - MDEX attributes from the data source which created the discovery service recordcsRec
- - the record
public static Record convert(AttributeSettings uam, com.endeca.mdex.conversation.Record csRec, AttributeKeyConverter attributeKeyConverter)
public static Record convert(RecordSpec recordSpec, com.endeca.mdex.conversation.Record csRec)
csRec
- - the conversation service record to convert.
public static Record convert(RecordSpec recordSpec, com.endeca.mdex.conversation.Record csRec, AttributeKeyConverter attributeKeyConverter)
recordSpec
- csRec
- attributeKeyConverter
-
public static Assignment convert(com.endeca.mdex.conversation.Assignment assignment)
assignment
- - the assignment to convert
public static Assignment convert(com.endeca.mdex.conversation.Assignment assignment, AttributeKeyConverter attributeKeyConverter)
assignment
- attributeKeyConverter
-
public static java.lang.Iterable<Record> convert(java.util.List<com.endeca.mdex.conversation.Record> csRecList)
csRecList
-
public static java.lang.Iterable<Record> convert(java.util.List<com.endeca.mdex.conversation.Record> csRecList, AttributeKeyConverter attributeKeyConverter)
public static java.lang.Iterable<Record> convert(AttributeSettings uam, java.util.List<com.endeca.mdex.conversation.Record> csRecList)
attributes
- csRecList
-
public static com.endeca.mdex.conversation.ValueSearch convert(com.endeca.mdex.conversation.ValueSearch attributeValueSearch, AttributeKeyConverter attributeKeyConverter)
attributeValueSearch
- attributeKeyConverter
-
public static com.endeca.mdex.conversation.NavigationMenu convert(com.endeca.mdex.conversation.NavigationMenu navigationMenu, AttributeKeyConverter attributeKeyConverter, java.util.Locale currentLocale)
navigationMenu
- attributeKeyConverter
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |