Class CmsConfigurationBean
java.lang.Object
org.opencms.jsp.search.config.parser.simplesearch.CmsConfigurationBean
The list configuration data.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Enum representing how filter queries should be combined in a search. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Parameter field key.static final String
Parameter field key.static final String
Parameter field key.static final String
Parameter field key.static final String
Parameter field key.static final String
Parameter field key.static final String
Parameter field key. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCategoryFolderFilter
(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, ornull
if not explicitly specified.Returns the parameter map.getParameterValue
(String key) Returns the parameter by name.Returns the preconfigured restrictions.static String
getResourceTypeForDisplayType
(String displayType) Extracts the resource type name from a display type string.Gets the sort order.getTypes()
Returns the search types.boolean
Returns a flag, indicating if there are preconfigured restrictions.boolean
Returns a flag, indicating if there are preconfigured restrictions for the provided type.boolean
Returns the 'show expired' setting.void
setAdditionalParameters
(Map<String, String> additionalParameters) Sets the additional content parameters.void
setBlacklist
(List<CmsUUID> blacklist) Sets the blacklist.void
setCategories
(List<String> categories) Sets the categories.void
setCategoryMode
(CmsConfigurationBean.CombinationMode categoryMode) Sets the category mode.void
setDateRestriction
(I_CmsDateRestriction restriction) Sets the date restrictions.void
setDisplayTypes
(List<String> displayTypes) Sets the display types.void
setFolders
(List<String> folders) Sets the folders.void
setGeoFilter
(CmsGeoFilterBean geoFilter) Sets the Geo filter.void
setParameterValue
(String name, String value) Sets the parameter by name.void
setPreconfiguredRestrictions
(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, ornull
if not explicitly specified.- Returns:
- the number of results to return maximally, or
null
if 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:
true
iff there are preconfiugred restrictions,false
otherwise.
-
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:
true
iff there are preconfigured restrictions for the provided type,false
otherwise.
-
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.
-