@StableMinor(version="12.5", sinceVersion="9.0") public class SearchAggregationControl extends InputHiddenControl
SearchSource
.
The currentUserQuery
string is the current user search query (stored in the first time user typed a search query).
The aggregated
object is a map of aggregated values (that will be used to filter the big data query).
Sets source parameter values
of aggregated values
(filtered values) and
aggregations
(the aggregations
that will be performed in Big data API).
XML data available for XSLT rendering:
Modifier and Type | Field and Description |
---|---|
protected Map<DocumentTypeField,Set<Object>> |
aggregatedValues |
protected Map<String,String> |
aggregationIdsByFieldFullId |
protected String |
currentUserQuery |
FORCE_CASE_LOWER, FORCE_CASE_NONE, FORCE_CASE_UPPER, forceCase, requestParameterName, UNKNOWN_DATA_TYPE, value, valuePreviouslySet
childControls, controlContainer, controlDefinitionNode, controlResource, douiContext, hasValidatorSubControls, isValid, locale, ON_EVENT_CLOSE_WINDOW, ON_EVENT_LINK, ON_EVENT_POPUP_LINK_OR_RUNTIME_INTERFACE, ON_EVENT_POPUP_RUNTIME_INTERFACE, ON_EVENT_PROCESS_ACTION, ON_EVENT_RENDER_ACTION, ON_EVENT_REPLACE_INTERFACE, ON_EVENT_SCRIPT, ON_EVENT_VALIDATE, onEventScripts, PARAMETER_TYPE_FIRST_SELECTED, PARAMETER_TYPE_GET_VALUE, parentControl, resources, type, VALIDATION_SELECTED_MANY, VALIDATION_SELECTED_ONE
Constructor and Description |
---|
SearchAggregationControl() |
Modifier and Type | Method and Description |
---|---|
protected String |
getAggregatedValuesXML(DocumentTypeField field,
Set<Object> aggregatedValues)
Returns a XML string containing the aggregated values (user's applied filters).
The expected XML string format is as follows: |
protected String |
getAggregationId(DocumentTypeField field)
Returns the aggregation identifier to be used in aggregation of the given field.
|
protected String |
getAggregationResultXML(DocumentTypeField field,
IAggregationResult result)
Returns a XML string of the given aggregation results for the given field.
The expected XML string format is as follows: |
protected List<IAggregation> |
getAggregations()
Returns the aggregations that will be performed in search.
|
protected Collection<DocumentTypeField> |
getFieldsToBeAggregated()
Returns a collection of fields that will be aggregated in search.
|
void |
loadFromRequest() |
void |
setRenderData() |
protected void |
setSourceParameter(Source source,
String parameterName)
Sets the parameter with the given name in the given source.
|
protected void |
setValueFromSource() |
autoAddValidators
buildSubControls, fixedIdentifierRequired, init
autoAddDateTimeValueValidator, autoAddDoubleValueValidator, autoAddFileSizeValidator, autoAddIntegerValueValidator, autoAddLengthValidator, autoAddLongValueValidator, autoAddRequiredValueValidator, createConverter, createDataType, getDataId, getFieldName, getProcessActionHandlerParameterName, getReload, getRequestHelpDefinition, getRuntimeDefaultSource, getSource, getSourceById, getSourceContext, getUnboundedConverter, setDefaultValue, setRawValue, setReload, setSourceParameter, setValid, setValueFromSource, update
convertValueToControlValue, getConverter, getDataType, getDefaultValue, getParameterValue, getProcessActionIds, getRequestParameterName, getValue, getValue, getValueClass, initProcessActionIds, isTrim, loadSubControlFromRequest, loadSubControlsFromRequest, setProcessActionHandlerParameter, setProcessActionHandlerParameter, setProcessActionHandlerParameters, setSourceParameters, setTrim, setValue, valueIsArray
appendSubControl, appendSubControls, applyOnEventScripts, convertToStandardValue, createContainer, disconnect, generateControlId, generateControlIdPrefix, getAdditionalParameters, getAdditionalParameters, getAncestor, getChildControls, getClientEventHandlerScript, getControlResource, getId, getLocale, getName, getNamespace, getParentControl, getPrepareForReadScript, getRenderData, getResources, getScriptActionValidation, getStringsToLocalize, getType, getValidationScript, getWindowProperties, getWindowProperties, isRequired, isValid, localize, localizeStrings, processCustomTags, registerOnEventScript, removeChild, removeChildren, resolveVariable, setName, setRuntimeAttributes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConverter, getProcessActionIds, getValue, getValue, setProcessActionHandlerParameters, setValue
createContainer, disconnect, getChildControls, getControlResource, getId, getName, getParentControl, getPrepareForReadScript, getRenderData, getResources, getType, isValid, registerOnEventScript, removeChild, removeChildren, setRuntimeAttributes
getResources
protected Map<DocumentTypeField,Set<Object>> aggregatedValues
protected String currentUserQuery
public void loadFromRequest() throws PortalException
loadFromRequest
in interface IDataControl
loadFromRequest
in class DataBoundControl
PortalException
protected void setSourceParameter(Source source, String parameterName) throws PortalException
DataControl
setSourceParameter
in class DataControl
source
- the sourceparameterName
- the parameter namePortalException
protected void setValueFromSource() throws PortalException
setValueFromSource
in class DataBoundControl
PortalException
public void setRenderData() throws PortalException
setRenderData
in interface IControl
setRenderData
in class InputTextControl
PortalException
protected String getAggregatedValuesXML(DocumentTypeField field, Set<Object> aggregatedValues) throws PortalException
field
- the field that received the given filters.aggregatedValues
- the user's applied filters values.PortalException
protected String getAggregationResultXML(DocumentTypeField field, IAggregationResult result) throws PortalException
field
- the aggregation results' field.result
- the aggregation result.PortalException
protected Collection<DocumentTypeField> getFieldsToBeAggregated() throws PortalException
PortalException
protected List<IAggregation> getAggregations() throws PortalException
PortalException
protected String getAggregationId(DocumentTypeField field)
field
- the field.LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.