Class CmsConfigurationBean
java.lang.Object
org.opencms.jsp.search.config.parser.simplesearch.CmsConfigurationBean
The list configuration data.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum representing how filter queries should be combined in a search. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringParameter field key.static final StringParameter field key.static final StringParameter field key.static final StringParameter field key.static final StringParameter field key.static final StringParameter field key.static final StringParameter field key. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCategoryFolderFilter(CmsCategoryFolderRestrictionBean listCategoryFolderRestrictionBean) Add a combined category-folder restriction.Returns the additional content parameters.Returns the black list.Returns the categories.Returns the combined category-folder restrictions.Gets the category mode.Gets the date restriction.Returns the display types.Gets the filter query.Returns the folders.Returns the Geo filter.Returns the number of results to return maximally, ornullif not explicitly specified.Returns the parameter map.getParameterValue(String key) Returns the parameter by name.Returns the preconfigured restrictions.static StringgetResourceTypeForDisplayType(String displayType) Extracts the resource type name from a display type string.Gets the sort order.getTypes()Returns the search types.booleanReturns a flag, indicating if there are preconfigured restrictions.booleanReturns a flag, indicating if there are preconfigured restrictions for the provided type.booleanReturns the 'show expired' setting.voidsetAdditionalParameters(Map<String, String> additionalParameters) Sets the additional content parameters.voidsetBlacklist(List<CmsUUID> blacklist) Sets the blacklist.voidsetCategories(List<String> categories) Sets the categories.voidsetCategoryMode(CmsConfigurationBean.CombinationMode categoryMode) Sets the category mode.voidsetDateRestriction(I_CmsDateRestriction restriction) Sets the date restrictions.voidsetDisplayTypes(List<String> displayTypes) Sets the display types.voidsetFolders(List<String> folders) Sets the folders.voidsetGeoFilter(CmsGeoFilterBean geoFilter) Sets the Geo filter.voidsetParameterValue(String name, String value) Sets the parameter by name.voidsetPreconfiguredRestrictions(CmsRestrictionsBean restrictionBean) Set the preconfigured restrictions.
-
Field Details
-
N_TITLE
Parameter field key.- See Also:
-
PARAM_TITLE
Parameter field key.- See Also:
-
PARAM_FILTER_MULTI_DAY
Parameter field key.- See Also:
-
PARAM_FILTER_QUERY
Parameter field key.- See Also:
-
PARAM_SORT_ORDER
Parameter field key.- See Also:
-
PARAM_SHOW_EXPIRED
Parameter field key.- See Also:
-
PARAM_MAX_RESULTS
Parameter field key.- See Also:
-
-
Constructor Details
-
CmsConfigurationBean
public CmsConfigurationBean()Constructor.
-
-
Method Details
-
getResourceTypeForDisplayType
Extracts the resource type name from a display type string.- Parameters:
displayType- the display type- Returns:
- the resource type name
-
addCategoryFolderFilter
public void addCategoryFolderFilter(CmsCategoryFolderRestrictionBean listCategoryFolderRestrictionBean) Add a combined category-folder restriction.- Parameters:
listCategoryFolderRestrictionBean- the category-folder restriction to add.
-
getAdditionalParameters
Returns the additional content parameters.- Returns:
- the additional content parameters
-
getBlacklist
Returns the black list.- Returns:
- the black list
-
getCategories
Returns the categories.- Returns:
- the categories
-
getCategoryFolderRestrictions
Returns the combined category-folder restrictions.- Returns:
- the combined category-folder restrictions
-
getCategoryMode
Gets the category mode.- Returns:
- the category mode
-
getDateRestriction
Gets the date restriction.- Returns:
- the date restriction
-
getDisplayTypes
Returns the display types.- Returns:
- the display types
-
getFilterQuery
Gets the filter query.- Returns:
- the filter query
-
getFolders
Returns the folders.- Returns:
- the folders
-
getGeoFilter
Returns the Geo filter.- Returns:
- the Geo filter
-
getMaximallyReturnedResults
Returns the number of results to return maximally, ornullif not explicitly specified.- Returns:
- the number of results to return maximally, or
nullif not explicitly specified.
-
getParameters
Returns the parameter map.- Returns:
- the parameters
-
getParameterValue
Returns the parameter by name.- Parameters:
key- the parameter name- Returns:
- the parameter value
-
getPreconfiguredRestrictions
Returns the preconfigured restrictions.- Returns:
- the preconfigured restrictions.
-
getSortOrder
Gets the sort order.- Returns:
- the sort order
-
getTypes
Returns the search types.- Returns:
- the search types
-
hasPreconfiguredRestrictions
Returns a flag, indicating if there are preconfigured restrictions.- Returns:
trueiff there are preconfiugred restrictions,falseotherwise.
-
hasTypeSpecificRestriction
Returns a flag, indicating if there are preconfigured restrictions for the provided type.- Parameters:
type- the type to check the existence of preconfigured restrictions for.- Returns:
trueiff there are preconfigured restrictions for the provided type,falseotherwise.
-
isShowExpired
Returns the 'show expired' setting.- Returns:
- the 'show expired' setting
-
setAdditionalParameters
Sets the additional content parameters.- Parameters:
additionalParameters- the additional content parameters to set
-
setBlacklist
Sets the blacklist.- Parameters:
blacklist- the blacklist
-
setCategories
Sets the categories.- Parameters:
categories- the categories
-
setCategoryMode
Sets the category mode.- Parameters:
categoryMode- the category mode to set
-
setDateRestriction
Sets the date restrictions.- Parameters:
restriction- the date restrictions
-
setDisplayTypes
Sets the display types.- Parameters:
displayTypes- the display types
-
setFolders
Sets the folders.- Parameters:
folders- the folders
-
setGeoFilter
Sets the Geo filter.- Parameters:
geoFilter- the Geo filter
-
setParameterValue
Sets the parameter by name.- Parameters:
name- the parameter namevalue- the parameter value
-
setPreconfiguredRestrictions
Set the preconfigured restrictions.- Parameters:
restrictionBean- the restrictions to set.
-