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)
SearchUIServicegetContentViewHeaders in interface SearchUIServicepublic List<ContentViewHeader> getContentViewHeaders(ActionContext actionContext, DocumentModel doc)
SearchUIServicegetContentViewHeaders in interface SearchUIServiceprotected List<String> filterContentViewNames(List<String> contentViewNames, DocumentModel currentDoc)
protected SearchConfiguration getSearchConfiguration(DocumentModel currentDoc)
public DocumentModel saveSearch(CoreSession session, ContentViewState searchContentViewState, String title)
SearchUIServicesaveSearch in interface SearchUIServicesession - the CoreSession to usesearchContentViewState - the search to savetitle - the title of the being saved searchpublic List<DocumentModel> getCurrentUserSavedSearches(CoreSession session)
SearchUIServicegetCurrentUserSavedSearches in interface SearchUIServiceprotected List<DocumentModel> getDocuments(String pageProviderName, CoreSession session, Object... parameters)
public List<DocumentModel> getSharedSavedSearches(CoreSession session)
SearchUIServicegetSharedSavedSearches in interface SearchUIServicepublic ContentViewState loadSearch(DocumentModel savedSearch)
SearchUIServiceloadSearch in interface SearchUIServiceCopyright © 2016 Nuxeo SA. All rights reserved.