Class SiteParameterWrapper<T>

    • Field Detail

      • _siteTypes

        protected Set<String> _siteTypes
        The list of site types to which this parameter belongs, or null for no restriction.
    • Method Detail

      • getSiteTypes

        public Set<StringgetSiteTypes()
        Get the site type restriction, null for no restriction.
        Returns:
        the site types or null for no restriction.
      • setSiteTypes

        public void setSiteTypes​(Set<String> siteTypes)
        Set the site type restriction, null for no restriction.
        Parameters:
        siteTypes - the site types to set.
      • isInSiteType

        public boolean isInSiteType​(String siteType)
        Test if the parameter is to appear in the specified site type.
        Parameters:
        siteType - the site type name (i.e. 'default', 'blog'...)
        Returns:
        true to appear, false otherwise.