public class DiscoverySearchFilter extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
FILTER_TYPE_DEFAULT |
protected String |
indexFieldName |
protected boolean |
isOpenByDefault |
protected List<String> |
metadataFields |
protected int |
pageSize |
protected String |
type |
| Constructor and Description |
|---|
DiscoverySearchFilter() |
| Modifier and Type | Method and Description |
|---|---|
String |
getFilterType() |
String |
getIndexFieldName() |
List<String> |
getMetadataFields() |
int |
getPageSize() |
String |
getType()
Returns the type of the DiscoverySearchFilter
|
boolean |
isOpenByDefault()
This method returns a boolean value indicating whether the search filter
should be open or closed by default in the UI
|
void |
setIndexFieldName(String indexFieldName) |
void |
setIsOpenByDefault(boolean isOpenByDefault)
Sets the DiscoverySearchFilter to be open by default or not depending on the parameter given
|
void |
setMetadataFields(List<String> metadataFields) |
void |
setPageSize(int pageSize) |
void |
setType(String type)
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:
DiscoveryConfigurationParameters
For the DiscoverySearchFilter only the TYPE_TEXT, TYPE_DATE and TYPE_HIERARCHICAL are allowed |
protected String indexFieldName
protected String type
public static final String FILTER_TYPE_DEFAULT
protected boolean isOpenByDefault
protected int pageSize
public String getIndexFieldName()
public void setIndexFieldName(String indexFieldName)
public String getType()
public void setType(String type) throws DiscoveryConfigurationException
DiscoveryConfigurationParameters
For the DiscoverySearchFilter only the TYPE_TEXT, TYPE_DATE and TYPE_HIERARCHICAL are allowedtype - The type for this DiscoverySearchFilterDiscoveryConfigurationException - If none of the types match, this error will be thrown indiciating thispublic String getFilterType()
public boolean isOpenByDefault()
public void setIsOpenByDefault(boolean isOpenByDefault)
isOpenByDefault - A boolean value that will indicate whether this DiscoverySearchFilter
should be open by default or not in the UI.public int getPageSize()
public void setPageSize(int pageSize)
Copyright © 2019 DuraSpace. All rights reserved.