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
Author:
XIMA MEDIA GmbH
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • 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.