Class DocumentComparatorManager

java.lang.Object
com.logicaldoc.comparison.DocumentComparatorManager

@Component("DocumentComparatorManager") public class DocumentComparatorManager extends Object
Manager class used to handle the comparators. For each file extension you may have different possible comparators, they are taken by the DocumentComparator extension point.
Since:
8.2.3
Author:
Marco Meschieri - LogicalDOC
  • Constructor Details

    • DocumentComparatorManager

      public DocumentComparatorManager()
  • Method Details

    • getAvailableFormats

      public List<String> getAvailableFormats()
      Returns all the possible input formats
      Returns:
      list of the file extensions for which a comparator exists
    • getAvailableComparators

      public List<DocumentComparator> getAvailableComparators(String inFileName)
      Returns the list of possible comparators for a given input format
      Parameters:
      inFileName - filename of the file to compare
      Returns:
      the list of available comparators
    • getAllComparators

      public Collection<DocumentComparator> getAllComparators()
      Returns the list of possible comparators
      Returns:
      the list of all the comparators
    • getComparator

      public DocumentComparator getComparator(String fileName)
      Loads the proper comparator for the passed file names. The right comparator used is defined in the configuration parameter comparator.extension
      Parameters:
      fileName - filename of the file to compare
      Returns:
      the comparator currently in use
    • getComparators

      public Map<String,List<DocumentComparator>> getComparators()
    • setConfig

      public void setConfig(com.logicaldoc.util.config.ContextProperties config)