public class QuickSearchItemDaoImpl extends BambooHibernateObjectDao<QuickSearchItem> implements QuickSearchItemDao
Constructor and Description |
---|
QuickSearchItemDaoImpl() |
Modifier and Type | Method and Description |
---|---|
void |
deIndexAll()
Clears entire index table.
|
void |
deIndexItem(QuickSearchItem.Type type,
long id)
Remove all search terms for a specified entity.
|
@NotNull List<QuickSearchItem> |
findMatchingItems(@NotNull Set<String> searchTerms,
int offset,
int pageSize) |
@NotNull List<QuickSearchItem> |
findMatchingItems(@NotNull Set<String> searchTerms,
QuickSearchItem.Type type,
int offset,
int pageSize) |
void |
indexItems(@NotNull List<QuickSearchItem> items)
Insert provided search terms.
|
boolean |
reIndexItem(QuickSearchItem.Type type,
long id,
@NotNull Iterable<String> searchTerms)
Update search terms for an entity.
|
boolean |
reIndexItem(QuickSearchItem.Type type,
long id,
long aclId,
@NotNull Iterable<String> searchTerms)
Update search terms for an entity.
|
countAll, countWithRestriction, delete, deleteAll, executeCountQuery, findAll, findById, merge, save, saveAll
getCacheAwareHibernateTemplate
checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
countAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAll
public boolean reIndexItem(@NotNull QuickSearchItem.Type type, long id, @NotNull @NotNull Iterable<String> searchTerms)
QuickSearchItemDao
reIndexItem
in interface QuickSearchItemDao
public boolean reIndexItem(@NotNull QuickSearchItem.Type type, long id, long aclId, @NotNull @NotNull Iterable<String> searchTerms)
QuickSearchItemDao
reIndexItem
in interface QuickSearchItemDao
public void deIndexItem(@NotNull QuickSearchItem.Type type, long id)
QuickSearchItemDao
deIndexItem
in interface QuickSearchItemDao
@NotNull public @NotNull List<QuickSearchItem> findMatchingItems(@NotNull @NotNull Set<String> searchTerms, int offset, int pageSize)
findMatchingItems
in interface QuickSearchItemDao
@NotNull public @NotNull List<QuickSearchItem> findMatchingItems(@NotNull @NotNull Set<String> searchTerms, @Nullable QuickSearchItem.Type type, int offset, int pageSize)
findMatchingItems
in interface QuickSearchItemDao
public void deIndexAll()
QuickSearchItemDao
deIndexAll
in interface QuickSearchItemDao
public void indexItems(@NotNull @NotNull List<QuickSearchItem> items)
QuickSearchItemDao
indexItems
in interface QuickSearchItemDao
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.