public class FacetedSearchServiceImpl extends DefaultComponent implements FacetedSearchService
Modifier and Type | Field and Description |
---|---|
static String |
CONFIGURATION_EP |
Constructor and Description |
---|
FacetedSearchServiceImpl() |
Modifier and Type | Method and Description |
---|---|
Configuration |
getConfiguration() |
Set<String> |
getContentViewNames()
Returns the list of Content view names associated to a Faceted Search.
|
Set<String> |
getContentViewNames(DocumentModel currentDoc)
Returns the list of Content view names associated to a Faceted Search and depending of a local configuration.
|
List<DocumentModel> |
getCurrentUserSavedSearches(CoreSession session)
Returns the current user saved Faceted Searches, located into its own user workspace.
|
List<DocumentModel> |
getOtherUsersSavedSearches(CoreSession session)
Returns all the accessible saved Faceted Searches except the ones for the current user.
|
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
DocumentModel |
saveSearch(CoreSession session,
ContentView facetedSearchContentView,
String title)
Save the current Faceted search in the user workspace with the given title.
|
activate, applicationStarted, deactivate, getAdapter, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, unregisterContribution, unregisterExtension
public static final String CONFIGURATION_EP
public Set<String> getContentViewNames() throws ClientException
FacetedSearchService
getContentViewNames
in interface FacetedSearchService
ClientException
- in case of any errorpublic Set<String> getContentViewNames(DocumentModel currentDoc) throws ClientException
FacetedSearchService
getContentViewNames
in interface FacetedSearchService
currentDoc
- corresponds to current navigation context, to try to get some local configuration of a parent.ClientException
- in case of any errorpublic DocumentModel saveSearch(CoreSession session, ContentView facetedSearchContentView, String title) throws ClientException
FacetedSearchService
saveSearch
in interface FacetedSearchService
session
- the CoreSession
to usefacetedSearchContentView
- the Faceted Search to savetitle
- the title of the being saved Faceted SearchClientException
- in case of any error during the savepublic List<DocumentModel> getCurrentUserSavedSearches(CoreSession session) throws ClientException
FacetedSearchService
getCurrentUserSavedSearches
in interface FacetedSearchService
session
- the CoreSession
to useClientException
- in case of any errorpublic List<DocumentModel> getOtherUsersSavedSearches(CoreSession session) throws ClientException
FacetedSearchService
getOtherUsersSavedSearches
in interface FacetedSearchService
session
- the CoreSession
to useClientException
- in case of any errorpublic Configuration getConfiguration()
getConfiguration
in interface FacetedSearchService
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution
in class DefaultComponent
Copyright © 2015 Nuxeo SA. All rights reserved.