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
Modifier and TypeMethodDescriptionboolean
Determines if this program is part of this restrictionTranslate the restriction into an expression that can be used for repository query.boolean
Indicate 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
-
contains
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
-