public enum GrouperContextTypeBuiltIn extends Enum<GrouperContextTypeBuiltIn> implements GrouperContextType
Enum Constant and Description |
---|
ANT_TOOLS
ant tools like schema-export etc
|
GROUPER_API
normal API call
|
GROUPER_LOADER
from grouper loader
|
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
|
Modifier and Type | Method and Description |
---|---|
static GrouperContextType |
_internal_getThreadLocalGrouperContextType() |
static GrouperContextType |
currentGrouperContext()
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 |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GrouperContextTypeBuiltIn[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
name
public static final GrouperContextTypeBuiltIn GROUPER_API
public static final GrouperContextTypeBuiltIn ANT_TOOLS
public static final GrouperContextTypeBuiltIn GROUPER_UI
public static final GrouperContextTypeBuiltIn GROUPER_WS
public static final GrouperContextTypeBuiltIn GSH
public static final GrouperContextTypeBuiltIn UNKNOWN
public static final GrouperContextTypeBuiltIn USDU
public static final GrouperContextTypeBuiltIn GROUPER_LOADER
public static GrouperContextTypeBuiltIn[] values()
for (GrouperContextTypeBuiltIn c : GrouperContextTypeBuiltIn.values()) System.out.println(c);
public static GrouperContextTypeBuiltIn valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static void setDefaultContext(GrouperContextType defaultContext)
defaultContext
- the defaultContext to setpublic static void setThreadLocalContext(GrouperContextType grouperContextType)
grouperContextType
- public static GrouperContextType currentGrouperContext()
public static GrouperContextType _internal_getThreadLocalGrouperContextType()
Copyright © 2016 Internet2. All rights reserved.