public class SearchUIServiceImpl extends Object implements SearchUIService
Modifier and Type | Field and Description |
---|---|
static String |
CONTENT_VIEW_NAME_PROPERTY |
static String |
SAVED_SEARCHES_PROVIDER_NAME |
static String |
SEARCH_CONTENT_VIEWS_CATEGORY |
static String |
SHARED_SEARCHES_PROVIDER_NAME |
Constructor and Description |
---|
SearchUIServiceImpl() |
Modifier and Type | Method and Description |
---|---|
List<ContentViewHeader> |
getContentViewHeaders(ActionContext actionContext)
Returns the list of Content view headers associated to a search.
|
List<ContentViewHeader> |
getContentViewHeaders(ActionContext actionContext,
DocumentModel doc)
Returns the list of Content view headers associated to a search and depending of a local configuration.
|
List<DocumentModel> |
getCurrentUserSavedSearches(CoreSession session)
Returns the current user saved searches, located into its own user workspace.
|
List<DocumentModel> |
getSharedSavedSearches(CoreSession session)
Returns all the accessible saved searches except the ones for the current user.
|
DocumentModel |
saveSearch(CoreSession session,
ContentView searchContentView,
String title)
Save the current search in the user workspace with the given title.
|
public static final String SEARCH_CONTENT_VIEWS_CATEGORY
public static final String CONTENT_VIEW_NAME_PROPERTY
public static final String SAVED_SEARCHES_PROVIDER_NAME
public static final String SHARED_SEARCHES_PROVIDER_NAME
public List<ContentViewHeader> getContentViewHeaders(ActionContext actionContext)
SearchUIService
getContentViewHeaders
in interface SearchUIService
public List<ContentViewHeader> getContentViewHeaders(ActionContext actionContext, DocumentModel doc)
SearchUIService
getContentViewHeaders
in interface SearchUIService
public DocumentModel saveSearch(CoreSession session, ContentView searchContentView, String title)
SearchUIService
saveSearch
in interface SearchUIService
session
- the CoreSession
to usesearchContentView
- the search to savetitle
- the title of the being saved searchpublic List<DocumentModel> getCurrentUserSavedSearches(CoreSession session) throws ClientException
SearchUIService
getCurrentUserSavedSearches
in interface SearchUIService
ClientException
public List<DocumentModel> getSharedSavedSearches(CoreSession session) throws ClientException
SearchUIService
getSharedSavedSearches
in interface SearchUIService
ClientException
Copyright © 2015 Nuxeo SA. All rights reserved.