Class FormRenderContextWrapper
java.lang.Object
de.xima.fc.form.render.FormRenderContextWrapper
- All Implemented Interfaces:
IFormRenderContext, Serializable
- Direct Known Subclasses:
ExtendedFormRenderContextWrapper
Wrapper for an
IFormRenderContext that delegates all calls to the wrapped instance.- Since:
- 8.4.1
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCustomNode(com.hp.gagawa.java.Node node) voidaddHiddenInputParameter(String key, String value) voidaddPluginMeta(String key, com.alibaba.fastjson.JSONObject value) voidaddProzessParameter(String key, List<String> value) voidaddRenderParameter(String key, List<String> value) voidaddUrlParameter(String key, List<String> value) builds theIXFormfrom the contextbuilds theIXFormRenderConfigfrom the contextcom.alibaba.fastjson.JSONObjectbuilds theJSONObjectfrom the render-contextcom.alibaba.fastjson.JSONObjectDeprecated.Deprecated.List<com.hp.gagawa.java.Node> Deprecated.Gets the map with all resources from theIFormThemethat was selected for the currently rendered form.Gets all resources of the given type from theIFormThemethat was selected for the currently rendered form.com.alibaba.fastjson.JSONObject*Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.getUser()Deprecated.org.pac4j.core.profile.CommonProfileDeprecated.booleanbooleanbooleanrender()renders the context and returns the result asStringvoidrender(IExtendedFormRequestContext requestCtx) renders the context to theHttpServletResponseof the givenIExtendedFormRequestContextvoidrender(javax.servlet.http.HttpServletResponse response) renders the context to the givenHttpServletResponsevoidsetBaseUrl(String baseUrl) voidsetBenutzer(Benutzer benutzer) Deprecated.voidsetBenutzerGruppen(List<BenutzerGruppe> benutzerGruppen) Deprecated.voidsetButtonDescriptor(XButtonDescriptor buttonDescriptor) voidvoidsetClientPluginResources(EFormResourceType type, List<IFormResource> resources) voidsetClientResourceMap(Map<EFormResourceType, List<MandantRessource>> resMap) voidsetClientResources(EFormResourceType type, List<MandantRessource> resources) voidsetCustomNodes(List<com.hp.gagawa.java.Node> customNodes) voidsetCustomValuesMap(Map<String, List<String[]>> customValuesMap) voidsetDynContainerMap(Map<String, FormContainerMetaData> fieldContainerMap) Deprecated.voidsetExternal(boolean isExternal) voidsetFormRequestContext(IFormRequestContext requestCtx) voidsetFormThemeResourceMap(Map<EFormResourceType, List<IFormThemeResource>> resourceMap) Sets the map with all resources from theIFormThemethat was selected for the currently rendered form.voidsetFormUploadList(List<Attachment> formUploadList) voidsetFormVersion(FormVersion formVersion) voidsetFRQSession(FRQSession frqSession) voidsetHiddenInputParameters(Map<String, String> hiddenInputParameters) voidsetHideRequiredHint(boolean isHideRequiredHint) voidsetI18nJSON(com.alibaba.fastjson.JSONObject i18nJson) voidsetIDynContainerMap(Map<String, IFormContainerMetaData> fieldContainerMap) voidvoidsetMandant(Mandant mandant) voidsetMandantCssResources(List<MandantRessource> cssMandantResources) Deprecated.voidsetMandantJsResources(List<MandantRessource> jsMandantResources) Deprecated.voidsetMandantPluginCssResources(List<IFormResource> cssMandantPluginResources) Deprecated.voidsetMandantPluginJsResources(List<IFormResource> jsMandantPluginResources) Deprecated.voidsetParameterWrapper(ParameterWrapper parameterWrapper) voidsetPluginMetaMap(Map<String, com.alibaba.fastjson.JSONObject> pluginMetaMap) voidvoidsetProjectResources(EFormResourceType type, List<ProjektRessource> resources) voidsetProjekt(Projekt projekt) voidsetProjektCssResources(List<ProjektRessource> cssProjektResources) Deprecated.voidsetProjektJsResources(List<ProjektRessource> jsProjektResources) Deprecated.voidsetProzessParameter(Map<String, List<String>> prozessParameters) voidsetRenderParameter(Map<String, List<String>> renderParameters) voidsetRequestContext(String requestContext) Deprecated.voidsetRequestParameters(ParameterWrapper requestParameters) Deprecated.voidsetRequestType(EFormRequestType requestType) voidsetSession(XfcSession session) voidsetSessionAttributeMap(Map<String, Serializable> sessionAttributes) voidsetSessionAttributes(SessionAttributes sessionAttributes) Deprecated.voidsetSessionID(String sessionID) voidsetSessionTimeout(Duration timeout) voidDeprecated.voidsetSubmitURL(String submitUrl) voidsetSystemPluginCssResources(List<IFormResource> cssSystemPluginResources) Deprecated.voidsetSystemPluginJsResources(List<IFormResource> jsSystemPluginResources) Deprecated.voidvoidsetSystemPluginResources(EFormResourceType type, List<IFormResource> resources) voidsetThemeTextbaustein(Textbaustein themeTextbaustein) Deprecated.voidsetUrlParameter(Map<String, List<String>> urlParameter) voidDeprecated.voidsetUserContext(UserContext userContext) voidsetUserGroups(List<BenutzerGruppe> userGroups) Deprecated.voidsetUserModel(IUser user) voidsetUserProfile(org.pac4j.core.profile.CommonProfile profile) Deprecated.voidsetUsesNewWorkflow(boolean usesNewWorkflow) voidsetValuesMap(Map<String, List<String[]>> valuesMap) voidsetVorgang(Vorgang vorgang) voidsetWorkflowState(WorkflowState workflowState) voidsetXFormConfig(IXFormRenderConfig xFormConfig)
-
Field Details
-
wrapped
-
-
Constructor Details
-
FormRenderContextWrapper
-
-
Method Details
-
addCustomNode
public void addCustomNode(com.hp.gagawa.java.Node node) - Specified by:
addCustomNodein interfaceIFormRenderContext
-
addHiddenInputParameter
- Specified by:
addHiddenInputParameterin interfaceIFormRenderContext
-
addPluginMeta
- Specified by:
addPluginMetain interfaceIFormRenderContext
-
addProzessParameter
- Specified by:
addProzessParameterin interfaceIFormRenderContext
-
addRenderParameter
- Specified by:
addRenderParameterin interfaceIFormRenderContext
-
addUrlParameter
- Specified by:
addUrlParameterin interfaceIFormRenderContext
-
buildXForm
Description copied from interface:IFormRenderContextbuilds theIXFormfrom the context- Specified by:
buildXFormin interfaceIFormRenderContext- Returns:
- the created
IXForm - Throws:
IOException- on errors while reading the formcom.alibaba.fastjson.JSONException- on errors while generating the formsJSONObject
-
buildXFormConfig
Description copied from interface:IFormRenderContextbuilds theIXFormRenderConfigfrom the context- Specified by:
buildXFormConfigin interfaceIFormRenderContext- Returns:
- the created
IXFormRenderConfig - Throws:
IOException- on errors while reading the form
-
buildXFormJSON
public com.alibaba.fastjson.JSONObject buildXFormJSON() throws IOException, com.alibaba.fastjson.JSONExceptionDescription copied from interface:IFormRenderContextbuilds theJSONObjectfrom the render-context- Specified by:
buildXFormJSONin interfaceIFormRenderContext- Returns:
- the created
JSONObject - Throws:
IOException- on errors while reading the formcom.alibaba.fastjson.JSONException- on errors while generating the formsJSONObject
-
createUserDataJSON
public com.alibaba.fastjson.JSONObject createUserDataJSON()- Specified by:
createUserDataJSONin interfaceIFormRenderContext
-
encodeURL
- Specified by:
encodeURLin interfaceIFormRenderContext
-
getBaseUrl
- Specified by:
getBaseUrlin interfaceIFormRenderContext
-
setBaseUrl
- Specified by:
setBaseUrlin interfaceIFormRenderContext
-
getBenutzer
Deprecated.- Specified by:
getBenutzerin interfaceIFormRenderContext
-
setBenutzer
Deprecated.- Specified by:
setBenutzerin interfaceIFormRenderContext
-
getBenutzerGruppen
Deprecated.- Specified by:
getBenutzerGruppenin interfaceIFormRenderContext
-
setBenutzerGruppen
Deprecated.- Specified by:
setBenutzerGruppenin interfaceIFormRenderContext
-
getButtonDescriptor
- Specified by:
getButtonDescriptorin interfaceIFormRenderContext
-
setButtonDescriptor
- Specified by:
setButtonDescriptorin interfaceIFormRenderContext
-
getClientPluginResourceMap
- Specified by:
getClientPluginResourceMapin interfaceIFormRenderContext
-
setClientPluginResourceMap
- Specified by:
setClientPluginResourceMapin interfaceIFormRenderContext
-
getClientPluginResources
- Specified by:
getClientPluginResourcesin interfaceIFormRenderContext
-
getClientResourceMap
- Specified by:
getClientResourceMapin interfaceIFormRenderContext
-
setClientResourceMap
- Specified by:
setClientResourceMapin interfaceIFormRenderContext
-
getClientResources
- Specified by:
getClientResourcesin interfaceIFormRenderContext
-
getCustomNodes
- Specified by:
getCustomNodesin interfaceIFormRenderContext
-
setCustomNodes
- Specified by:
setCustomNodesin interfaceIFormRenderContext
-
getCustomValuesMap
- Specified by:
getCustomValuesMapin interfaceIFormRenderContext
-
setCustomValuesMap
- Specified by:
setCustomValuesMapin interfaceIFormRenderContext
-
getDynContainerMap
Deprecated.Description copied from interface:IFormRenderContext*- Specified by:
getDynContainerMapin interfaceIFormRenderContext- Returns:
- A map between the name of a repeated container and its metadata. No mapping is present when the containeris not repeated.
-
setDynContainerMap
Deprecated.- Specified by:
setDynContainerMapin interfaceIFormRenderContext- Parameters:
fieldContainerMap- A map between the name of a form field and the (repetition) container that contains the form field. No mapping is present when the form field is not repeated.
-
getFRQSession
- Specified by:
getFRQSessionin interfaceIFormRenderContext
-
setFRQSession
- Specified by:
setFRQSessionin interfaceIFormRenderContext
-
getFormRequestContext
- Specified by:
getFormRequestContextin interfaceIFormRenderContext
-
setFormRequestContext
- Specified by:
setFormRequestContextin interfaceIFormRenderContext
-
getFormThemeResourceMap
Description copied from interface:IFormRenderContextGets the map with all resources from theIFormThemethat was selected for the currently rendered form.- Specified by:
getFormThemeResourceMapin interfaceIFormRenderContext- Returns:
- A map with all resources from the selected
IFormTheme.
-
setFormThemeResourceMap
Description copied from interface:IFormRenderContextSets the map with all resources from theIFormThemethat was selected for the currently rendered form.- Specified by:
setFormThemeResourceMapin interfaceIFormRenderContext- Parameters:
resourceMap- A map with all resources from the selectedIFormTheme.
-
getFormThemeResources
Description copied from interface:IFormRenderContextGets all resources of the given type from theIFormThemethat was selected for the currently rendered form.- Specified by:
getFormThemeResourcesin interfaceIFormRenderContext- Parameters:
type- The type of the resources to get.- Returns:
- A list with all resources of the given type from the selected
IFormTheme.
-
getFormUploadList
- Specified by:
getFormUploadListin interfaceIFormRenderContext
-
setFormUploadList
- Specified by:
setFormUploadListin interfaceIFormRenderContext
-
getFormVersion
- Specified by:
getFormVersionin interfaceIFormRenderContext
-
setFormVersion
- Specified by:
setFormVersionin interfaceIFormRenderContext
-
getHiddenInputParameter
- Specified by:
getHiddenInputParameterin interfaceIFormRenderContext
-
getI18nJSON
public com.alibaba.fastjson.JSONObject getI18nJSON()- Specified by:
getI18nJSONin interfaceIFormRenderContext
-
setI18nJSON
public void setI18nJSON(com.alibaba.fastjson.JSONObject i18nJson) - Specified by:
setI18nJSONin interfaceIFormRenderContext
-
getIDynContainerMap
Description copied from interface:IFormRenderContext*- Specified by:
getIDynContainerMapin interfaceIFormRenderContext- Returns:
- A map between the name of a repeated container and its metadata. No mapping is present when the containeris not repeated.
-
setIDynContainerMap
- Specified by:
setIDynContainerMapin interfaceIFormRenderContext- Parameters:
fieldContainerMap- A map between the name of a form field and the (repetition) container that contains the form field. No mapping is present when the form field is not repeated.
-
getLocale
- Specified by:
getLocalein interfaceIFormRenderContext
-
setLocale
- Specified by:
setLocalein interfaceIFormRenderContext
-
getMandant
- Specified by:
getMandantin interfaceIFormRenderContext
-
setMandant
- Specified by:
setMandantin interfaceIFormRenderContext
-
getMandantCssResources
Deprecated.- Specified by:
getMandantCssResourcesin interfaceIFormRenderContext
-
setMandantCssResources
Deprecated.- Specified by:
setMandantCssResourcesin interfaceIFormRenderContext
-
getMandantJsResources
Deprecated.- Specified by:
getMandantJsResourcesin interfaceIFormRenderContext
-
setMandantJsResources
Deprecated.- Specified by:
setMandantJsResourcesin interfaceIFormRenderContext
-
getMandantPluginCssResources
Deprecated.- Specified by:
getMandantPluginCssResourcesin interfaceIFormRenderContext
-
setMandantPluginCssResources
Deprecated.- Specified by:
setMandantPluginCssResourcesin interfaceIFormRenderContext
-
getMandantPluginJsResources
Deprecated.- Specified by:
getMandantPluginJsResourcesin interfaceIFormRenderContext
-
setMandantPluginJsResources
Deprecated.- Specified by:
setMandantPluginJsResourcesin interfaceIFormRenderContext
-
getParameterWrapper
- Specified by:
getParameterWrapperin interfaceIFormRenderContext
-
setParameterWrapper
- Specified by:
setParameterWrapperin interfaceIFormRenderContext
-
getPluginMetaMap
- Specified by:
getPluginMetaMapin interfaceIFormRenderContext
-
setPluginMetaMap
- Specified by:
setPluginMetaMapin interfaceIFormRenderContext
-
getProjectResourceMap
- Specified by:
getProjectResourceMapin interfaceIFormRenderContext
-
setProjectResourceMap
- Specified by:
setProjectResourceMapin interfaceIFormRenderContext
-
getProjectResources
- Specified by:
getProjectResourcesin interfaceIFormRenderContext
-
getProjekt
- Specified by:
getProjektin interfaceIFormRenderContext
-
setProjekt
- Specified by:
setProjektin interfaceIFormRenderContext
-
getProjektCssResources
Deprecated.- Specified by:
getProjektCssResourcesin interfaceIFormRenderContext
-
setProjektCssResources
Deprecated.- Specified by:
setProjektCssResourcesin interfaceIFormRenderContext
-
getProjektJsResources
Deprecated.- Specified by:
getProjektJsResourcesin interfaceIFormRenderContext
-
setProjektJsResources
Deprecated.- Specified by:
setProjektJsResourcesin interfaceIFormRenderContext
-
getProzessParameter
- Specified by:
getProzessParameterin interfaceIFormRenderContext
-
setProzessParameter
- Specified by:
setProzessParameterin interfaceIFormRenderContext
-
getRenderParameter
- Specified by:
getRenderParameterin interfaceIFormRenderContext
-
setRenderParameter
- Specified by:
setRenderParameterin interfaceIFormRenderContext
-
getRequestContext
Deprecated.- Specified by:
getRequestContextin interfaceIFormRenderContext
-
setRequestContext
Deprecated.- Specified by:
setRequestContextin interfaceIFormRenderContext
-
getRequestParameters
Deprecated.- Specified by:
getRequestParametersin interfaceIFormRenderContext
-
setRequestParameters
Deprecated.- Specified by:
setRequestParametersin interfaceIFormRenderContext
-
getRequestType
- Specified by:
getRequestTypein interfaceIFormRenderContext
-
setRequestType
- Specified by:
setRequestTypein interfaceIFormRenderContext
-
getSession
- Specified by:
getSessionin interfaceIFormRenderContext
-
setSession
- Specified by:
setSessionin interfaceIFormRenderContext
-
getSessionAttributeMap
- Specified by:
getSessionAttributeMapin interfaceIFormRenderContext- Returns:
- A
Mapof all key-value pairs in the currentHttpSession. Please note that changes to this map will not affect theHttpSession.
-
setSessionAttributeMap
- Specified by:
setSessionAttributeMapin interfaceIFormRenderContext- Parameters:
sessionAttributes- AMapof all key-value pairs in the currentHttpSession. Please note that changes to this map will not affect theHttpSession.
-
getSessionAttributes
Deprecated.- Specified by:
getSessionAttributesin interfaceIFormRenderContext
-
setSessionAttributes
Deprecated.- Specified by:
setSessionAttributesin interfaceIFormRenderContext
-
getSessionID
- Specified by:
getSessionIDin interfaceIFormRenderContext
-
setSessionID
- Specified by:
setSessionIDin interfaceIFormRenderContext
-
getSessionTimeout
- Specified by:
getSessionTimeoutin interfaceIFormRenderContext- Returns:
- The time it takes for an HTTP session on the server to timeout. This relates to the server which provided the form, the timeout may be different depending on the server.
-
setSessionTimeout
- Specified by:
setSessionTimeoutin interfaceIFormRenderContext- Parameters:
timeout- The time it takes for an HTTP session on the server to timeout. This relates to the server which provided the form, the timeout may be different depending on the server.
-
getStatus
Deprecated.- Specified by:
getStatusin interfaceIFormRenderContext- Returns:
- A state of the form record to use for rendering the form.
-
setStatus
Deprecated.- Specified by:
setStatusin interfaceIFormRenderContext- Parameters:
status- A state of the form record to use for rendering the form.
-
getSubmitURL
- Specified by:
getSubmitURLin interfaceIFormRenderContext
-
setSubmitURL
- Specified by:
setSubmitURLin interfaceIFormRenderContext
-
getSystemPluginCssResources
Deprecated.- Specified by:
getSystemPluginCssResourcesin interfaceIFormRenderContext
-
setSystemPluginCssResources
Deprecated.- Specified by:
setSystemPluginCssResourcesin interfaceIFormRenderContext
-
getSystemPluginJsResources
Deprecated.- Specified by:
getSystemPluginJsResourcesin interfaceIFormRenderContext
-
setSystemPluginJsResources
Deprecated.- Specified by:
setSystemPluginJsResourcesin interfaceIFormRenderContext
-
getSystemPluginResourceMap
- Specified by:
getSystemPluginResourceMapin interfaceIFormRenderContext
-
setSystemPluginResourceMap
- Specified by:
setSystemPluginResourceMapin interfaceIFormRenderContext
-
getSystemPluginResources
- Specified by:
getSystemPluginResourcesin interfaceIFormRenderContext
-
getThemeTextbaustein
Deprecated.Description copied from interface:IFormRenderContextGets thetext templatewith the CSS content to be used as the theme for the form.- Specified by:
getThemeTextbausteinin interfaceIFormRenderContext- Returns:
- The text template with the theme CSS.
-
setThemeTextbaustein
Deprecated.Description copied from interface:IFormRenderContextSets thetext templatewith the CSS content to be used as the theme for the form.- Specified by:
setThemeTextbausteinin interfaceIFormRenderContext- Parameters:
themeTextbaustein- The text template with the theme CSS.
-
getUrlParamMap
Deprecated.- Specified by:
getUrlParamMapin interfaceIFormRenderContext
-
getUrlParameter
- Specified by:
getUrlParameterin interfaceIFormRenderContext
-
setUrlParameter
- Specified by:
setUrlParameterin interfaceIFormRenderContext
-
getUser
Deprecated.- Specified by:
getUserin interfaceIFormRenderContext
-
setUser
Deprecated.- Specified by:
setUserin interfaceIFormRenderContext
-
getUserContext
- Specified by:
getUserContextin interfaceIFormRenderContext
-
setUserContext
- Specified by:
setUserContextin interfaceIFormRenderContext
-
getUserGroups
- Specified by:
getUserGroupsin interfaceIFormRenderContext
-
setUserGroups
Deprecated.- Specified by:
setUserGroupsin interfaceIFormRenderContext
-
getUserModel
- Specified by:
getUserModelin interfaceIFormRenderContext
-
setUserModel
- Specified by:
setUserModelin interfaceIFormRenderContext
-
getUserPortal
- Specified by:
getUserPortalin interfaceIFormRenderContext
-
getUserProfile
Deprecated.- Specified by:
getUserProfilein interfaceIFormRenderContext
-
setUserProfile
Deprecated.- Specified by:
setUserProfilein interfaceIFormRenderContext
-
getValuesMap
- Specified by:
getValuesMapin interfaceIFormRenderContext
-
setValuesMap
- Specified by:
setValuesMapin interfaceIFormRenderContext
-
getVorgang
- Specified by:
getVorgangin interfaceIFormRenderContext
-
setVorgang
- Specified by:
setVorgangin interfaceIFormRenderContext
-
getWorkflowState
- Specified by:
getWorkflowStatein interfaceIFormRenderContext
-
setWorkflowState
- Specified by:
setWorkflowStatein interfaceIFormRenderContext
-
getXFormConfig
- Specified by:
getXFormConfigin interfaceIFormRenderContext
-
setXFormConfig
- Specified by:
setXFormConfigin interfaceIFormRenderContext
-
isExternal
public boolean isExternal()- Specified by:
isExternalin interfaceIFormRenderContext
-
setExternal
public void setExternal(boolean isExternal) - Specified by:
setExternalin interfaceIFormRenderContext
-
isHideRequiredHint
public boolean isHideRequiredHint()- Specified by:
isHideRequiredHintin interfaceIFormRenderContext
-
setHideRequiredHint
public void setHideRequiredHint(boolean isHideRequiredHint) - Specified by:
setHideRequiredHintin interfaceIFormRenderContext
-
isUsesNewWorkflow
public boolean isUsesNewWorkflow()- Specified by:
isUsesNewWorkflowin interfaceIFormRenderContext
-
setUsesNewWorkflow
public void setUsesNewWorkflow(boolean usesNewWorkflow) - Specified by:
setUsesNewWorkflowin interfaceIFormRenderContext
-
render
Description copied from interface:IFormRenderContextrenders the context and returns the result asString- Specified by:
renderin interfaceIFormRenderContext- Returns:
- the rendered form as
String - Throws:
IOException- on errors while reading or rendering the formcom.alibaba.fastjson.JSONException- on errors while generating the formsJSONObject
-
render
public void render(IExtendedFormRequestContext requestCtx) throws IOException, com.alibaba.fastjson.JSONException Description copied from interface:IFormRenderContextrenders the context to theHttpServletResponseof the givenIExtendedFormRequestContext- Specified by:
renderin interfaceIFormRenderContext- Parameters:
requestCtx-IExtendedFormRequestContextwhichHttpServletResponseshould be used- Throws:
IOException- on errors while reading or rendering the formcom.alibaba.fastjson.JSONException- on errors while generating the formsJSONObject
-
render
public void render(javax.servlet.http.HttpServletResponse response) throws IOException, com.alibaba.fastjson.JSONException Description copied from interface:IFormRenderContextrenders the context to the givenHttpServletResponse- Specified by:
renderin interfaceIFormRenderContext- Parameters:
response-HttpServletResponsewhich should be used- Throws:
IOException- on errors while reading or rendering the formcom.alibaba.fastjson.JSONException- on errors while generating the formsJSONObject
-
setClientPluginResources
- Specified by:
setClientPluginResourcesin interfaceIFormRenderContext
-
setClientResources
- Specified by:
setClientResourcesin interfaceIFormRenderContext
-
setHiddenInputParameters
- Specified by:
setHiddenInputParametersin interfaceIFormRenderContext
-
setProjectResources
- Specified by:
setProjectResourcesin interfaceIFormRenderContext
-
setSystemPluginResources
- Specified by:
setSystemPluginResourcesin interfaceIFormRenderContext
-