Package com.jalios.jcms
Class AbstractFileIndexListener
- java.lang.Object
-
- com.jalios.jcms.BasicStoreListener
-
- com.jalios.jcms.AbstractFileIndexListener
-
- All Implemented Interfaces:
PluginComponent
,StoreListener
public abstract class AbstractFileIndexListener extends BasicStoreListener
This abstract class is implemented by generated.FileIndexListener
-
-
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.Useadd(String, Map, Data)
insteadvoid
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.Useremove(String, Map, Data)
insteadvoid
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 com.jalios.jcms.BasicStoreListener
handleCommitUpdate, handleCreate, handleDelete, handlePrepareUpdate, init
-
-
-
-
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, Data data)
Deprecated.Useadd(String, Map, Data)
instead
-
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 emptyfilenameML
- a multilingual map of document filename "upload/docs/foo/bar.png", may be null or emptydata
- 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 emptyfilenamesML
- a multilingual map of document filenames "upload/docs/foo/bar.png", may be null or emptydata
- 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 emptyoldFilenameML
- multilingual map of document filename to remove, may be null or emptyfilename
- document filename to add, may be null or emptyfilenameML
- multilingual map of document filename to add, may be null or emptydata
- 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 emptyoldFilenamesML
- multilingual map of document filenames to remove, may be null or emptyfilenames
- document filenames to add, may be null or emptyfilenamesML
- multilingual map of document filenames to add, may be null or emptydata
- the data for which update is performed- Since:
- 10.0.8 / JCMS-9408
-
remove
public void remove(Data data, java.lang.String filename)
Deprecated.Useremove(String, Map, Data)
instead
-
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 emptyfilenameML
- a multilingual map of document filename "upload/docs/foo/bar.png", may be null or emptydata
- 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 emptyfilenamesML
- a multilingual map of document filenames "upload/docs/foo/bar.png", may be null or emptydata
- the data no longer referencing the filename(s)- Since:
- 10.0.8 / JCMS-9408
-
-