Package de.uplanet.lucy.server
Class ContextValue
java.lang.Object
de.uplanet.lucy.server.ContextValue
-
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectgetContextValue(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strQualifiedName) Get a context value.static ObjectgetContextValueWithFallback(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 booleanisKnownContextName(String p_strQualifiedName) Syntactically check if the given context name is recognized by the framework.static booleanisRequestContextName(String p_strQualifiedName) Check if the given name is a request context name, i.e.static booleanisSessionContextName(String p_strQualifiedName) Check if the given name is a session context name, i.e.static booleanisSharedStateContextName(String p_strQualifiedName) Check if the given name is a shared state context name, i.e.static booleanisSystemDataGroupContextName(String p_strQualifiedName) Check if the given name is a system data group context name, i.e.static booleanisUserContextName(String p_strQualifiedName) Check if the given name is a user context name, i.e.static booleanisWorkflowUserContextName(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:
trueif the given name is a known context name, orfalseotherwise.- Throws:
IllegalArgumentException- If the given name isnullor empty.- See Also:
-
isRequestContextName
Check if the given name is a request context name, i.e. if it starts with theVARIABLE_NAMESPACE.URN_REQUEST_PREFIXprefix. -
isSessionContextName
Check if the given name is a session context name, i.e. if it starts with theVARIABLE_NAMESPACE.URN_SESSION_PREFIXprefix. -
isUserContextName
Check if the given name is a user context name, i.e. if it starts with theVARIABLE_NAMESPACE.URN_USER_PREFIXprefix. -
isWorkflowUserContextName
Check if the given name is a workflow user context name, i.e. if it starts with theVARIABLE_NAMESPACE.URN_WORKFLOW_USER_PREFIXprefix. -
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_PREFIXprefix. -
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:
-