@Name(value="searchUIActions") @Scope(value=CONVERSATION) @Install(precedence=10) public class SearchUIActions extends Object implements Serializable
Constructor and Description |
---|
SearchUIActions() |
public static final String SAVED_SEARCHES_LABEL
public static final String SHARED_SEARCHES_LABEL
public static final String SEARCH_FILTERS_LABEL
public static final String SEARCH_SAVED_LABEL
public static final String MAIN_TABS_SEARCH
public static final String SEARCH_VIEW_ID
public static final String SEARCH_CODEC
public static final String SIMPLE_SEARCH_CONTENT_VIEW_NAME
public static final String NXQL_SEARCH_CONTENT_VIEW_NAME
public static final String DEFAULT_NXQL_QUERY
public static final String CONTENT_VIEW_NAME_PARAMETER
public static final String CURRENT_PAGE_PARAMETER
public static final String PAGE_SIZE_PARAMETER
public static final String CONTENT_VIEW_STATE_PARAMETER
public static final String SEARCH_TERM_PARAMETER
public static final String SEARCH_SELECTED_EVENT
public static final String SEARCH_SAVED_EVENT
@In(create=true) protected transient NavigationContext navigationContext
@In(create=true, required=false) protected transient CoreSession documentManager
@In(create=true, required=false) protected transient ActionContextProvider actionContextProvider
@In(create=true) protected transient WebActions webActions
@In(create=true) protected RestHelper restHelper
@In(create=true) protected ContentViewActions contentViewActions
@In(create=true) protected ContentViewService contentViewService
@In(create=true) protected DocumentsListsManager documentsListsManager
@In(create=true, required=false) protected org.jboss.seam.faces.FacesMessages facesMessages
protected String simpleSearchKeywords
protected List<ContentViewHeader> contentViewHeaders
protected String currentContentViewName
protected String currentSelectedSavedSearchId
protected String currentPage
protected String searchTerm
protected String savedSearchTitle
public SearchUIActions()
public String getSearchMainTab()
public void setSearchMainTab(String tabs)
public String getSearchViewTitle()
public boolean isOnSearchView()
public String getJSONContentViewState() throws UnsupportedEncodingException
UnsupportedEncodingException
public String getCurrentContentViewName()
public void setCurrentContentViewName(String contentViewName)
public String getCurrentSelectedSavedSearchId()
public void setCurrentSelectedSavedSearchId(String selectedSavedSearchId) throws UnsupportedEncodingException
UnsupportedEncodingException
protected void resetCurrentContentViewWorkingList()
public void loadSavedSearch(DocumentModel searchDocument) throws UnsupportedEncodingException
UnsupportedEncodingException
public List<ContentViewHeader> getContentViewHeaders()
public void clearSearch()
public void refreshAndRewind()
public void refreshAndRewindAndResetAggregates()
public List<javax.faces.model.SelectItem> getAllSavedSearchesSelectItems()
protected List<DocumentModel> getSavedSearches()
protected List<DocumentModel> getSharedSearches()
protected List<javax.faces.model.SelectItem> convertToSelectItems(List<DocumentModel> docs)
protected List<javax.faces.model.SelectItem> convertCVToSelectItems(List<ContentViewHeader> contentViewHeaders)
public String getSavedSearchTitle()
public void setSavedSearchTitle(String savedSearchTitle)
public String saveSearch()
public boolean getCanSaveSearch()
Returns false if current content view is waiting for a first execution.
public void cancelSaveSearch()
public void setState(String state) throws UnsupportedEncodingException
UnsupportedEncodingException
public String getCurrentPage()
public void setCurrentPage(String currentPage)
public String getPageSize()
public void setPageSize(String pageSize)
public void setSearchTerm(String searchTerm) throws UnsupportedEncodingException
UnsupportedEncodingException
public String getSearchPermanentLinkUrl() throws UnsupportedEncodingException
UnsupportedEncodingException
public String getSearchTabUrl(String searchTerm) throws UnsupportedEncodingException
UnsupportedEncodingException
protected String generateSearchUrl(boolean withState) throws UnsupportedEncodingException
withState
- If set to true, the state is added in the parameters.UnsupportedEncodingException
protected DocumentView computeDocumentView(DocumentModel doc)
public String getSimpleSearchKeywords()
public void setSimpleSearchKeywords(String simpleSearchKeywords)
public void validateSimpleSearchKeywords(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object value)
public String doSimpleSearch()
public String getNxqlQuery()
public void setNxqlQuery(String nxqlQuery)
public boolean isNxqlSearchSelected()
@Begin(id="#{conversationIdGenerator.currentOrNewMainConversationId}", join=true) public String loadPermanentLink(DocumentView docView)
@Observer(value="localConfigurationChanged") public void invalidateContentViewsName()
@Observer(value="userAllDocumentTypesSelectionChanged") public void invalidateContentViewsNameIfChanged()
@Observer(value="flush", create=false) @BypassInterceptors public void resetOnFlush()
public String getSearchTermParameter()
@Observer(value="searchSaved") public void onSearchSaved()
Copyright © 2018 Nuxeo. All rights reserved.