Class CmsRestrictionsBean


  • public class CmsRestrictionsBean
    extends java.lang.Object
    Wraps the preconfigured restrictions.
    • Method Detail

      • addRestriction

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

        public boolean hasRestrictionForType​(java.lang.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.