Package io.goobi.viewer.model.search
Class SearchHitsNotifier
java.lang.Object
io.goobi.viewer.model.search.SearchHitsNotifier
SearchHitsNotificationResource class.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
SearchHitsNotifier
public SearchHitsNotifier()
-
-
Method Details
-
sendNewHitsNotifications
public String sendNewHitsNotifications() throws DAOException, PresentationException, IndexUnreachableException, ViewerConfigurationException -
getNewHits
public List<SearchHit> getNewHits(Search search) throws PresentationException, IndexUnreachableException, DAOException, ViewerConfigurationException Executes the given search. If afterexecution
theSearch.getHitsCount()
is larger thanSearch.getLastHitsCount()
the newest (hitsCount - lastHitsCount) hits are returned and the lastHitsCount of the search is updated- Parameters:
search
-- Returns:
- A list of new hits (based on
Search.getLastHitsCount()
- Throws:
PresentationException
IndexUnreachableException
DAOException
ViewerConfigurationException
-