Class DefaultSearchFieldGroupConfiguration
java.lang.Object
de.hybris.platform.cockpit.services.config.impl.DefaultSearchFieldGroupConfiguration
- All Implemented Interfaces:
SearchFieldGroupConfiguration
public class DefaultSearchFieldGroupConfiguration
extends Object
implements SearchFieldGroupConfiguration
Default
SearchFieldGroupConfiguration implementation.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a newDefaultSearchFieldGroupConfigurationinstance with the name set toname. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSearchFieldConfiguration(SearchFieldConfiguration fieldConfig) Assigns the search fieldfieldConfigto this group if it's not already assigned to this group or any of its sub groups.Returns allsearch field configurationsin this group and its sub groups.Returns all the sub groups held by thisSearchFieldGroupConfigurationand its sub groups.getLabel()getName()Returns the name set for this group configuration.Returns this group's parent group.Returns allsearch field configurationsdirectly assigned to thisSearchFieldGroupConfiguration.Returns all the sub groups directly held by thisSearchFieldGroupConfiguration.intgetSize()Returns the number ofsearch fieldsdirectly assigned by this group.intReturns the total numbersearch fieldsassigned to this group and any of its sub groups.booleanReturns whether this groups is visible or not.voidsetAllLabels(Map<LanguageModel, String> labels) voidSets the name of this group toname.voidSets this group's parent group toparentGroup.voidsetSearchFieldConfigurations(List<SearchFieldConfiguration> searchFieldConfigs) Sets the search fields directly assigned to this group to the elements ofsearchFieldConfigs.voidsetSearchFieldGroupConfigurations(List<? extends SearchFieldGroupConfiguration> groupConfigs) Sets the sub groups of this group togroupConfigs.voidsetVisible(boolean visible) Sets the visibility of this group tovisible.
-
Constructor Details
-
DefaultSearchFieldGroupConfiguration
Creates a newDefaultSearchFieldGroupConfigurationinstance with the name set toname.- Parameters:
name- name of this group
-
-
Method Details
-
setName
Sets the name of this group toname.- Parameters:
name- the name
-
setVisible
public void setVisible(boolean visible) Sets the visibility of this group tovisible.- Parameters:
visible-truemarks this group as visible,falseas invisible
-
setSearchFieldGroupConfigurations
public void setSearchFieldGroupConfigurations(List<? extends SearchFieldGroupConfiguration> groupConfigs) Sets the sub groups of this group togroupConfigs.- Parameters:
groupConfigs- groups to be contained in this group
-
addSearchFieldConfiguration
Assigns the search fieldfieldConfigto this group if it's not already assigned to this group or any of its sub groups.- Parameters:
fieldConfig- the search field to assign to this group- See Also:
-
setSearchFieldConfigurations
Sets the search fields directly assigned to this group to the elements ofsearchFieldConfigs.- Parameters:
searchFieldConfigs- the search fields to be directly assigned to this group- See Also:
-
setParentSearchFieldGroupConfiguration
Sets this group's parent group toparentGroup.- Parameters:
parentGroup- this group's parent group
-
getAllSearchFieldConfigurations
Description copied from interface:SearchFieldGroupConfigurationReturns allsearch field configurationsin this group and its sub groups.- Specified by:
getAllSearchFieldConfigurationsin interfaceSearchFieldGroupConfiguration- Returns:
- all search field configurations assigned to this group or any of its sub groups
-
getAllSearchFieldGroupConfigurations
Description copied from interface:SearchFieldGroupConfigurationReturns all the sub groups held by thisSearchFieldGroupConfigurationand its sub groups.- Specified by:
getAllSearchFieldGroupConfigurationsin interfaceSearchFieldGroupConfiguration- Returns:
- the sub groups of this
SearchFieldGroupConfigurationand their sub groups - See Also:
-
getName
Description copied from interface:SearchFieldGroupConfigurationReturns the name set for this group configuration.- Specified by:
getNamein interfaceSearchFieldGroupConfiguration- Returns:
- the name
-
getParentSearchFieldGroupConfiguration
Description copied from interface:SearchFieldGroupConfigurationReturns this group's parent group.- Specified by:
getParentSearchFieldGroupConfigurationin interfaceSearchFieldGroupConfiguration- Returns:
- this group's parent group or
nullif this group is a root group
-
getSearchFieldConfigurations
Description copied from interface:SearchFieldGroupConfigurationReturns allsearch field configurationsdirectly assigned to thisSearchFieldGroupConfiguration.- Specified by:
getSearchFieldConfigurationsin interfaceSearchFieldGroupConfiguration- Returns:
- all search field configurations assigned directly to this group
- See Also:
-
getSearchFieldGroupConfigurations
Description copied from interface:SearchFieldGroupConfigurationReturns all the sub groups directly held by thisSearchFieldGroupConfiguration.- Specified by:
getSearchFieldGroupConfigurationsin interfaceSearchFieldGroupConfiguration- Returns:
- the direct sub groups of this group
- See Also:
-
isVisible
public boolean isVisible()Description copied from interface:SearchFieldGroupConfigurationReturns whether this groups is visible or not.- Specified by:
isVisiblein interfaceSearchFieldGroupConfiguration- Returns:
trueif visible,falseotherwise
-
getSize
public int getSize()Description copied from interface:SearchFieldGroupConfigurationReturns the number ofsearch fieldsdirectly assigned by this group.- Specified by:
getSizein interfaceSearchFieldGroupConfiguration- Returns:
- the number of search fields directly assigned to this group
- See Also:
-
getTotalSize
public int getTotalSize()Description copied from interface:SearchFieldGroupConfigurationReturns the total numbersearch fieldsassigned to this group and any of its sub groups.- Specified by:
getTotalSizein interfaceSearchFieldGroupConfiguration- Returns:
- the total number of search fields held by this group and its sub groups
-
getAllLabels
- Specified by:
getAllLabelsin interfaceSearchFieldGroupConfiguration
-
getLabel
- Specified by:
getLabelin interfaceSearchFieldGroupConfiguration
-
getLabel
- Specified by:
getLabelin interfaceSearchFieldGroupConfiguration
-
setAllLabels
-
getLabelWithFallback
-
getLabelWithFallback
-