public class SearchUIServiceImpl extends Object implements SearchUIService
Modifier and Type | Field and Description |
---|---|
static String |
CONTENT_VIEW_DISPLAY_FACET |
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 |
---|---|
protected List<String> |
filterContentViewNames(List<String> contentViewNames,
DocumentModel currentDoc)
Returns the filtered content view names based on the local configuration if any.
|
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.
|
protected List<DocumentModel> |
getDocuments(String pageProviderName,
CoreSession session,
Object... parameters) |
protected SearchConfiguration |
getSearchConfiguration(DocumentModel currentDoc) |
List<DocumentModel> |
getSharedSavedSearches(CoreSession session)
Returns all the accessible saved searches except the ones for the current user.
|
ContentViewState |
loadSearch(DocumentModel savedSearch)
Load the content view state for a given saved search.
|
DocumentModel |
saveSearch(CoreSession session,
ContentViewState searchContentViewState,
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 static final String CONTENT_VIEW_DISPLAY_FACET
public SearchUIServiceImpl()
public List<ContentViewHeader> getContentViewHeaders(ActionContext actionContext)
SearchUIService
getContentViewHeaders
in interface SearchUIService
public List<ContentViewHeader> getContentViewHeaders(ActionContext actionContext, DocumentModel doc)
SearchUIService
getContentViewHeaders
in interface SearchUIService
protected List<String> filterContentViewNames(List<String> contentViewNames, DocumentModel currentDoc)
protected SearchConfiguration getSearchConfiguration(DocumentModel currentDoc)
public DocumentModel saveSearch(CoreSession session, ContentViewState searchContentViewState, String title)
SearchUIService
saveSearch
in interface SearchUIService
session
- the CoreSession
to usesearchContentViewState
- the search to savetitle
- the title of the being saved searchpublic List<DocumentModel> getCurrentUserSavedSearches(CoreSession session)
SearchUIService
getCurrentUserSavedSearches
in interface SearchUIService
protected List<DocumentModel> getDocuments(String pageProviderName, CoreSession session, Object... parameters)
public List<DocumentModel> getSharedSavedSearches(CoreSession session)
SearchUIService
getSharedSavedSearches
in interface SearchUIService
public ContentViewState loadSearch(DocumentModel savedSearch)
SearchUIService
loadSearch
in interface SearchUIService
Copyright © 2016 Nuxeo SA. All rights reserved.