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