Package org.opencms.gwt.shared
Class CmsUploadRestrictionInfo.Builder
- java.lang.Object
-
- org.opencms.gwt.shared.CmsUploadRestrictionInfo.Builder
-
- Enclosing class:
- CmsUploadRestrictionInfo
public static class CmsUploadRestrictionInfo.Builder extends java.lang.Object
Helper class for building a new CmsUploadRestrictionInfo object.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CmsUploadRestrictionInfo.Builder
add(java.lang.String path, java.lang.String info)
Adds a new entry.CmsUploadRestrictionInfo
build()
Creates a new upload restriction info object.
-
-
-
Constructor Detail
-
Builder
public Builder()
-
-
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 pathinfo
- the upload info entry- Returns:
- the builder instance
-
build
public CmsUploadRestrictionInfo build()
Creates a new upload restriction info object.- Returns:
- the new object
-
-