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 Type
    Method
    Description
    boolean
    contains(Program program)
    Determines if this program is part of this restriction
    Translate 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

      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

      Indicate if this restriction is related to orgunit
      Returns:
      true if it is the case