Class IndexEngineProxy
- java.lang.Object
-
- org.silverpeas.core.index.indexing.model.IndexEngineProxy
-
@Technical @Bean @Singleton public final class IndexEngineProxy extends Object
A proxy to the Indexing Engine. It delegates all the call to the underlying indexing engine.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(FullIndexEntry entry)
Adds the specified entry in the indexes.static void
addIndexEntry(FullIndexEntry indexEntry)
Adds an entry index.void
delete(IndexEntryKey entryKey)
Removes from the indexes the entry identified by the specified key.void
deleteAll()
Removes all the index entries.void
deleteByScope(String scope)
Removes from the index the entries matching the specified scope.static IndexEngineProxy
get()
static void
removeAllIndexEntries()
Removes all entry indexes.static void
removeIndexEntry(IndexEntryKey indexEntry)
Removes an entry index.static void
removeScopedIndexEntries(String scope)
Removes an entry index.
-
-
-
Method Detail
-
add
public void add(FullIndexEntry entry)
Adds the specified entry in the indexes.- Parameters:
entry
- the index to add.
-
delete
public void delete(IndexEntryKey entryKey)
Removes from the indexes the entry identified by the specified key.- Parameters:
entryKey
- the key of the entry in the indexes.
-
deleteByScope
public void deleteByScope(String scope)
Removes from the index the entries matching the specified scope.- Parameters:
scope
- the scope of the entries in the index.
-
deleteAll
public void deleteAll()
Removes all the index entries.
-
get
public static IndexEngineProxy get()
-
addIndexEntry
public static void addIndexEntry(FullIndexEntry indexEntry)
Adds an entry index.
-
removeIndexEntry
public static void removeIndexEntry(IndexEntryKey indexEntry)
Removes an entry index.
-
removeScopedIndexEntries
public static void removeScopedIndexEntries(String scope)
Removes an entry index.
-
removeAllIndexEntries
public static void removeAllIndexEntries()
Removes all entry indexes.
-
-