Class FacesWorkflowLocalValidationContext
java.lang.Object
de.xima.fc.workflow.designer.logic.FacesWorkflowLocalValidationContext
- All Implemented Interfaces:
IBaseEnvironmentData,IWorkflowValidationEnvironmentData,IBaseWorkflowEnvironmentData,IWorkflowLocalBeanValidationContext,IWorkflowLocalValidationContext,IWorkflowValidationContext
public class FacesWorkflowLocalValidationContext
extends Object
implements IWorkflowLocalBeanValidationContext
Context for the workflow validation that is available when bean validation is invoked from JSF. All state is
delegated to the HTTP session / JSF view.
- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new, stateless bean workflow validation context. -
Method Summary
Modifier and TypeMethodDescription<T> TassociateValue(Object key, Function<IWorkflowLocalValidationContext, T> supplier) Associates the given value for the duration of the workflow validation process.getUser()Deprecated.
-
Constructor Details
-
FacesWorkflowLocalValidationContext
public FacesWorkflowLocalValidationContext()Creates a new, stateless bean workflow validation context. All state is delegated to the HTTP session / JSF view.
-
-
Method Details
-
associateValue
Description copied from interface:IWorkflowLocalValidationContextAssociates the given value for the duration of the workflow validation process. Once validation is done, the values are discarded.- Specified by:
associateValuein interfaceIWorkflowLocalValidationContext- Type Parameters:
T- Type of the associate value.- Parameters:
key- Key for the association.supplier- Supplier that produces the value when not yet present.- Returns:
- The associated value.
-
getClient
- Specified by:
getClientin interfaceIBaseEnvironmentData- Returns:
- The
Mandantof the current context.
-
getCurrentElementKey
- Specified by:
getCurrentElementKeyin interfaceIWorkflowLocalBeanValidationContext- Returns:
- The
ElementKeyof the current workflow node or trigger that is currently being checked in the current workflow process.nullwhen no such element key exists.
-
getEntityContext
- Specified by:
getEntityContextin interfaceIBaseEnvironmentData- Returns:
- The current entity context that may be used for database interactions.
-
getLocale
- Specified by:
getLocalein interfaceIBaseEnvironmentData- Returns:
- The locale to use for locale-sensitive actions.
-
getProject
- Specified by:
getProjectin interfaceIBaseWorkflowEnvironmentData- Returns:
- The current project to which the workflow belongs.
-
getProvider
- Specified by:
getProviderin interfaceIWorkflowValidationContext- Returns:
- The provider for accessing various contextual data, such as a list of all users or user groups.
-
getUserModel
- Specified by:
getUserModelin interfaceIBaseEnvironmentData- Returns:
- The user of the active context that should be used for protocol entries etc.
-
getUser
Deprecated.UsegetUserModel()instead.- Specified by:
getUserin interfaceIBaseEnvironmentData- Returns:
- The user of the active context that should be used for protocol entries etc.
-
getWorkflowVersion
- Specified by:
getWorkflowVersionin interfaceIBaseWorkflowEnvironmentData- Returns:
- The current workflow version that is being validated.
-
resultBuilder
- Specified by:
resultBuilderin interfaceIWorkflowLocalValidationContext- Returns:
- Builder for creating the result that needs to be returned by
IElementHandler#validateLocal. This is provided for convenience, you can also create your own implementation ofIWorkflowElementValidationResult.
-
getUserModel()instead.