Class Util

java.lang.Object
com.logicaldoc.impex.application.Util

public class Util extends Object
Class with some useful methods.
Since:
4.5
Author:
Matteo Caruso - LogicalDOC
  • Method Details

    • openFile

      public static void openFile(File file)
      Opens and visualizes the selected file inside an archive.
      Parameters:
      file - The file to open
    • getAndOr

      public static Item[] getAndOr()
      Gets the option items for and/or flags
      Returns:
      the option items
    • getAvailableFields

      public static Item[] getAvailableFields(String selectedTemplate)
      This method, evaluating all the criteria, retrieves all document fields plus all field from all the selected templates in some criteria.
      Parameters:
      selectedTemplate - the template to use.
      Returns:
      the option items
    • getDocumentFields

      public static Item[] getDocumentFields()
      This method retrieves all document fields
      Returns:
      the option items
    • getOperators

      public static Item[] getOperators(int type)
      This method retrieves all operator fields for a specific criterion type.
      Parameters:
      type - The criterion type
      Returns:
      the option items
    • getLanguages

      public static Item[] getLanguages()
      Gets the option items for languages
      Returns:
      the option items
    • getTemplates

      public static Item[] getTemplates()
      Gets the option items for templates selection
      Returns:
      the option items
    • getYesNo

      public static Item[] getYesNo()
      Gets the option items for yes/no flags
      Returns:
      the option items