001/*
002 * (C) Copyright 2016 Nuxeo SA (http://nuxeo.com/) and others.
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *     http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 *
016 * Contributors:
017 *     Gabriel Barata <gbarata@nuxeo.com>
018 */
019package org.nuxeo.ecm.platform.search.core;
020
021import java.io.Serializable;
022import java.util.Map;
023
024import org.nuxeo.ecm.core.api.DocumentModel;
025import org.nuxeo.ecm.core.model.Document;
026
027/**
028 * @since 8.3
029 */
030public interface SavedSearch extends Serializable {
031
032    String getId();
033
034    String getTitle();
035
036    Map<String, String> getNamedParams();
037
038    String getQueryParams();
039
040    String getQuery();
041
042    String getQueryLanguage();
043
044    String getPageProviderName();
045
046    Long getPageSize();
047
048    Long getCurrentPageIndex();
049
050    Long getMaxResults();
051
052    String getSortBy();
053
054    String getSortOrder();
055
056    String getContentViewData();
057
058    DocumentModel getDocument();
059
060    void setTitle(String title);
061
062    void setNamedParams(Map<String, String> params);
063
064    void setQueryParams(String queryParams);
065
066    void setQuery(String query);
067
068    void setQueryLanguage(String queryLanguage);
069
070    void setPageProviderName(String pageProviderName);
071
072    void setPageSize(Long pageSize);
073
074    void setCurrentPageIndex(Long currentPageIndex);
075
076    void setMaxResults(Long maxResults);
077
078    void setSortBy(String sortBy);
079
080    void setSortOrder(String sortOrder);
081
082    void setContentViewData(String contentViewData);
083
084    void setDocument(DocumentModel doc);
085
086}