Interface QuickSearchItemDao
- All Superinterfaces:
BambooObjectDao<QuickSearchItem>
- All Known Implementing Classes:
QuickSearchItemDaoImpl
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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, long aclId, @NotNull Iterable<String> searchTerms) Update search terms for an entity.boolean
reIndexItem
(QuickSearchItem.Type type, long id, @NotNull Iterable<String> searchTerms) Update search terms for an entity.Methods inherited from interface com.atlassian.bamboo.persistence3.BambooObjectDao
countAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAll
-
Method Details
-
indexItems
Insert provided search terms. This method does not check if any matching items already exist. -
reIndexItem
boolean reIndexItem(@NotNull QuickSearchItem.Type type, long id, @NotNull @NotNull Iterable<String> searchTerms) Update search terms for an entity. The method removes all pre-existing search items that are not listed in the 'searchTerms' argument. The method does not perform any DB operations if the state of the DB already matches the arguments.- Returns:
- true iff any changes has been performed.
-
reIndexItem
boolean reIndexItem(@NotNull QuickSearchItem.Type type, long id, long aclId, @NotNull @NotNull Iterable<String> searchTerms) Update search terms for an entity. The method removes all pre-existing search items that are not listed in the 'searchTerms' argument. The method does not perform any DB operations if the state of the DB already matches the arguments.- Returns:
- true iff any changes has been performed.
-
deIndexItem
Remove all search terms for a specified entity. -
findMatchingItems
@NotNull @NotNull List<QuickSearchItem> findMatchingItems(@NotNull @NotNull Set<String> searchTerms, int offset, int pageSize) -
findMatchingItems
@NotNull @NotNull List<QuickSearchItem> findMatchingItems(@NotNull @NotNull Set<String> searchTerms, @Nullable QuickSearchItem.Type type, int offset, int pageSize) -
deIndexAll
void deIndexAll()Clears entire index table.
-