Class Options
java.lang.Object
org.bgerp.app.servlet.file.Options
Files fluent options.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetOrder()Files order.highlighter(File file) Finds highlighter for a filebooleanisDeletionByClear(File file) Should deletion for a file be replaced by clean operationbooleanWhether deletion is enabled.booleanWhether download is enabled.withDeletionByClear(String... wildcards) File wildcards for those deletion should be replaced by clean operationEnables file deletion.Enables file download.withHighlighter(Highlighter... highlighter) Adds file highlighters.Sets the files order.
-
Constructor Details
-
Options
public Options()Default constructor
-
-
Method Details
-
withOrder
-
withDownloadEnabled
-
withDeletionEnabled
-
withDeletionByClear
-
withHighlighter
Adds file highlighters.- Parameters:
highlighter- the highlighters- Returns:
- this
-
getOrder
-
isDownloadEnabled
public boolean isDownloadEnabled()Whether download is enabled.- Returns:
- is download enabled
-
isDeletionEnabled
public boolean isDeletionEnabled()Whether deletion is enabled.- Returns:
- is deletion enabled
-
isDeletionByClear
Should deletion for a file be replaced by clean operation- Parameters:
file- the file- Returns:
- should deletion be replaced by clean
-
highlighter
Finds highlighter for a file- Parameters:
file- the file- Returns:
- matching highlighter or
null
-