Package de.xima.fc.workflow
Class FileSearchOptions
- java.lang.Object
-
- de.xima.fc.workflow.FileSearchOptions
-
- All Implemented Interfaces:
IFileSearchOptions
public final class FileSearchOptions extends Object implements IFileSearchOptions
Default POJO implementation ofIFileSearchOptions
.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description FileSearchOptions(String defaultResourceFileName)
A new POJO with the given data an nogetAllowedFileExtensions()
.FileSearchOptions(String defaultResourceFileName, Iterable<String> allowedFileExtensions)
A new POJO with the given data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>
getAllowedFileExtensions()
String
getDefaultResourceFileName()
-
-
-
Constructor Detail
-
FileSearchOptions
public FileSearchOptions(String defaultResourceFileName)
A new POJO with the given data an nogetAllowedFileExtensions()
.- Parameters:
defaultResourceFileName
- The value forgetDefaultResourceFileName()
.
-
FileSearchOptions
public FileSearchOptions(String defaultResourceFileName, Iterable<String> allowedFileExtensions)
A new POJO with the given data.- Parameters:
defaultResourceFileName
- The value forgetDefaultResourceFileName()
.allowedFileExtensions
- The value forgetAllowedFileExtensions()
.
-
-
Method Detail
-
getAllowedFileExtensions
public Set<String> getAllowedFileExtensions()
- Specified by:
getAllowedFileExtensions
in interfaceIFileSearchOptions
- Returns:
- List of allowed file extensions. Only files with one of these extensions are returned. When
null
or empty, no restriction is applied.
-
getDefaultResourceFileName
public String getDefaultResourceFileName()
- Specified by:
getDefaultResourceFileName
in interfaceIFileSearchOptions
- Returns:
- File name that is used for external network resources. If not given, a file name is derived from the URL.
-
-