java.lang.Object
org.opencms.jsp.search.config.parser.simplesearch.preconfiguredrestrictions.CmsRestrictionsBean

public class CmsRestrictionsBean extends Object
Wraps the preconfigured restrictions.
  • Constructor Details

  • Method Details

    • addRestriction

      public void addRestriction(String ruleString, Collection<String> values)
      Add a preconfigured restriction.
      Parameters:
      ruleString - the rule for the restriction.
      values - the values for the restriction.
    • getRestrictionsForType

      Returns the restrictions for the provided type.
      Parameters:
      type - the type to get the restrictions for.
      Returns:
      the restrictions for the provided type.
    • hasRestrictionForType

      public boolean hasRestrictionForType(String type)
      Returns a flag, indicating if there are restrictions for the provided type.
      Parameters:
      type - the type to check.
      Returns:
      true iff there are restrictions for the provided type, false.
    • hasRestrictions

      public boolean hasRestrictions()
      Returns a flag, indicating if there are restrictions at all.
      Returns:
      true iff there are restrictions, false.