public class FormPersistContextBuilder extends Object
Constructor and Description |
---|
FormPersistContextBuilder(IFormRequestContext requestCtx,
IXForm xform) |
Modifier and Type | Method and Description |
---|---|
IFormPersistContext |
build()
|
IExtendedFormPersistContext |
build(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
builds an
IExtendedFormPersistContext based on the IFormRequestContext an the IXForm of the
builder and the given parameters. |
IExtendedFormPersistContext |
build(IExtendedFormRequestContext requestCtx)
builds an
IExtendedFormPersistContext based on the IFormRequestContext an the IXForm of the
builder and the IExtendedFormRequestContext . |
IFormPersistContext |
build(IFormPersistContext persistCtx)
builds the
IFormPersistContext based on the given builder data by loading all needed data from the
master-server and sets them into the given IFormPersistContext |
IFormRequestContext |
getRequestCtx() |
IXForm |
getXform() |
boolean |
isCorrection() |
void |
setCorrection(boolean correction) |
void |
setRequestCtx(IFormRequestContext requestCtx) |
void |
setXform(IXForm xform) |
public FormPersistContextBuilder(IFormRequestContext requestCtx, IXForm xform)
requestCtx
- IFormRequestContext
with data to persistxform
- IXForm
the form form of the persist-callpublic IFormPersistContext build() throws ContextBuilderException
IFormPersistContext
based on the IFormRequestContext
an the IXForm
of the
builder. Uses build(IFormPersistContext)
for loading the requested data.IExtendedFormPersistContext
ContextBuilderException
- on errors while creating the contextpublic IExtendedFormPersistContext build(IExtendedFormRequestContext requestCtx) throws ContextBuilderException
IExtendedFormPersistContext
based on the IFormRequestContext
an the IXForm
of the
builder and the IExtendedFormRequestContext
. Uses build(IFormPersistContext)
for loading the
requested data.requestCtx
- IExtendedFormRequestContext
with the HttpServletResponse
and
HttpServletRequest
to use for the IExtendedFormPersistContext
IExtendedFormPersistContext
ContextBuilderException
- on errors while creating the contextpublic IExtendedFormPersistContext build(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws ContextBuilderException
IExtendedFormPersistContext
based on the IFormRequestContext
an the IXForm
of the
builder and the given parameters. Uses build(IFormPersistContext)
for loading the requested data.request
- HttpServletRequest
the request to useresponse
- HttpServletResponse
the response to useIExtendedFormPersistContext
ContextBuilderException
- on errors while creating the contextpublic IFormPersistContext build(IFormPersistContext persistCtx) throws ContextBuilderException
IFormPersistContext
based on the given builder data by loading all needed data from the
master-server and sets them into the given IFormPersistContext
persistCtx
- IFormPersistContext
for which the data should be loadedIFormPersistContext
extended by the loaded dataContextBuilderException
- on errors while creating the contextpublic IFormRequestContext getRequestCtx()
public void setRequestCtx(IFormRequestContext requestCtx)
public IXForm getXform()
public void setXform(IXForm xform)
public void setCorrection(boolean correction)
public boolean isCorrection()
Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.