public abstract class FormsAbstractSavedSearchHandler extends java.lang.Object implements SavedSearchHandler
Constructor and Description |
---|
FormsAbstractSavedSearchHandler() |
Modifier and Type | Method and Description |
---|---|
Resource |
createOrUpdateSavedSearch(ResourceResolver resourceResolver,
java.util.Map<java.lang.String,java.lang.String> requestParameters)
This function creates a new saved search or updates a existing saved search based on the
parameters provided in predicateMap parameter.
|
boolean |
deleteSavedSearch(ResourceResolver resourceResolver,
java.lang.String path)
This function delete the saved search node existing on the provided path
|
abstract QueryBuilder |
getQueryBuilder() |
java.util.Iterator<Resource> |
getSavedSearches(ResourceResolver resourceResolver,
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 resourceResolver,
java.lang.String path)
This function provide the detail of saved query from the saved search node of the provided path
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getID
public boolean deleteSavedSearch(ResourceResolver resourceResolver, java.lang.String path)
SavedSearchHandler
deleteSavedSearch
in interface SavedSearchHandler
resourceResolver
- ResourceResolver
instancepath
- path of saved search node that needed to be deleted.public java.util.Iterator<Resource> getSavedSearches(ResourceResolver resourceResolver, long limit, long offset)
SavedSearchHandler
getSavedSearches
in interface SavedSearchHandler
resourceResolver
- ResourceResolver
instancelimit
- number of result on a pageoffset
- offset/start of resultIterator
of Resource
of nodes of saved search for the module.public java.util.Map<java.lang.String,java.lang.String> getSavedSearchParameters(ResourceResolver resourceResolver, java.lang.String path)
SavedSearchHandler
getSavedSearchParameters
in interface SavedSearchHandler
resourceResolver
- ResourceResolver
instancepath
- path of the node of saved search, from which parameters of saved search Query
requiredMap
containing parameters of the Query
public Resource createOrUpdateSavedSearch(ResourceResolver resourceResolver, java.util.Map<java.lang.String,java.lang.String> requestParameters) throws OmniSearchException
SavedSearchHandler
createOrUpdateSavedSearch
in interface SavedSearchHandler
resourceResolver
- ResourceResolver
instancerequestParameters
- 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 modulepublic abstract QueryBuilder getQueryBuilder()
Copyright © 2010 - 2020 Adobe. All Rights Reserved