|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.endeca.portal.compare.CompareUtil
public class CompareUtil
This component provides the ability for an end user to compare multiple Endeca records side-by-side. It supports the comparison of both standard records and analytics records.
Nested Class Summary | |
---|---|
static class |
CompareUtil.RecordType
|
Field Summary | |
---|---|
static java.lang.String |
RECORD_TYPE
|
Constructor Summary | |
---|---|
CompareUtil()
|
Method Summary | |
---|---|
static CompareGridModel |
getCompareConfig(javax.portlet.PortletRequest request,
javax.portlet.PortletResponse response,
CompareEventParam cep,
java.util.Map<java.lang.String,FormatSettings> formatters,
SemanticView semanticView,
java.util.List<java.lang.String> columns)
Called when the compare action is invoked. |
static java.util.List<CompareGridRecordModel> |
getFilteredData(java.util.List<java.util.Map<java.lang.String,java.util.List<java.lang.String>>> records,
SemanticView mergedSemanticView,
javax.portlet.PortletRequest request,
CompareUtil.RecordType recordType,
java.util.Map<java.lang.String,FormatSettings> formatters,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> referenceMap)
Filter the data according to the attribute settings in preferences and control panel |
protected static java.lang.String[] |
getRecordIds(javax.portlet.PortletRequest request,
java.lang.String ids,
CompareUtil.RecordType type)
Returns the IDs of the records required. |
static java.util.List<java.util.Map<java.lang.String,java.util.List<java.lang.String>>> |
getRecords(javax.portlet.PortletRequest request,
java.lang.String[] recordIDs,
CompareUtil.RecordType recordType,
DataSource ds,
SemanticView semanticView,
java.util.List<java.lang.String> columns,
java.util.Map<java.lang.String,FormatSettings> formatters)
Returns the a list of records that contain all the attribute values of it |
protected static CompareUtil.RecordType |
getRecordType(javax.portlet.PortletRequest request,
javax.portlet.PortletResponse response,
java.lang.String dsId)
Returns the record type. |
protected static java.lang.String[] |
removeEmptyIds(java.lang.String[] recordIds)
Removes the empty ids in the id list |
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 RECORD_TYPE
Constructor Detail |
---|
public CompareUtil()
Method Detail |
---|
public static CompareGridModel getCompareConfig(javax.portlet.PortletRequest request, javax.portlet.PortletResponse response, CompareEventParam cep, java.util.Map<java.lang.String,FormatSettings> formatters, SemanticView semanticView, java.util.List<java.lang.String> columns) throws java.lang.Exception
java.lang.Exception
protected static java.lang.String[] getRecordIds(javax.portlet.PortletRequest request, java.lang.String ids, CompareUtil.RecordType type) throws javax.portlet.PortletException, CompareException
request
-
javax.portlet.PortletException
CompareException
protected static java.lang.String[] removeEmptyIds(java.lang.String[] recordIds)
recordIds
- request
- public static java.util.List<java.util.Map<java.lang.String,java.util.List<java.lang.String>>> getRecords(javax.portlet.PortletRequest request, java.lang.String[] recordIDs, CompareUtil.RecordType recordType, DataSource ds, SemanticView semanticView, java.util.List<java.lang.String> columns, java.util.Map<java.lang.String,FormatSettings> formatters) throws CompareException, javax.portlet.PortletException
request
- recordIDs
-
javax.portlet.PortletException
- - if the exception we catch is something we cannot handle
CompareException
- - if the exception we catch is something we can handleprotected static CompareUtil.RecordType getRecordType(javax.portlet.PortletRequest request, javax.portlet.PortletResponse response, java.lang.String dsId) throws javax.portlet.PortletException
request
-
javax.portlet.PortletException
public static java.util.List<CompareGridRecordModel> getFilteredData(java.util.List<java.util.Map<java.lang.String,java.util.List<java.lang.String>>> records, SemanticView mergedSemanticView, javax.portlet.PortletRequest request, CompareUtil.RecordType recordType, java.util.Map<java.lang.String,FormatSettings> formatters, java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> referenceMap)
records
- The records get from MDEXexistedSemanticView
- request
- recordType
- The type of record passed inisNewEvent
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |