Class InCommunityCondition
java.lang.Object
org.dspace.content.logic.condition.AbstractCondition
org.dspace.content.logic.condition.InCommunityCondition
- All Implemented Interfaces:
Condition,LogicalStatement
A condition that accepts a list of community handles and returns true
if the item belongs to any of them.
- Author:
- Kim Shepherd
-
Field Summary
Fields inherited from class org.dspace.content.logic.condition.AbstractCondition
collectionService, handleService, itemService -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.dspace.content.logic.condition.AbstractCondition
getParameters, setItemService, setParameters
-
Constructor Details
-
InCommunityCondition
public InCommunityCondition()
-
-
Method Details
-
getResult
Return true if item is in one of the specified collections Return false if not- Specified by:
getResultin interfaceCondition- Specified by:
getResultin interfaceLogicalStatement- Overrides:
getResultin classAbstractCondition- Parameters:
context- DSpace contextitem- Item to evaluate- Returns:
- boolean result of evaluation
- Throws:
LogicalStatementException
-