Interface OdfRestrictionRule
- All Known Implementing Classes:
OdfAndRestrictionRule,OdfAttributeRestrictionRule,OdfNotRestrictionRule,OdfOrgunitRestrictionRule,OdfOrRestrictionRule
public interface OdfRestrictionRule
Interface to represent a rule for an ODF restriction
-
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines if this program is part of this restrictionTranslate the restriction into an expression that can be used for repository query.getQuery()Translate the restriction into a Solr query that can be used for search.booleanIndicate if this restriction is related to orgunit
-
Method Details
-
getExpression
Translate the restriction into an expression that can be used for repository query.- Returns:
- The restriction expression
-
getQuery
Translate the restriction into a Solr query that can be used for search.- Returns:
- The restriction query
-
contains
Determines if this program is part of this restriction- Parameters:
program- The program- Returns:
trueIf 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
-