Package org.opencms.gwt.shared
Class CmsUploadRestrictionInfo.Builder
java.lang.Object
org.opencms.gwt.shared.CmsUploadRestrictionInfo.Builder
- Enclosing class:
CmsUploadRestrictionInfo
Helper class for building a new CmsUploadRestrictionInfo object.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a new entry with the given options for the given path.Adds a new entry.build()Creates a new upload restriction info object.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
add
Adds a new entry with the given options for the given path.- Parameters:
path- the pathenabled- upload enabled (TRUE / FALSE / null)extensions- (set of file extensions or null)- Returns:
- the builder instance
-
add
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
Creates a new upload restriction info object.- Returns:
- the new object
-