Class InCommunityCondition
- java.lang.Object
-
- org.dspace.content.logic.condition.AbstractCondition
-
- org.dspace.content.logic.condition.InCommunityCondition
-
- All Implemented Interfaces:
Condition,LogicalStatement
public class InCommunityCondition extends AbstractCondition
A condition that accepts a list of community handles and returns true if the item belongs to any of them.- Version:
- $Revision$
- Author:
- Kim Shepherd
-
-
Field Summary
-
Fields inherited from class org.dspace.content.logic.condition.AbstractCondition
collectionService, handleService, itemService
-
-
Constructor Summary
Constructors Constructor Description InCommunityCondition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetResult(Context context, Item item)Return true if item is in one of the specified collections Return false if not-
Methods inherited from class org.dspace.content.logic.condition.AbstractCondition
getParameters, setItemService, setParameters
-
-
-
-
Method Detail
-
getResult
public boolean getResult(Context context, Item item) throws LogicalStatementException
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
-
-