Class FileSearchOptions.Builder
java.lang.Object
de.xima.fc.workflow.FileSearchOptions.Builder
- Enclosing class:
FileSearchOptions
A builder for file search options.
- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the file search options.contentTypes(Set<String> contentTypes) Sets the allowed content types.defaultResourceFileName(String defaultResourceFileName) Sets the default resource file name when no explicit file name is given.extensions(Set<String> extensions) Sets the allowed file extensions.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Builds the file search options. Any modifications to this builder after calling this method will not affect the returned object.- Returns:
- The file search options.
-
contentTypes
Sets the allowed content types. When not set, no restrictions are applied.- Parameters:
contentTypes- The allowed content types.- Returns:
- This builder for chaining method calls.
-
defaultResourceFileName
Sets the default resource file name when no explicit file name is given.- Parameters:
defaultResourceFileName- The default resource file name.- Returns:
- This builder for chaining method calls.
-
extensions
Sets the allowed file extensions. When not set, no restrictions are applied.- Parameters:
extensions- The allowed file extensions.- Returns:
- This builder for chaining method calls.
-