Interface OdfRestrictionRule

    • 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