Package de.uplanet.lucy.server
Klasse ContextValue
java.lang.Object
de.uplanet.lucy.server.ContextValue
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic 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. if it starts with theVARIABLE_NAMESPACE.URN_REQUEST_PREFIXprefix.static booleanisSessionContextName(String p_strQualifiedName) Check if the given name is a session context name, i.e. if it starts with theVARIABLE_NAMESPACE.URN_SESSION_PREFIXprefix.static booleanisSharedStateContextName(String p_strQualifiedName) Check if the given name is a shared state context name, i.e. if it starts with theVARIABLE_NAMESPACE.URN_SHARED_STATE_PREFIXprefix.static booleanisSystemDataGroupContextName(String p_strQualifiedName) 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.static booleanisUserContextName(String p_strQualifiedName) Check if the given name is a user context name, i.e. if it starts with theVARIABLE_NAMESPACE.URN_USER_PREFIXprefix.static booleanisWorkflowUserContextName(String p_strQualifiedName) Check if the given name is a workflow user context name, i.e. if it starts with theVARIABLE_NAMESPACE.URN_WORKFLOW_USER_PREFIXprefix.
-
Methodendetails
-
isKnownContextName
Syntactically check if the given context name is recognized by the framework.- Parameter:
p_strQualifiedName- A qualified context name.- Gibt zurück:
trueif the given name is a known context name, orfalseotherwise.- Löst aus:
IllegalArgumentException- If the given name isnullor empty.- Siehe auch:
-
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.- Parameter:
p_ctx- The context.p_strQualifiedName- The fully qualified (URN) name of the value.- Gibt zurück:
- The value.
- Löst aus:
de.uplanet.util.InvalidPropertyException- If the context does not contain a value with the given qualified name.- Siehe auch:
-
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.- Parameter:
p_ctx- The context.p_strQualifiedName- The fully qualified (URN) name of the value.p_fallback- The fallback value.- Gibt zurück:
- The value.
- Siehe auch:
-