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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionant tools like schema-export etcnormal API callfrom grouper loaderfrom the UIfrom the wsfrom grouper shellif the context type if not knownfrom undeleted subject utility -
Method Summary
Modifier and TypeMethodDescriptionstatic GrouperContextType
static GrouperContextType
current grouper context.static void
setDefaultContext
(GrouperContextType defaultContext) global default context (if not one set in thread local)static void
setThreadLocalContext
(GrouperContextType grouperContextType) static GrouperContextTypeBuiltIn
Returns the enum constant of this class with the specified name.static GrouperContextTypeBuiltIn
valueOfIgnoreCase
(String string, boolean exceptionOnNotFound) static GrouperContextTypeBuiltIn[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface edu.internet2.middleware.grouper.hooks.beans.GrouperContextType
name
-
Enum Constant Details
-
GROUPER_API
normal API call -
ANT_TOOLS
ant tools like schema-export etc -
GROUPER_UI
from the UI -
GROUPER_WS
from the ws -
GSH
from grouper shell -
UNKNOWN
if the context type if not known -
USDU
from undeleted subject utility -
GROUPER_LOADER
from grouper loader
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
setDefaultContext
global default context (if not one set in thread local)- Parameters:
defaultContext
- the defaultContext to set
-
setThreadLocalContext
- Parameters:
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
- Returns:
- the threadLocalGrouperContextType
-
valueOfIgnoreCase
public static GrouperContextTypeBuiltIn valueOfIgnoreCase(String string, boolean exceptionOnNotFound) - Parameters:
string
-exceptionOnNotFound
-- Returns:
-