Package de.xima.fc.workflow
Class FileSearchOptions.Builder
- java.lang.Object
-
- de.xima.fc.workflow.FileSearchOptions.Builder
-
- Enclosing class:
- FileSearchOptions
public static final class FileSearchOptions.Builder extends Object
A builder for file search options.- Since:
- 8.2.0
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileSearchOptions
build()
Builds the file search options.FileSearchOptions.Builder
contentTypes(Set<String> contentTypes)
Sets the allowed content types.FileSearchOptions.Builder
defaultResourceFileName(String defaultResourceFileName)
Sets the default resource file name when no explicit file name is given.FileSearchOptions.Builder
extensions(Set<String> extensions)
Sets the allowed file extensions.
-
-
-
Method Detail
-
build
public FileSearchOptions 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
public FileSearchOptions.Builder contentTypes(Set<String> 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
public FileSearchOptions.Builder defaultResourceFileName(String 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
public FileSearchOptions.Builder extensions(Set<String> 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.
-
-