Package de.xima.fc.form.process
Class FormProcessContextBuilder
- java.lang.Object
-
- de.xima.fc.form.process.FormProcessContextBuilder
-
public class FormProcessContextBuilder extends Object
Builder for creating an form-process-context.- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description FormProcessContextBuilder(IFormRequestContext requestCtx)
FormProcessContextBuilder(IFormRequestContext requestCtx, boolean deleteVorgang)
FormProcessContextBuilder(IFormRequestContext requestCtx, boolean deleteVorgang, IFormRecordProvidingEvent providingEvent)
FormProcessContextBuilder(IFormRequestContext requestCtx, IFormRecordProvidingEvent providingEvent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IFormProcessContext
build()
builds anIFormProcessContext
based on the givenIFormRequestContext
of the builderIExtendedFormProcessContext
build(IExtendedFormRequestContext requestCtx)
builds anIExtendedFormProcessContext
based on theIFormRequestContext
of the builder and theIExtendedFormRequestContext
.IFormProcessContext
build(IFormProcessContext processCtx)
Builds theIFormProcessContext
based on the given builder data by loading all needed data from the master server and sets them into the givenIFormProcessContext
.IExtendedFormProcessContext
build(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
builds anIExtendedFormProcessContext
based on theIFormRequestContext
of the builder and the given parameters.IFormRequestContext
getRequestCtx()
boolean
isDeleteVorgang()
void
setDeleteVorgang(boolean deleteVorgang)
void
setFormRecordProvidingEvent(IFormRecordProvidingEvent providingEvent)
void
setRequestCtx(IFormRequestContext requestCtx)
-
-
-
Constructor Detail
-
FormProcessContextBuilder
public FormProcessContextBuilder(IFormRequestContext requestCtx)
- Parameters:
requestCtx
-IFormRequestContext
with the data to process
-
FormProcessContextBuilder
public FormProcessContextBuilder(IFormRequestContext requestCtx, boolean deleteVorgang)
- Parameters:
requestCtx
-IFormRequestContext
with the data to processdeleteVorgang
-Boolean
if theVorgang
should be deleted after processing. (Default:false
)
-
FormProcessContextBuilder
public FormProcessContextBuilder(IFormRequestContext requestCtx, IFormRecordProvidingEvent providingEvent)
- Parameters:
requestCtx
-IFormRequestContext
with the data to processprovidingEvent
- aIFormRecordProvidingEvent
ornull
-
FormProcessContextBuilder
public FormProcessContextBuilder(IFormRequestContext requestCtx, boolean deleteVorgang, IFormRecordProvidingEvent providingEvent)
- Parameters:
requestCtx
-IFormRequestContext
with the data to processdeleteVorgang
-Boolean
if theVorgang
should be deleted after processing. (Default:false
)providingEvent
- aIFormRecordProvidingEvent
ornull
-
-
Method Detail
-
build
public IFormProcessContext build() throws ContextBuilderException
builds anIFormProcessContext
based on the givenIFormRequestContext
of the builder- Returns:
- the created
IFormProcessContext
- Throws:
ContextBuilderException
- on errors while creating the context
-
build
public IExtendedFormProcessContext build(IExtendedFormRequestContext requestCtx) throws ContextBuilderException
builds anIExtendedFormProcessContext
based on theIFormRequestContext
of the builder and theIExtendedFormRequestContext
. Usesbuild(IFormProcessContext)
for loading the requested data.- Parameters:
requestCtx
-IExtendedFormRequestContext
with theHttpServletResponse
andHttpServletRequest
to 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 anIExtendedFormProcessContext
based on theIFormRequestContext
of the builder and the given parameters. Usesbuild(IFormProcessContext)
for loading the requested data.- Parameters:
request
-HttpServletRequest
the request to useresponse
-HttpServletResponse
the response to use- Returns:
- the created
IExtendedFormProcessContext
- Throws:
ContextBuilderException
- on errors while creating the context
-
build
public IFormProcessContext build(IFormProcessContext processCtx) throws ContextBuilderException
Builds theIFormProcessContext
based on the given builder data by loading all needed data from the master server and sets them into the givenIFormProcessContext
.- Parameters:
processCtx
-IFormProcessContext
for which the data should be loaded- Returns:
- the
IFormProcessContext
extended by the loaded data - Throws:
ContextBuilderException
- on errors while creating the context
-
getRequestCtx
public IFormRequestContext getRequestCtx()
-
setRequestCtx
public void setRequestCtx(IFormRequestContext requestCtx)
-
isDeleteVorgang
public boolean isDeleteVorgang()
-
setDeleteVorgang
public void setDeleteVorgang(boolean deleteVorgang)
-
setFormRecordProvidingEvent
public void setFormRecordProvidingEvent(IFormRecordProvidingEvent providingEvent)
-
-