public class CustomerSupportRefineByController
extends DefaultWidgetController
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONTEXT |
static java.lang.String |
CURRENT_SEARCH |
static java.lang.String |
CURRENT_SEARCH_SEPARATOR |
static java.lang.String |
CUSTOMERSUPPORTBACKOFFICE_REFINE_BY |
static java.lang.String |
GET_NAME |
static java.lang.String |
GROUP_VALUES_SEPARATOR |
static java.lang.String |
REFINE_BY_CONTAINER |
static java.lang.String |
SOCKET_IN_ADVANCED_SEARCH_INIT_CONTEXT |
static java.lang.String |
SOCKET_IN_NODE_SELECTED |
static java.lang.String |
SOCKET_OUT_OUTPUT_CONTEXT |
static java.lang.String |
TYPE_CODE |
| Constructor and Description |
|---|
CustomerSupportRefineByController() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addConditionList(AdvancedSearchData searchData,
java.util.Map<java.lang.String,java.util.List<SearchConditionData>> searchExpressions)
Adds refine by filters conditions to the existing ones.
|
protected void |
addSearchCondition(Checkbox checkbox,
java.util.Map<java.lang.String,java.util.List<SearchConditionData>> searchFieldConditions,
AdvancedSearchData advancedSearchData)
Adds the search conditions associated to the selected
Checkbox |
protected FlexibleSearchQuery |
buildSearchQuery(java.lang.String typeCode,
java.lang.String searchValue)
Builds a
FlexibleSearchQuery |
void |
completeAdvancedSearchInitContext(AdvancedSearchInitContext context)
Adds refine by filters to the initial given
AdvancedSearchInitContext. |
protected Div |
getCustomerSupportFilterContainer() |
protected Label |
getEmptyFilters() |
protected EnumerationService |
getEnumerationService() |
protected FlexibleSearchService |
getFlexibleSearchService() |
protected RefineBy |
getRefineByConfig() |
protected TypeFacade |
getTypeFacade() |
void |
initialize(Component comp) |
protected DataType |
loadDataTypeForCode(java.lang.String typeCode)
Loads a
DataType by its code. |
protected RefineBy |
loadRefineByConfiguration(java.lang.String typeCode)
Loads the configuration of the refine by according to the given type.
|
void |
onNodeSelected(NavigationNode nodeSelected)
Resets the refine by widget on
NavigationNode selection. |
protected void |
renderCheckbox(java.lang.String searchFieldName,
java.util.ArrayList searchFieldPossibleValues,
java.lang.String typeCode,
SearchValue searchFieldValue,
Div searchFieldDiv)
Render a checkbox with her associated hidden
Label which contains the search value. |
protected void |
renderRefineByFromConfig(java.lang.String typeCode)
Renders the filters based on customersupportbackoffice-refine-by configuration.
|
protected void |
resetWidget()
Resets the content of the filter container.
|
void |
setCustomerSupportFilterContainer(Div customersupportFilterContainer) |
void |
setEmptyFilters(Label emptyFilters) |
void |
setEnumerationService(EnumerationService enumerationService) |
void |
setFlexibleSearchService(FlexibleSearchService flexibleSearchService) |
void |
setRefineByConfig(RefineBy refineByConfig) |
void |
setTypeFacade(TypeFacade typeFacade) |
protected void |
submitFilter(Event event)
Submits a new search on checkbox selection.
|
public static final java.lang.String SOCKET_IN_NODE_SELECTED
public static final java.lang.String SOCKET_IN_ADVANCED_SEARCH_INIT_CONTEXT
public static final java.lang.String SOCKET_OUT_OUTPUT_CONTEXT
public static final java.lang.String GET_NAME
public static final java.lang.String CUSTOMERSUPPORTBACKOFFICE_REFINE_BY
public static final java.lang.String GROUP_VALUES_SEPARATOR
public static final java.lang.String REFINE_BY_CONTAINER
public static final java.lang.String CURRENT_SEARCH
public static final java.lang.String TYPE_CODE
public static final java.lang.String CONTEXT
public static final java.lang.String CURRENT_SEARCH_SEPARATOR
public void onNodeSelected(NavigationNode nodeSelected)
NavigationNode selection.nodeSelected - the selected NavigationNodepublic void initialize(Component comp)
public void completeAdvancedSearchInitContext(AdvancedSearchInitContext context)
AdvancedSearchInitContext.context - the AdvancedSearchInitContext inputprotected void addConditionList(AdvancedSearchData searchData,
java.util.Map<java.lang.String,java.util.List<SearchConditionData>> searchExpressions)
searchData - the original {link AdvancedSearchData}searchExpressions - the search expressions defined in the configurationprotected void addSearchCondition(Checkbox checkbox,
java.util.Map<java.lang.String,java.util.List<SearchConditionData>> searchFieldConditions,
AdvancedSearchData advancedSearchData)
Checkboxcheckbox - the selected CheckboxsearchFieldConditions - the Map> containing all the search conditionsadvancedSearchData - the AdvancedSearchDataprotected FlexibleSearchQuery buildSearchQuery(java.lang.String typeCode, java.lang.String searchValue)
FlexibleSearchQuerytypeCode - the DataType#codesearchValue - the search valueFlexibleSearchQueryprotected DataType loadDataTypeForCode(java.lang.String typeCode)
DataType by its code.typeCode - the DataType#codeDataType retrievedprotected RefineBy loadRefineByConfiguration(java.lang.String typeCode)
typeCode - the DataType#codeRefineByprotected void renderCheckbox(java.lang.String searchFieldName,
java.util.ArrayList searchFieldPossibleValues,
java.lang.String typeCode,
SearchValue searchFieldValue,
Div searchFieldDiv)
Label which contains the search value.searchFieldName - the name of the field to search onsearchFieldPossibleValues - the list of search expressions to searchtypeCode - the DataType#codesearchFieldValue - the value of the field to searchsearchFieldDiv - the Div to which the checkbox will be addedprotected void renderRefineByFromConfig(java.lang.String typeCode)
typeCode - the DataType#codeprotected void resetWidget()
protected void submitFilter(Event event)
event - the click event on one of the checkboxesprotected RefineBy getRefineByConfig()
public void setRefineByConfig(RefineBy refineByConfig)
protected Div getCustomerSupportFilterContainer()
public void setCustomerSupportFilterContainer(Div customersupportFilterContainer)
protected Label getEmptyFilters()
public void setEmptyFilters(Label emptyFilters)
protected TypeFacade getTypeFacade()
public void setTypeFacade(TypeFacade typeFacade)
protected FlexibleSearchService getFlexibleSearchService()
public void setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
protected EnumerationService getEnumerationService()
public void setEnumerationService(EnumerationService enumerationService)
Copyright © 2018 SAP SE. All Rights Reserved.