Package de.xima.fc.form.persist
Class FormPersistContextBuilder
java.lang.Object
de.xima.fc.form.persist.FormPersistContextBuilder
Builder for creating a form-persist-context.
- Author:
- XIMA MEDIA GmbH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()build(IExtendedFormRequestContext requestCtx) builds anIExtendedFormPersistContextbased on theIFormRequestContextand theIXFormof the builder and theIExtendedFormRequestContext.build(IFormPersistContext persistCtx) builds theIFormPersistContextbased on the given builder data by loading all needed data from the master-server and sets them into the givenIFormPersistContextbuild(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) builds anIExtendedFormPersistContextbased on theIFormRequestContextand theIXFormof the builder and the given parameters.getXform()booleanvoidsetCorrection(boolean correction) voidsetRequestCtx(IFormRequestContext requestCtx) void
-
Constructor Details
-
FormPersistContextBuilder
- Parameters:
requestCtx-IFormRequestContextwith data to persistxform-IXFormthe form of the persist call
-
-
Method Details
-
build
builds anIFormPersistContextbased on theIFormRequestContextand theIXFormof the builder. Usesbuild(IFormPersistContext)for loading the requested data.- Returns:
- the created
IExtendedFormPersistContext - Throws:
ContextBuilderException- on errors while creating the context
-
build
public IExtendedFormPersistContext build(IExtendedFormRequestContext requestCtx) throws ContextBuilderException builds anIExtendedFormPersistContextbased on theIFormRequestContextand theIXFormof the builder and theIExtendedFormRequestContext. Usesbuild(IFormPersistContext)for loading the requested data.- Parameters:
requestCtx-IExtendedFormRequestContextwith theHttpServletResponseandHttpServletRequestto use for theIExtendedFormPersistContext- Returns:
- the created
IExtendedFormPersistContext - Throws:
ContextBuilderException- on errors while creating the context
-
build
public IExtendedFormPersistContext build(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws ContextBuilderException builds anIExtendedFormPersistContextbased on theIFormRequestContextand theIXFormof the builder and the given parameters. Usesbuild(IFormPersistContext)for loading the requested data.- Parameters:
request-HttpServletRequestthe request to useresponse-HttpServletResponsethe response to use- Returns:
- the created
IExtendedFormPersistContext - Throws:
ContextBuilderException- on errors while creating the context
-
build
builds theIFormPersistContextbased on the given builder data by loading all needed data from the master-server and sets them into the givenIFormPersistContext- Parameters:
persistCtx-IFormPersistContextfor which the data should be loaded- Returns:
- the
IFormPersistContextextended by the loaded data - Throws:
ContextBuilderException- on errors while creating the context
-
getRequestCtx
-
setRequestCtx
-
getXform
-
setXform
-
setCorrection
public void setCorrection(boolean correction) -
isCorrection
public boolean isCorrection()
-