Enum Class RightCheckingMode

java.lang.Object
java.lang.Enum<RightCheckingMode>
org.ametys.web.frontoffice.search.instance.model.RightCheckingMode
All Implemented Interfaces:
Serializable, Comparable<RightCheckingMode>, java.lang.constant.Constable

The right checking mode, either exact (better results), either fast (better performances), either none (too much result).
  • Enum Constant Details

    • 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 than EXACT (because Solr will never query the read-rights to Ametys)
  • Method Details

    • values

      public static RightCheckingMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static RightCheckingMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null