Package de.xima.fc.workflow
Class FileSearchOptions
- java.lang.Object
-
- de.xima.fc.workflow.FileSearchOptions
-
- All Implemented Interfaces:
IFileSearchOptions
,Serializable
public final class FileSearchOptions extends Object implements IFileSearchOptions, Serializable
Default POJO implementation ofIFileSearchOptions
.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FileSearchOptions.Builder
A builder for file search options.
-
Constructor Summary
Constructors Constructor Description FileSearchOptions(String defaultResourceFileName)
Deprecated.Usebuilder()
instead.FileSearchOptions(String defaultResourceFileName, Iterable<String> allowedFileExtensions)
Deprecated.Usebuilder()
instead.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FileSearchOptions.Builder
builder()
Creates a new builder for file search options.Set<String>
getAllowedContentTypes()
List of allowed content types.Set<String>
getAllowedFileExtensions()
List of allowed file extensions.String
getDefaultResourceFileName()
File name that is used for external network resources.
-
-
-
Constructor Detail
-
FileSearchOptions
@Deprecated public FileSearchOptions(String defaultResourceFileName)
Deprecated.Usebuilder()
instead.A new POJO with the given data an nogetAllowedFileExtensions()
.- Parameters:
defaultResourceFileName
- The value forgetDefaultResourceFileName()
.
-
FileSearchOptions
@Deprecated public FileSearchOptions(String defaultResourceFileName, Iterable<String> allowedFileExtensions)
Deprecated.Usebuilder()
instead.A new POJO with the given data.- Parameters:
defaultResourceFileName
- The value forgetDefaultResourceFileName()
.allowedFileExtensions
- The value forgetAllowedFileExtensions()
.
-
-
Method Detail
-
getAllowedContentTypes
public Set<String> getAllowedContentTypes()
Description copied from interface:IFileSearchOptions
List of allowed content types. Only files with one of these content types are returned. Whennull
or empty, no restriction is applied.- Specified by:
getAllowedContentTypes
in interfaceIFileSearchOptions
- Returns:
- Set of allowed content types.
-
getAllowedFileExtensions
public Set<String> getAllowedFileExtensions()
Description copied from interface:IFileSearchOptions
List of allowed file extensions. Only files with one of these extensions are returned. Whennull
or empty, no restriction is applied.- Specified by:
getAllowedFileExtensions
in interfaceIFileSearchOptions
- Returns:
- Set of allowed file extensions.
-
getDefaultResourceFileName
public String getDefaultResourceFileName()
Description copied from interface:IFileSearchOptions
File name that is used for external network resources. If not given, a file name is derived from the URL.- Specified by:
getDefaultResourceFileName
in interfaceIFileSearchOptions
- Returns:
- File name that is used for external network resources.
-
builder
public static FileSearchOptions.Builder builder()
Creates a new builder for file search options.- Returns:
- A new builder.
- Since:
- 8.2.0
-
-