Class AbstractFileIndexListener

    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractFileIndexListener​(java.util.HashMap<java.lang.String,​java.util.TreeSet<Data>> index)  
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void add​(java.lang.String[] filenames, java.util.Map<java.lang.String,​java.lang.String[]> filenamesML, Data data)
      Add the specified data to the Set of data referencing the specifed filename(s).
      void add​(java.lang.String filename, Data data)
      Deprecated.
      void add​(java.lang.String filename, java.util.Map<java.lang.String,​java.lang.String> filenameML, Data data)
      Add the specified data to the Set of data referencing the specifed filenamess.
      void remove​(Data data, java.lang.String filename)
      Deprecated.
      void remove​(java.lang.String[] filenames, java.util.Map<java.lang.String,​java.lang.String[]> filenamesML, Data data)
      Remove the specified data from the Set of data referencing the specifed filenames.
      void remove​(java.lang.String filename, java.util.Map<java.lang.String,​java.lang.String> filenameML, Data data)
      Remove the specified data from the Set of data referencing the specifed filenames.
      void update​(java.lang.String[] oldFilenames, java.util.Map<java.lang.String,​java.lang.String[]> oldFilenamesML, java.lang.String[] filenames, java.util.Map<java.lang.String,​java.lang.String[]> filenamesML, Data data)
      Update the specified data in the Set of data referencing filenames).
      void update​(java.lang.String oldFilename, java.util.Map<java.lang.String,​java.lang.String> oldFilenameML, java.lang.String filename, java.util.Map<java.lang.String,​java.lang.String> filenameML, Data data)
      Update the specified data in the Set of data referencing filenames.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractFileIndexListener

        public AbstractFileIndexListener​(java.util.HashMap<java.lang.String,​java.util.TreeSet<Data>> index)
    • Method Detail

      • add

        public void add​(java.lang.String filename,
                        java.util.Map<java.lang.String,​java.lang.String> filenameML,
                        Data data)
        Add the specified data to the Set of data referencing the specifed filenamess.
        Parameters:
        filename - a document filename "upload/docs/foo/bar.png", may be null or empty
        filenameML - a multilingual map of document filename "upload/docs/foo/bar.png", may be null or empty
        data - the data referencing the filename(s)
        Since:
        10.0.8 / JCMS-9408
      • add

        public void add​(java.lang.String[] filenames,
                        java.util.Map<java.lang.String,​java.lang.String[]> filenamesML,
                        Data data)
        Add the specified data to the Set of data referencing the specifed filename(s).
        Parameters:
        filenames - a document filenames "upload/docs/foo/bar.png", may be null or empty
        filenamesML - a multilingual map of document filenames "upload/docs/foo/bar.png", may be null or empty
        data - the data referencing the filename(s)
        Since:
        10.0.8 / JCMS-9408
      • update

        public void update​(java.lang.String oldFilename,
                           java.util.Map<java.lang.String,​java.lang.String> oldFilenameML,
                           java.lang.String filename,
                           java.util.Map<java.lang.String,​java.lang.String> filenameML,
                           Data data)
        Update the specified data in the Set of data referencing filenames.
        Parameters:
        oldFilename - document filename to remove, may be null or empty
        oldFilenameML - multilingual map of document filename to remove, may be null or empty
        filename - document filename to add, may be null or empty
        filenameML - multilingual map of document filename to add, may be null or empty
        data - the data for which update is performed
        Since:
        10.0.8 / JCMS-9408
      • update

        public void update​(java.lang.String[] oldFilenames,
                           java.util.Map<java.lang.String,​java.lang.String[]> oldFilenamesML,
                           java.lang.String[] filenames,
                           java.util.Map<java.lang.String,​java.lang.String[]> filenamesML,
                           Data data)
        Update the specified data in the Set of data referencing filenames).
        Parameters:
        oldFilenames - document filenames to remove, may be null or empty
        oldFilenamesML - multilingual map of document filenames to remove, may be null or empty
        filenames - document filenames to add, may be null or empty
        filenamesML - multilingual map of document filenames to add, may be null or empty
        data - the data for which update is performed
        Since:
        10.0.8 / JCMS-9408
      • remove

        public void remove​(java.lang.String filename,
                           java.util.Map<java.lang.String,​java.lang.String> filenameML,
                           Data data)
        Remove the specified data from the Set of data referencing the specifed filenames.
        Parameters:
        filename - a document filename "upload/docs/foo/bar.png", may be null or empty
        filenameML - a multilingual map of document filename "upload/docs/foo/bar.png", may be null or empty
        data - the data no longer referencing the filename(s)
        Since:
        10.0.8 / JCMS-9408
      • remove

        public void remove​(java.lang.String[] filenames,
                           java.util.Map<java.lang.String,​java.lang.String[]> filenamesML,
                           Data data)
        Remove the specified data from the Set of data referencing the specifed filenames.
        Parameters:
        filenames - a document filename "upload/docs/foo/bar.png", may be null or empty
        filenamesML - a multilingual map of document filenames "upload/docs/foo/bar.png", may be null or empty
        data - the data no longer referencing the filename(s)
        Since:
        10.0.8 / JCMS-9408