Class CmsUploadRestrictionInfo.Builder

    • Constructor Detail

    • Method Detail

      • add

        public CmsUploadRestrictionInfo.Builder add​(java.lang.String path,
                                                    java.lang.String info)
        Adds a new entry.

        The info string has the format 'key1:value1|key2:value2|....'. Currently the keys 'types' and 'enabled' are supported; 'enabled' (format: 'enabled:true') enables/disables uploads, and 'types' (format: 'types:jpg,png' sets the allowed file extensions.

        Parameters:
        path - the path
        info - the upload info entry
        Returns:
        the builder instance