001/* 002 * Copyright 2018 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.instance.model; 017 018/** 019 * The right checking mode, either exact (better results), either fast (better performances), either none (too much result). 020 */ 021public enum RightCheckingMode 022{ 023 /** 024 * Exact right checking mode, i.e. the user will see all contents he has right on. 025 * <br>This mode is for not caching results. 026 */ 027 EXACT, 028 /** 029 * Fast right checking mode, i.e. the user could not see some contents he has right on. 030 * <br>This mode is for caching results. 031 */ 032 FAST, 033 /** 034 * <b>No</b> right checking mode, i.e. the user could see some contents he does <b>not</b> have right on. 035 * <br>This mode is for not caching results, but having better performances than {@link #EXACT} (because Solr will never query the read-rights to Ametys) 036 */ 037 NONE, 038}