reenabling some lines of code
[cdmlib.git] / cdmlib-services / src / main / java / eu / etaxonomy / cdm / api / service / search / ICdmMassIndexer.java
index cf140e7df889e0497d96335a8dadfd38ebbd4eaa..171f7be31bc2ce1faf08b3ef1e16aa6af2a085bd 100644 (file)
@@ -1,5 +1,7 @@
 package eu.etaxonomy.cdm.api.service.search;
 
+import eu.etaxonomy.cdm.common.monitor.IProgressMonitor;
+
 /**
  * @author andreas
  * @date Jul 2, 2012
@@ -9,16 +11,26 @@ public interface ICdmMassIndexer {
 
 
     /**
-     * Reindex all cdm entities litest in {@link ICdmMassIndexer#indexedClasses()}.
+     * Reindex all cdm entities listed in {@link ICdmMassIndexer#indexedClasses()}.
      * Re-indexing will not purge the index.
+     * @param monitor TODO
      */
-    public abstract void reindex();
+    public abstract void reindex(IProgressMonitor monitor);
 
     /**
      * This will wipe out the index.
      */
-    public abstract void purge();
+    public abstract void purge(IProgressMonitor monitor);
 
     public Class[] indexedClasses();
+    
+    /**
+     * Create (spell-checking) dictionary listed in {@link ICdmMassIndexer#dictionaryClasses()}.
+     * This action will not purge the dictionary.
+     * @param monitor TODO
+     */
+    public abstract void createDictionary(IProgressMonitor monitor);
+    
+    public Class[] dictionaryClasses();
 
 }
\ No newline at end of file