Package org.dspace.content.logic
Class TrueFilter
java.lang.Object
org.dspace.content.logic.TrueFilter
- All Implemented Interfaces:
Filter,LogicalStatement,Aware,BeanNameAware
Extremely simple filter that always returns true!
Useful to pass to methods that expect a filter, in order to effectively say "all items".
This could be configured in Spring XML but it is more stable and reliable to have it hard-coded here
so that any broken configuration doesn't silently break parts of DSpace that expect it to work.
- Author:
- Kim Shepherd
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TrueFilter
public TrueFilter()
-
-
Method Details
-
getResult
Description copied from interface:FilterGet the result of logical evaluation for an item- Specified by:
getResultin interfaceFilter- Specified by:
getResultin interfaceLogicalStatement- Parameters:
context- DSpace contextitem- Item to evaluate- Returns:
- boolean
- Throws:
LogicalStatementException
-
setBeanName
- Specified by:
setBeanNamein interfaceBeanNameAware
-
getName
Description copied from interface:FilterGet the name of a filter. This can be used by filters which make use of BeanNameAware to return the bean name.
-