Enum Class GrouperContextTypeBuiltIn

java.lang.Object
java.lang.Enum<GrouperContextTypeBuiltIn>
edu.internet2.middleware.grouper.hooks.beans.GrouperContextTypeBuiltIn
All Implemented Interfaces:
GrouperContextType, Serializable, Comparable<GrouperContextTypeBuiltIn>, Constable

public enum GrouperContextTypeBuiltIn extends Enum<GrouperContextTypeBuiltIn> implements GrouperContextType
type of context
  • Enum Constant Details

  • Method Details

    • values

      public static GrouperContextTypeBuiltIn[] 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 GrouperContextTypeBuiltIn 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
    • setDefaultContext

      public static void setDefaultContext(GrouperContextType defaultContext)
      global default context (if not one set in thread local)
      Parameters:
      defaultContext - the defaultContext to set
    • setThreadLocalContext

      public static void setThreadLocalContext(GrouperContextType grouperContextType)
      Parameters:
      grouperContextType -
    • currentGrouperContext

      public static GrouperContextType currentGrouperContext()
      current grouper context. Will not return null, if null will return UNKNOWN. This defaults to the default global context, but if the threadlocal one was set, use that instead.
      Returns:
      the threadlocal if there is one there, or global
    • _internal_getThreadLocalGrouperContextType

      public static GrouperContextType _internal_getThreadLocalGrouperContextType()
      Returns:
      the threadLocalGrouperContextType
    • valueOfIgnoreCase

      public static GrouperContextTypeBuiltIn valueOfIgnoreCase(String string, boolean exceptionOnNotFound)
      Parameters:
      string -
      exceptionOnNotFound -
      Returns: