Interface OdfRestrictionRule
-
- All Known Implementing Classes:
OdfAndRestrictionRule
,OdfMetadataRestrictionRule
,OdfNotRestrictionRule
,OdfOrgunitRestrictionRule
,OdfOrRestrictionRule
public interface OdfRestrictionRule
Interface to represent a rule for an ODF restriction
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
contains(Program program)
Determines if this program is part of this restrictionExpression
getExpression()
Translate the restriction into an expression that can be used for repository query.boolean
hasOrgunitRestrictions()
Indicate if this restriction is related to orgunit
-
-
-
Method Detail
-
getExpression
Expression getExpression()
Translate the restriction into an expression that can be used for repository query.- Returns:
- The restriction expression
-
contains
boolean contains(Program program)
Determines if this program is part of this restriction- Parameters:
program
- The program- Returns:
true
If the program is part of this restriction
-
hasOrgunitRestrictions
boolean hasOrgunitRestrictions()
Indicate if this restriction is related to orgunit- Returns:
- true if it is the case
-
-