Class ReadableByGroupCondition
- java.lang.Object
-
- org.dspace.content.logic.condition.AbstractCondition
-
- org.dspace.content.logic.condition.ReadableByGroupCondition
-
- All Implemented Interfaces:
Condition,LogicalStatement
public class ReadableByGroupCondition extends AbstractCondition
A condition that accepts a group and action parameter and returns true if the group can perform the action on a given item- 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 ReadableByGroupCondition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetResult(Context context, Item item)Return true if this item allows a specified action (eg READ, WRITE, ADD) by a specified group-
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 this item allows a specified action (eg READ, WRITE, ADD) by a specified group- 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
-
-