Package de.xima.fc.form.request
Class FormRequestContextBuilder
- java.lang.Object
-
- de.xima.fc.form.request.FormRequestContextBuilder
-
public class FormRequestContextBuilder extends Object
Builder for creating an form-request-context.- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description FormRequestContextBuilder(long projektId, Integer formVersionNummer)
FormRequestContextBuilder(long projektId, Integer formVersionNummer, String prozessId)
FormRequestContextBuilder(long projektId, Integer formVersionNummer, String prozessId, Benutzer benutzer)
FormRequestContextBuilder(long projektId, Integer formVersionNummer, String prozessId, Benutzer benutzer, FrontendServer frontendServer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IFormRequestContext
build(IFormRequestContext requestCtx)
builds theIFormRequestContext
based on the given builder data by loading all needed data from the master-server and sets them into the givenIFormRequestContext
IFormRequestContext
build(EFormRequestType requestType)
builds anIFormRequestContext
based on the data of the builder and the given parameters.IExtendedFormRequestContext
build(EFormRequestType requestType, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
builds anIExtendedFormRequestContext
based on the data of the builder and the given parameters.Benutzer
getBenutzer()
Integer
getFormVersionNummer()
FrontendServer
getFrontendServer()
long
getProjektId()
String
getProzessId()
String
getVerifyId()
boolean
isUseFormVersionByVorgang()
void
setBenutzer(Benutzer benutzer)
void
setFormVersionNummer(Integer formVersionNummer)
void
setFrontendServer(FrontendServer frontendServer)
void
setProjektId(long projektId)
void
setProzessId(String prozessId)
void
setUseFormVersionByVorgang(boolean useFormVersionByVorgang)
void
setVerifyId(String verifyId)
-
-
-
Constructor Detail
-
FormRequestContextBuilder
public FormRequestContextBuilder(long projektId, Integer formVersionNummer)
- Parameters:
projektId
-Integer
id of theProjekt
which should be loadedformVersionNummer
-Integer
version-number of theFormVersion
which should be loaded
-
FormRequestContextBuilder
public FormRequestContextBuilder(long projektId, Integer formVersionNummer, String prozessId)
-
FormRequestContextBuilder
public FormRequestContextBuilder(long projektId, Integer formVersionNummer, String prozessId, Benutzer benutzer)
-
FormRequestContextBuilder
public FormRequestContextBuilder(long projektId, Integer formVersionNummer, String prozessId, Benutzer benutzer, FrontendServer frontendServer)
- Parameters:
projektId
-Integer
id of theProjekt
which should be loadedformVersionNummer
-Integer
version-number of theFormVersion
which should be loadedprozessId
-String
process-id of theVorgang
which should be loadedbenutzer
-Benutzer
which should be loadedfrontendServer
-FrontendServer
on which the load-request is triggered
-
-
Method Detail
-
build
public IExtendedFormRequestContext build(EFormRequestType requestType, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws ContextBuilderException
builds anIExtendedFormRequestContext
based on the data of the builder and the given parameters. Usesbuild(IFormRequestContext)
for loading the requested data.- Parameters:
requestType
-EFormRequestType
of the form-requestrequest
-HttpServletRequest
which should be usedresponse
-HttpServletResponse
which should be used- Returns:
- the created
IExtendedFormRequestContext
- Throws:
ContextBuilderException
- on errors while creating the context
-
build
public IFormRequestContext build(EFormRequestType requestType) throws ContextBuilderException
builds anIFormRequestContext
based on the data of the builder and the given parameters. Usesbuild(IFormRequestContext)
for loading the requested data.- Parameters:
requestType
-EFormRequestType
of the form-request- Returns:
- the created
IFormRequestContext
- Throws:
ContextBuilderException
- on errors while creating the context
-
build
public IFormRequestContext build(IFormRequestContext requestCtx) throws ContextBuilderException
builds theIFormRequestContext
based on the given builder data by loading all needed data from the master-server and sets them into the givenIFormRequestContext
- Parameters:
requestCtx
-IFormRequestContext
for which the data should be loaded- Returns:
- the
IFormRequestContext
extended by the loaded data - Throws:
ContextBuilderException
- on errors while creating the context
-
getProjektId
public long getProjektId()
-
setProjektId
public void setProjektId(long projektId)
-
getFormVersionNummer
public Integer getFormVersionNummer()
-
setFormVersionNummer
public void setFormVersionNummer(Integer formVersionNummer)
-
getProzessId
public String getProzessId()
-
setProzessId
public void setProzessId(String prozessId)
-
getVerifyId
public String getVerifyId()
-
setVerifyId
public void setVerifyId(String verifyId)
-
isUseFormVersionByVorgang
public boolean isUseFormVersionByVorgang()
-
setUseFormVersionByVorgang
public void setUseFormVersionByVorgang(boolean useFormVersionByVorgang)
-
getFrontendServer
public FrontendServer getFrontendServer()
-
setFrontendServer
public void setFrontendServer(FrontendServer frontendServer)
-
getBenutzer
public Benutzer getBenutzer()
-
setBenutzer
public void setBenutzer(Benutzer benutzer)
-
-