Package de.xima.fc.form.process
Class FormProcessContextBuilder
java.lang.Object
de.xima.fc.form.process.FormProcessContextBuilder
Builder for creating an form-process-context.
- Author:
- XIMA MEDIA GmbH
-
Constructor Summary
ConstructorsConstructorDescriptionFormProcessContextBuilder(IFormRequestContext requestCtx) FormProcessContextBuilder(IFormRequestContext requestCtx, boolean deleteVorgang) FormProcessContextBuilder(IFormRequestContext requestCtx, boolean deleteVorgang, IFormRecordProvidingEvent providingEvent) FormProcessContextBuilder(IFormRequestContext requestCtx, IFormRecordProvidingEvent providingEvent) -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds anIFormProcessContextbased on the givenIFormRequestContextof the builderbuild(IExtendedFormRequestContext requestCtx) builds anIExtendedFormProcessContextbased on theIFormRequestContextof the builder and theIExtendedFormRequestContext.build(IFormProcessContext processCtx) Builds theIFormProcessContextbased on the given builder data by loading all needed data from the master server and sets them into the givenIFormProcessContext.build(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) builds anIExtendedFormProcessContextbased on theIFormRequestContextof the builder and the given parameters.booleanvoidsetDeleteVorgang(boolean deleteVorgang) voidsetFormRecordProvidingEvent(IFormRecordProvidingEvent providingEvent) voidsetRequestCtx(IFormRequestContext requestCtx)
-
Constructor Details
-
FormProcessContextBuilder
- Parameters:
requestCtx-IFormRequestContextwith the data to process
-
FormProcessContextBuilder
- Parameters:
requestCtx-IFormRequestContextwith the data to processdeleteVorgang-Booleanif theVorgangshould be deleted after processing. (Default:false)
-
FormProcessContextBuilder
public FormProcessContextBuilder(IFormRequestContext requestCtx, IFormRecordProvidingEvent providingEvent) - Parameters:
requestCtx-IFormRequestContextwith the data to processprovidingEvent- aIFormRecordProvidingEventornull
-
FormProcessContextBuilder
public FormProcessContextBuilder(IFormRequestContext requestCtx, boolean deleteVorgang, IFormRecordProvidingEvent providingEvent) - Parameters:
requestCtx-IFormRequestContextwith the data to processdeleteVorgang-Booleanif theVorgangshould be deleted after processing. (Default:false)providingEvent- aIFormRecordProvidingEventornull
-
-
Method Details
-
build
builds anIFormProcessContextbased on the givenIFormRequestContextof the builder- Returns:
- the created
IFormProcessContext - Throws:
ContextBuilderException- on errors while creating the context
-
build
public IExtendedFormProcessContext build(IExtendedFormRequestContext requestCtx) throws ContextBuilderException builds anIExtendedFormProcessContextbased on theIFormRequestContextof the builder and theIExtendedFormRequestContext. Usesbuild(IFormProcessContext)for loading the requested data.- Parameters:
requestCtx-IExtendedFormRequestContextwith theHttpServletResponseandHttpServletRequestto use for theIExtendedFormRequestContext- Returns:
- the created
IExtendedFormRequestContext - Throws:
ContextBuilderException- on errors while creating the context
-
build
public IExtendedFormProcessContext build(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws ContextBuilderException builds anIExtendedFormProcessContextbased on theIFormRequestContextof the builder and the given parameters. Usesbuild(IFormProcessContext)for loading the requested data.- Parameters:
request-HttpServletRequestthe request to useresponse-HttpServletResponsethe response to use- Returns:
- the created
IExtendedFormProcessContext - Throws:
ContextBuilderException- on errors while creating the context
-
build
Builds theIFormProcessContextbased on the given builder data by loading all needed data from the master server and sets them into the givenIFormProcessContext.- Parameters:
processCtx-IFormProcessContextfor which the data should be loaded- Returns:
- the
IFormProcessContextextended by the loaded data - Throws:
ContextBuilderException- on errors while creating the context
-
getRequestCtx
-
setRequestCtx
-
isDeleteVorgang
public boolean isDeleteVorgang() -
setDeleteVorgang
public void setDeleteVorgang(boolean deleteVorgang) -
setFormRecordProvidingEvent
-