Class DiscoverySearchFilter
java.lang.Object
org.dspace.discovery.configuration.DiscoverySearchFilter
- Direct Known Subclasses:
DiscoverySearchFilterFacet
- Author:
- Kevin Van de Velde (kevin at atmire dot com)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetType()Returns the type of the DiscoverySearchFilterbooleanThis method returns a boolean value indicating whether the search filter should be open or closed by default in the UIvoidsetIndexFieldName(String indexFieldName) voidsetIsOpenByDefault(boolean isOpenByDefault) Sets the DiscoverySearchFilter to be open by default or not depending on the parameter givenvoidsetMetadataFields(List<String> metadataFields) voidsetPageSize(int pageSize) voidSets the type of the DiscoverySearchFilter to the one given in the parameter if it matches a set of possible types The possible types are described in:DiscoveryConfigurationParametersFor the DiscoverySearchFilter only the TYPE_TEXT, TYPE_DATE and TYPE_HIERARCHICAL are allowed
-
Field Details
-
indexFieldName
-
metadataFields
-
type
-
FILTER_TYPE_DEFAULT
- See Also:
-
isOpenByDefault
protected boolean isOpenByDefault -
pageSize
protected int pageSize
-
-
Constructor Details
-
DiscoverySearchFilter
public DiscoverySearchFilter()
-
-
Method Details
-
getIndexFieldName
-
setIndexFieldName
-
getMetadataFields
-
setMetadataFields
-
getType
Returns the type of the DiscoverySearchFilter- Returns:
- The type of the DiscoverySearchFilter
-
setType
Sets the type of the DiscoverySearchFilter to the one given in the parameter if it matches a set of possible types The possible types are described in:DiscoveryConfigurationParametersFor the DiscoverySearchFilter only the TYPE_TEXT, TYPE_DATE and TYPE_HIERARCHICAL are allowed- Parameters:
type- The type for this DiscoverySearchFilter- Throws:
DiscoveryConfigurationException- If none of the types match, this error will be thrown indicating this
-
getFilterType
-
isOpenByDefault
public boolean isOpenByDefault()This method returns a boolean value indicating whether the search filter should be open or closed by default in the UI- Returns:
- A boolean value indicating whether the search filter in the ui should be open or closed by default
-
setIsOpenByDefault
public void setIsOpenByDefault(boolean isOpenByDefault) Sets the DiscoverySearchFilter to be open by default or not depending on the parameter given- Parameters:
isOpenByDefault- A boolean value that will indicate whether this DiscoverySearchFilter should be open by default or not in the UI.
-
getPageSize
public int getPageSize() -
setPageSize
public void setPageSize(int pageSize)
-