@Component public class SearchIndexDaoHelper extends Object
| Constructor and Description |
|---|
SearchIndexDaoHelper() |
| Modifier and Type | Method and Description |
|---|---|
void |
activateSearchIndex(SearchIndexEntity currentSearchIndexEntity)
Activates a search index entity and de-activates the others
|
String |
getActiveSearchIndex(String indexType)
Fetches the name of the active index for the specified type
|
SearchIndexEntity |
getSearchIndexEntity(SearchIndexKey searchIndexKey)
Gets a search index entity by its key and ensure it exists.
|
void |
updateSearchIndexStatus(SearchIndexKey searchIndexKey,
String searchIndexStatus)
Gets a search index entity by its key and ensure it exists.
|
public SearchIndexEntity getSearchIndexEntity(SearchIndexKey searchIndexKey) throws ObjectNotFoundException
searchIndexKey - the search index key (case sensitive)ObjectNotFoundException - if the search index entity doesn't existpublic void updateSearchIndexStatus(SearchIndexKey searchIndexKey, String searchIndexStatus) throws ObjectNotFoundException
searchIndexKey - the search index key (case sensitive)searchIndexStatus - the status of the search index (case insensitive)ObjectNotFoundException - if the search index entity or search index status entity doesn't existpublic void activateSearchIndex(SearchIndexEntity currentSearchIndexEntity)
currentSearchIndexEntity - the search index key (case sensitive)Copyright © 2021. All rights reserved.