Class OdfProgramRestriction

    • Method Detail

      • getId

        public String getId()
        Id getter
        Returns:
        The id
      • contains

        public boolean contains​(Program program)
        Determines if the current restriction contains the program
        Parameters:
        program - The program to check
        Returns:
        true if the program is part of the restrictions
      • getExpression

        public Expression getExpression()
        Translate the restriction into an expression that can be used for repository query.
        Returns:
        The restriction expression
      • hasOrgunitRestrictions

        public boolean hasOrgunitRestrictions()
        Indicate if this restriction is related to orgunit
        Returns:
        true if it is the case