Class OdfProgramRestriction

java.lang.Object
org.ametys.plugins.odfweb.restrictions.OdfProgramRestriction

public class OdfProgramRestriction extends Object
A restriction on the ODF programs of a site.
  • Constructor Details

  • Method Details

    • getId

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

      Label getter
      Returns:
      The label
    • 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

      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