Enum RightCheckingMode
- java.lang.Object
-
- java.lang.Enum<RightCheckingMode>
-
- org.ametys.web.frontoffice.search.instance.model.RightCheckingMode
-
- All Implemented Interfaces:
Serializable
,Comparable<RightCheckingMode>
public enum RightCheckingMode extends Enum<RightCheckingMode>
The right checking mode, either exact (better results), either fast (better performances), either none (too much result).
-
-
Constructor Summary
Constructors Modifier Constructor Description private
RightCheckingMode()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RightCheckingMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static RightCheckingMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EXACT
public static final RightCheckingMode EXACT
Exact right checking mode, i.e. the user will see all contents he has right on.
This mode is for not caching results.
-
FAST
public static final RightCheckingMode FAST
Fast right checking mode, i.e. the user could not see some contents he has right on.
This mode is for caching results.
-
NONE
public static final RightCheckingMode NONE
No right checking mode, i.e. the user could see some contents he does not have right on.
This mode is for not caching results, but having better performances thanEXACT
(because Solr will never query the read-rights to Ametys)
-
-
Constructor Detail
-
RightCheckingMode
private RightCheckingMode()
-
-
Method Detail
-
values
public static RightCheckingMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RightCheckingMode c : RightCheckingMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RightCheckingMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-