Package org.dspace.app.rest.model
Class SearchConfigurationRest.Filter
- java.lang.Object
-
- org.dspace.app.rest.model.SearchConfigurationRest.Filter
-
- Enclosing class:
- SearchConfigurationRest
public static class SearchConfigurationRest.Filter extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSearchConfigurationRest.Filter.Operator
-
Field Summary
Fields Modifier and Type Field Description static StringOPERATOR_AUTHORITYstatic StringOPERATOR_CONTAINSstatic StringOPERATOR_EQUALSstatic StringOPERATOR_NOTAUTHORITYstatic StringOPERATOR_NOTCONTAINSstatic StringOPERATOR_NOTEQUALSstatic StringOPERATOR_QUERY
-
Constructor Summary
Constructors Constructor Description Filter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDefaultOperatorsToList()voidaddOperator(SearchConfigurationRest.Filter.Operator operator)booleanequals(Object object)StringgetFilter()List<SearchConfigurationRest.Filter.Operator>getOperators()intgetPageSize()StringgetType()This is the same type as described inDiscoverySearchFilter.getType()inthashCode()booleanisHasFacets()Specifies whether this filter has facets or notbooleanisOpenByDefault()See documentantion atDiscoverySearchFilter.isOpenByDefault()voidsetFilter(String filter)voidsetHasFacets(boolean hasFacets)Sets the hasFacets property of the filter class to the given booleanvoidsetOpenByDefault(boolean openByDefault)See documentantion atDiscoverySearchFilter.setIsOpenByDefault(boolean)voidsetPageSize(int pageSize)voidsetType(String type)This is the same type as described inDiscoverySearchFilter.setType(String)
-
-
-
Field Detail
-
OPERATOR_EQUALS
public static final String OPERATOR_EQUALS
- See Also:
- Constant Field Values
-
OPERATOR_NOTEQUALS
public static final String OPERATOR_NOTEQUALS
- See Also:
- Constant Field Values
-
OPERATOR_AUTHORITY
public static final String OPERATOR_AUTHORITY
- See Also:
- Constant Field Values
-
OPERATOR_NOTAUTHORITY
public static final String OPERATOR_NOTAUTHORITY
- See Also:
- Constant Field Values
-
OPERATOR_CONTAINS
public static final String OPERATOR_CONTAINS
- See Also:
- Constant Field Values
-
OPERATOR_NOTCONTAINS
public static final String OPERATOR_NOTCONTAINS
- See Also:
- Constant Field Values
-
OPERATOR_QUERY
public static final String OPERATOR_QUERY
- See Also:
- Constant Field Values
-
-
Method Detail
-
isHasFacets
public boolean isHasFacets()
Specifies whether this filter has facets or not- Returns:
- A boolean indicating whether this filter has facets or not
-
setHasFacets
public void setHasFacets(boolean hasFacets)
Sets the hasFacets property of the filter class to the given boolean- Parameters:
hasFacets- The boolean that the hasFacets property will be set to
-
getPageSize
public int getPageSize()
-
setPageSize
public void setPageSize(int pageSize)
-
getType
public String getType()
This is the same type as described inDiscoverySearchFilter.getType()- Returns:
- The type of this filter
-
setType
public void setType(String type)
This is the same type as described inDiscoverySearchFilter.setType(String)- Parameters:
type- The type for this Filter to be set to
-
isOpenByDefault
public boolean isOpenByDefault()
See documentantion atDiscoverySearchFilter.isOpenByDefault()
-
setOpenByDefault
public void setOpenByDefault(boolean openByDefault)
See documentantion atDiscoverySearchFilter.setIsOpenByDefault(boolean)
-
setFilter
public void setFilter(String filter)
-
getFilter
public String getFilter()
-
addOperator
public void addOperator(SearchConfigurationRest.Filter.Operator operator)
-
getOperators
public List<SearchConfigurationRest.Filter.Operator> getOperators()
-
addDefaultOperatorsToList
public void addDefaultOperatorsToList()
-
-