001/* 002 * Copyright 2019 Anyware Services 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 */ 016package org.ametys.web.frontoffice.search.requesttime.input.impl; 017 018import java.util.List; 019import java.util.Map; 020 021import org.apache.commons.lang3.tuple.Pair; 022import org.slf4j.Logger; 023import org.slf4j.LoggerFactory; 024 025import org.ametys.cms.search.Sort.Order; 026 027/** 028 * The search user inputs from user preferences. 029 */ 030public class UserPrefsSearchUserInputs extends AbstractSearchUserInputs 031{ 032 /** Logger */ 033 protected static final Logger __LOGGER = LoggerFactory.getLogger(UserPrefsSearchUserInputs.class); 034 035 /** 036 * The constructor. 037 * @param criteria The criteria 038 * @param facets The facets 039 * @param sorts The sorts 040 */ 041 public UserPrefsSearchUserInputs(Map<String, Object> criteria, Map<String, List<String>> facets, List<Pair<String, Order>> sorts) 042 { 043 _criteria = criteria; 044 _facets = facets; 045 _sorts = sorts; 046 } 047}