Package de.xima.fc.form.render
Class FormRenderContextBuilder
- java.lang.Object
-
- de.xima.fc.form.render.FormRenderContextBuilder
-
public class FormRenderContextBuilder extends Object
Builder for creating an form-render-context.- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description FormRenderContextBuilder(long projektId, int formVersionNumber, Locale locale)FormRenderContextBuilder(long projektId, int formVersionNumber, Locale locale, Benutzer benutzer)Deprecated.FormRenderContextBuilder(long projektId, Integer formVersionNumber, Locale locale, Benutzer benutzer, String processId)Deprecated.FormRenderContextBuilder(long projektId, Integer formVersionNumber, Locale locale, IUser user, String processId)FormRenderContextBuilder(long projektId, Locale locale)FormRenderContextBuilder(long projektId, Locale locale, Benutzer benutzer)Deprecated.FormRenderContextBuilder(long projektId, Locale locale, Benutzer benutzer, String processId)Deprecated.FormRenderContextBuilder(IFormRequestContext requestCtx)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description IExtendedFormRenderContextbuild(IExtendedFormRequestContext requestCtx)builds anIExtendedFormRenderContextbased on the data of the builder and theIExtendedFormRequestContext.IFormRenderContextbuild(IFormRenderContext renderCtx)builds theIFormRenderContextbased on the given builder data by loading all needed data from the master-server and sets them into the givenIFormRenderContextIFormRenderContextbuild(IFormRequestContext requestCtx)builds anIFormRenderContextbased on the givenIFormRequestContext.IFormRenderContextbuild(IFormRequestContext requestCtx, XButtonDescriptor buttonDescriptor)builds anIFormRenderContextbased on the givenIFormRequestContext.IFormRenderContextbuild(EFormRequestType requestType)Builds anIFormRenderContextwith the default values for the given request type.IExtendedFormRenderContextbuild(EFormRequestType requestType, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)builds anIExtendedFormRenderContextbased on the data of the builder and the given parameters.BenutzergetBenutzer()Deprecated.Useuserinstead.BooleangetCountFormCall()IntegergetFormVersionNumber()LocalegetLocale()StringgetProcessId()longgetProjektId()IXFormRenderConfiggetXFormConfig()booleanisExecutePreRenderer()voidsetBenutzer(Benutzer benutzer)Deprecated.Useuserinstead.voidsetCountFormCall(Boolean countFormCall)voidsetExecutePreRenderer(boolean executePreRenderer)voidsetFormVersionNumber(Integer formVersionNumber)voidsetLocale(Locale locale)voidsetProcessId(String processId)voidsetProjektId(Integer projektId)voidsetXFormConfig(IXFormRenderConfig xFormConfig)
-
-
-
Constructor Detail
-
FormRenderContextBuilder
public FormRenderContextBuilder(long projektId, int formVersionNumber, Locale locale)- Parameters:
projektId-Integerthe id of theProjektwhich should be renderdformVersionNumber-Integerthe version-number of theFormVersionwhich should be renderdlocale-Localewhich should be used
-
FormRenderContextBuilder
public FormRenderContextBuilder(long projektId, Locale locale)
-
FormRenderContextBuilder
public FormRenderContextBuilder(IFormRequestContext requestCtx)
- Parameters:
requestCtx-IFormRequestContextwhich should be used for creating the builder
-
FormRenderContextBuilder
public FormRenderContextBuilder(long projektId, Integer formVersionNumber, Locale locale, IUser user, String processId)- Parameters:
projektId-Integerthe id of theProjektwhich should be renderdformVersionNumber-Integerthe version-number of theFormVersionwhich should be renderdlocale-Localewhich should be useduser-IUserwhich should be usedprocessId-Stringthe process-id of theVorgangwhich should be rendered
-
FormRenderContextBuilder
@Deprecated public FormRenderContextBuilder(long projektId, int formVersionNumber, Locale locale, Benutzer benutzer)
Deprecated.
-
FormRenderContextBuilder
@Deprecated public FormRenderContextBuilder(long projektId, Locale locale, Benutzer benutzer)
Deprecated.
-
FormRenderContextBuilder
@Deprecated public FormRenderContextBuilder(long projektId, Locale locale, Benutzer benutzer, String processId)
Deprecated.
-
FormRenderContextBuilder
@Deprecated public FormRenderContextBuilder(long projektId, Integer formVersionNumber, Locale locale, Benutzer benutzer, String processId)
Deprecated.
-
-
Method Detail
-
build
public IExtendedFormRenderContext build(IExtendedFormRequestContext requestCtx) throws ContextBuilderException
builds anIExtendedFormRenderContextbased on the data of the builder and theIExtendedFormRequestContext. Usesbuild(IFormRenderContext)for loading the requested data.- Parameters:
requestCtx-IExtendedFormRequestContextwith theHttpServletResponseandHttpServletRequestto use for theIExtendedFormRequestContext- Returns:
- the created
IExtendedFormRenderContext - Throws:
ContextBuilderException- on errors while creating the context
-
build
public IExtendedFormRenderContext build(EFormRequestType requestType, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws ContextBuilderException
builds anIExtendedFormRenderContextbased on the data of the builder and the given parameters. Usesbuild(IFormRenderContext)for loading the requested data.- Parameters:
requestType-EFormRequestTypeof the render-requestrequest-HttpServletRequestthe request to useresponse-HttpServletResponsethe response to use- Returns:
- the created
IExtendedFormRenderContext - Throws:
ContextBuilderException- on errors while creating the context
-
build
public IFormRenderContext build(IFormRequestContext requestCtx) throws ContextBuilderException
builds anIFormRenderContextbased on the givenIFormRequestContext. Usesbuild(IFormRenderContext)for loading the requested data.- Parameters:
requestCtx- theIFormRequestContextto use- Throws:
ContextBuilderException- on errors while creating the context
-
build
public IFormRenderContext build(IFormRequestContext requestCtx, XButtonDescriptor buttonDescriptor) throws ContextBuilderException
builds anIFormRenderContextbased on the givenIFormRequestContext. Usesbuild(IFormRenderContext)for loading the requested data.- Parameters:
requestCtx- theIFormRequestContextto usebuttonDescriptor- theXButtonDescriptorto use- Throws:
ContextBuilderException- on errors while creating the context
-
build
public IFormRenderContext build(EFormRequestType requestType) throws ContextBuilderException
Builds anIFormRenderContextwith the default values for the given request type.- Parameters:
requestType- theEFormRequestTypeto use- Returns:
- A new form render context for the given request type.
- Throws:
ContextBuilderException- on errors while creating the context
-
build
public IFormRenderContext build(IFormRenderContext renderCtx) throws ContextBuilderException
builds theIFormRenderContextbased on the given builder data by loading all needed data from the master-server and sets them into the givenIFormRenderContext- Parameters:
renderCtx-IFormRenderContextfor which the data should be loaded- Returns:
- the
IFormRenderContextextended by the loaded data - Throws:
ContextBuilderException- on errors while creating the context
-
getProjektId
public long getProjektId()
-
setProjektId
public void setProjektId(Integer projektId)
-
getFormVersionNumber
public Integer getFormVersionNumber()
-
setFormVersionNumber
public void setFormVersionNumber(Integer formVersionNumber)
-
getProcessId
public String getProcessId()
-
setProcessId
public void setProcessId(String processId)
-
getXFormConfig
public IXFormRenderConfig getXFormConfig()
-
setXFormConfig
public void setXFormConfig(IXFormRenderConfig xFormConfig)
-
getLocale
public Locale getLocale()
-
setLocale
public void setLocale(Locale locale)
-
isExecutePreRenderer
public boolean isExecutePreRenderer()
-
setExecutePreRenderer
public void setExecutePreRenderer(boolean executePreRenderer)
-
getCountFormCall
public Boolean getCountFormCall()
-
setCountFormCall
public void setCountFormCall(Boolean countFormCall)
-
getBenutzer
@Deprecated public Benutzer getBenutzer()
Deprecated.Useuserinstead.
-
setBenutzer
@Deprecated public void setBenutzer(Benutzer benutzer)
Deprecated.Useuserinstead.
-
-