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.util.Map; 022 023import org.nuxeo.ecm.core.api.DocumentModel; 024 025/** 026 * @since 8.3 027 */ 028public class SavedSearchRequest { 029 030 protected String id; 031 032 protected String title; 033 034 protected String queryParams; 035 036 protected Map<String, String> namedParams; 037 038 protected String query; 039 040 protected String queryLanguage; 041 042 protected String pageProviderName; 043 044 protected Long pageSize; 045 046 protected Long currentPageIndex; 047 048 protected Long maxResults; 049 050 protected String sortBy; 051 052 protected String sortOrder; 053 054 protected String contentViewData; 055 056 public SavedSearchRequest(String id, String title, String queryParams, Map<String, String> namedParams, 057 String query, String queryLanguage, String pageProviderName, Long pageSize, Long currentPageIndex, 058 Long maxResults, String sortBy, String sortOrder, String contentViewData) { 059 this.id = id; 060 this.title = title; 061 this.queryParams = queryParams; 062 this.namedParams = namedParams; 063 this.query = query; 064 this.queryLanguage = queryLanguage; 065 this.pageProviderName = pageProviderName; 066 this.pageSize = pageSize; 067 this.currentPageIndex = currentPageIndex; 068 this.maxResults = maxResults; 069 this.sortBy = sortBy; 070 this.sortOrder = sortOrder; 071 this.contentViewData = contentViewData; 072 } 073 074 public String getId() { 075 return id; 076 } 077 078 public String getTitle() { 079 return title; 080 } 081 082 public String getQueryParams() { 083 return queryParams; 084 } 085 086 public Map<String, String> getNamedParams() { 087 return namedParams; 088 } 089 090 public String getQuery() { 091 return query; 092 } 093 094 public String getQueryLanguage() { 095 return queryLanguage; 096 } 097 098 public String getPageProviderName() { 099 return pageProviderName; 100 } 101 102 public Long getPageSize() { 103 return pageSize; 104 } 105 106 public Long getCurrentPageIndex() { 107 return currentPageIndex; 108 } 109 110 public Long getMaxResults() { 111 return maxResults; 112 } 113 114 public String getSortBy() { 115 return sortBy; 116 } 117 118 public String getSortOrder() { 119 return sortOrder; 120 } 121 122 public String getContentViewData() { 123 return contentViewData; 124 } 125 126 public void setId(String id) { 127 this.id = id; 128 } 129 130 public void setTitle(String title) { 131 this.title = title; 132 } 133 134 public void setQueryParams(String queryParams) { 135 this.queryParams = queryParams; 136 } 137 138 public void setNamedParams(Map<String, String> namedParams) { 139 this.namedParams = namedParams; 140 } 141 142 public void setQuery(String query) { 143 this.query = query; 144 } 145 146 public void setQueryLanguage(String queryLanguage) { 147 this.queryLanguage = queryLanguage; 148 } 149 150 public void setPageProviderName(String pageProviderName) { 151 this.pageProviderName = pageProviderName; 152 } 153 154 public void setPageSize(Long pageSize) { 155 this.pageSize = pageSize; 156 } 157 158 public void setCurrentPageIndex(Long currentPageIndex) { 159 this.currentPageIndex = currentPageIndex; 160 } 161 162 public void setMaxResults(Long maxResults) { 163 this.maxResults = maxResults; 164 } 165 166 public void setSortBy(String sortBy) { 167 this.sortBy = sortBy; 168 } 169 170 public void setSortOrder(String sortOrder) { 171 this.sortOrder = sortOrder; 172 } 173 174 public void setContentViewData(String contentViewData) { 175 this.contentViewData = contentViewData; 176 } 177 178}