@ConsumerType public interface SavedSearchHandler
SavedSearchHandler
interface i.e. search module Assets, Sites
would need to implement this interface.
OmniSearch allows different modules to register themselves for Saved Search functionality , by implementing this interface.Modifier and Type | Method and Description |
---|---|
Resource |
createOrUpdateSavedSearch(ResourceResolver resolver,
java.util.Map<java.lang.String,java.lang.String> predicateMap)
This function creates a new saved search or updates a existing saved search based on the
parameters provided in predicateMap parameter.
|
boolean |
deleteSavedSearch(ResourceResolver resolver,
java.lang.String path)
This function delete the saved search node existing on the provided path
|
java.lang.String |
getID()
This function returns ID of
SavedSearchHandler aka Search Module
This ID helps identify the search module uniquely i.e. |
java.util.Iterator<Resource> |
getSavedSearches(ResourceResolver resolver,
long limit,
long offset)
This function returns list of all saved search for the module i.e.
|
java.util.Map<java.lang.String,java.lang.String> |
getSavedSearchParameters(ResourceResolver resolver,
java.lang.String path)
This function provide the detail of saved query from the saved search node of the provided path
|
java.lang.String getID()
SavedSearchHandler
aka Search Module
This ID helps identify the search module uniquely i.e. assets, sites, projects etc.SavedSearchHandler
java.util.Iterator<Resource> getSavedSearches(ResourceResolver resolver, long limit, long offset) throws OmniSearchException
resolver
- ResourceResolver
instancelimit
- number of result on a pageoffset
- offset/start of resultIterator
of Resource
of nodes of saved search for the module.OmniSearchException
- instance of OmniSearchException
which provide error from the modulejava.util.Map<java.lang.String,java.lang.String> getSavedSearchParameters(ResourceResolver resolver, java.lang.String path) throws OmniSearchException
resolver
- ResourceResolver
instancepath
- path of the node of saved search, from which parameters of saved search Query
requiredMap
containing parameters of the Query
OmniSearchException
- instance of OmniSearchException
which provide error from the moduleResource createOrUpdateSavedSearch(ResourceResolver resolver, java.util.Map<java.lang.String,java.lang.String> predicateMap) throws OmniSearchException
resolver
- ResourceResolver
instancepredicateMap
- Map
of type <String, String> containing all the parameters that needed to be saved
in query parameters of saved search node.Resource
that is created or updated for saved searchOmniSearchException
- instance of OmniSearchException
which provide error from the moduleboolean deleteSavedSearch(ResourceResolver resolver, java.lang.String path) throws OmniSearchException
resolver
- ResourceResolver
instancepath
- path of saved search node that needed to be deleted.OmniSearchException
- instance of OmniSearchException
which provide error from the moduleCopyright © 2010 - 2020 Adobe. All Rights Reserved