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 anIExtendedFormPersistContext
based on theIFormRequestContext
and theIXForm
of the builder and theIExtendedFormRequestContext
.build
(IFormPersistContext persistCtx) builds theIFormPersistContext
based on the given builder data by loading all needed data from the master-server and sets them into the givenIFormPersistContext
build
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) builds anIExtendedFormPersistContext
based on theIFormRequestContext
and theIXForm
of the builder and the given parameters.getXform()
boolean
void
setCorrection
(boolean correction) void
setRequestCtx
(IFormRequestContext requestCtx) void
-
Constructor Details
-
FormPersistContextBuilder
- Parameters:
requestCtx
-IFormRequestContext
with data to persistxform
-IXForm
the form of the persist call
-
-
Method Details
-
build
builds anIFormPersistContext
based on theIFormRequestContext
and theIXForm
of 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 anIExtendedFormPersistContext
based on theIFormRequestContext
and theIXForm
of the builder and theIExtendedFormRequestContext
. Usesbuild(IFormPersistContext)
for loading the requested data.- Parameters:
requestCtx
-IExtendedFormRequestContext
with theHttpServletResponse
andHttpServletRequest
to 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 anIExtendedFormPersistContext
based on theIFormRequestContext
and theIXForm
of the builder and the given parameters. Usesbuild(IFormPersistContext)
for loading the requested data.- Parameters:
request
-HttpServletRequest
the request to useresponse
-HttpServletResponse
the response to use- Returns:
- the created
IExtendedFormPersistContext
- Throws:
ContextBuilderException
- on errors while creating the context
-
build
builds theIFormPersistContext
based on the given builder data by loading all needed data from the master-server and sets them into the givenIFormPersistContext
- Parameters:
persistCtx
-IFormPersistContext
for which the data should be loaded- Returns:
- the
IFormPersistContext
extended 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()
-