Package de.uplanet.lucy.server
Class ContextValue
java.lang.Object
de.uplanet.lucy.server.ContextValue
-
Method Summary
Modifier and TypeMethodDescriptionstatic Object
getContextValue
(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strQualifiedName) Get a context value.static Object
getContextValueWithFallback
(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strQualifiedName, Object p_fallback) Get a context value and return a fallback value if the specified property does not exist.static boolean
isKnownContextName
(String p_strQualifiedName) Syntactically check if the given context name is recognized by the framework.static boolean
isRequestContextName
(String p_strQualifiedName) Check if the given name is a request context name, i.e.static boolean
isSessionContextName
(String p_strQualifiedName) Check if the given name is a session context name, i.e.static boolean
isSharedStateContextName
(String p_strQualifiedName) Check if the given name is a shared state context name, i.e.static boolean
isSystemDataGroupContextName
(String p_strQualifiedName) Check if the given name is a system data group context name, i.e.static boolean
isUserContextName
(String p_strQualifiedName) Check if the given name is a user context name, i.e.static boolean
isWorkflowUserContextName
(String p_strQualifiedName) Check if the given name is a workflow user context name, i.e.
-
Method Details
-
isKnownContextName
Syntactically check if the given context name is recognized by the framework.- Parameters:
p_strQualifiedName
- A qualified context name.- Returns:
true
if the given name is a known context name, orfalse
otherwise.- Throws:
IllegalArgumentException
- If the given name isnull
or empty.- See Also:
-
isRequestContextName
Check if the given name is a request context name, i.e. if it starts with theVARIABLE_NAMESPACE.URN_REQUEST_PREFIX
prefix. -
isSessionContextName
Check if the given name is a session context name, i.e. if it starts with theVARIABLE_NAMESPACE.URN_SESSION_PREFIX
prefix. -
isUserContextName
Check if the given name is a user context name, i.e. if it starts with theVARIABLE_NAMESPACE.URN_USER_PREFIX
prefix. -
isWorkflowUserContextName
Check if the given name is a workflow user context name, i.e. if it starts with theVARIABLE_NAMESPACE.URN_WORKFLOW_USER_PREFIX
prefix. -
isSystemDataGroupContextName
Check if the given name is a system data group context name, i.e. if it starts with theVARIABLE_NAMESPACE.URN_SYSTEM_DATA_GROUP_PREFIX
prefix. -
getContextValue
public static Object getContextValue(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strQualifiedName) throws de.uplanet.util.InvalidPropertyException Get a context value.- Parameters:
p_ctx
- The context.p_strQualifiedName
- The fully qualified (URN) name of the value.- Returns:
- The value.
- Throws:
de.uplanet.util.InvalidPropertyException
- If the context does not contain a value with the given qualified name.- See Also:
-
getContextValueWithFallback
public static Object getContextValueWithFallback(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strQualifiedName, Object p_fallback) Get a context value and return a fallback value if the specified property does not exist.- Parameters:
p_ctx
- The context.p_strQualifiedName
- The fully qualified (URN) name of the value.p_fallback
- The fallback value.- Returns:
- The value.
- See Also:
-