Package de.xima.fc.form.render
Class FormRenderContextBuilder
java.lang.Object
de.xima.fc.form.render.FormRenderContextBuilder
Builder for creating an form-render-context.
- Author:
- XIMA MEDIA GmbH
-
Constructor Summary
ConstructorsConstructorDescriptionFormRenderContextBuilder(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
Modifier and TypeMethodDescriptionbuild(IExtendedFormRequestContext requestCtx) builds anIExtendedFormRenderContextbased on the data of the builder and theIExtendedFormRequestContext.build(IFormRenderContext renderCtx) builds theIFormRenderContextbased on the given builder data by loading all needed data from the master-server and sets them into the givenIFormRenderContextbuild(IFormRequestContext requestCtx) builds anIFormRenderContextbased on the givenIFormRequestContext.build(IFormRequestContext requestCtx, XButtonDescriptor buttonDescriptor) builds anIFormRenderContextbased on the givenIFormRequestContext.build(EFormRequestType requestType) Builds anIFormRenderContextwith the default values for the given request type.build(EFormRequestType requestType, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) builds anIExtendedFormRenderContextbased on the data of the builder and the given parameters.Deprecated.longbooleanvoidsetBenutzer(Benutzer benutzer) Deprecated.Useuserinstead.voidsetCountFormCall(Boolean countFormCall) voidsetExecutePreRenderer(boolean executePreRenderer) voidsetFormVersionNumber(Integer formVersionNumber) voidvoidsetProcessId(String processId) voidsetProjektId(Integer projektId) voidsetXFormConfig(IXFormRenderConfig xFormConfig)
-
Constructor Details
-
FormRenderContextBuilder
- Parameters:
projektId-Integerthe id of theProjektwhich should be renderdformVersionNumber-Integerthe version-number of theFormVersionwhich should be renderdlocale-Localewhich should be used
-
FormRenderContextBuilder
-
FormRenderContextBuilder
- 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. -
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 Details
-
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
builds anIFormRenderContextbased on the givenIFormRequestContext. Usesbuild(IFormRenderContext)for loading the requested data.- Parameters:
requestCtx- theIFormRequestContextto use- Returns:
- The new render context with the configured data.
- 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- Returns:
- The new render context with the configured data.
- Throws:
ContextBuilderException- on errors while creating the context
-
build
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
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
-
getFormVersionNumber
-
setFormVersionNumber
-
getProcessId
-
setProcessId
-
getXFormConfig
-
setXFormConfig
-
getLocale
-
setLocale
-
isExecutePreRenderer
public boolean isExecutePreRenderer() -
setExecutePreRenderer
public void setExecutePreRenderer(boolean executePreRenderer) -
getCountFormCall
-
setCountFormCall
-
getBenutzer
Deprecated.Useuserinstead. -
setBenutzer
Deprecated.Useuserinstead.
-
userinstead.