Class Options

java.lang.Object
org.bgerp.app.servlet.file.Options

public class Options extends Object
Files fluent options.
  • Constructor Details

    • Options

      public Options()
      Default constructor
  • Method Details

    • withOrder

      public Options withOrder(Order value)
      Sets the files order.
      Parameters:
      value - the order
      Returns:
      this
    • withDownloadEnabled

      public Options withDownloadEnabled()
      Enables file download.
      Returns:
      this
    • withDeletionEnabled

      public Options withDeletionEnabled()
      Enables file deletion.
      Returns:
      this
    • withDeletionByClear

      public Options withDeletionByClear(String... wildcards)
      File wildcards for those deletion should be replaced by clean operation
      Parameters:
      wildcards - the wildcards
      Returns:
      this
    • withHighlighter

      public Options withHighlighter(Highlighter... highlighter)
      Adds file highlighters.
      Parameters:
      highlighter - the highlighters
      Returns:
      this
    • getOrder

      public Order getOrder()
      Files order.
      Returns:
      the order
    • 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

      public boolean isDeletionByClear(File file)
      Should deletion for a file be replaced by clean operation
      Parameters:
      file - the file
      Returns:
      should deletion be replaced by clean
    • highlighter

      public Highlighter highlighter(File file)
      Finds highlighter for a file
      Parameters:
      file - the file
      Returns:
      matching highlighter or null