public class FormRenderContext extends Object implements IFormRenderContext
Modifier and Type | Field and Description |
---|---|
protected String |
baseURL |
protected List<BenutzerGruppe> |
benutzerGruppen |
protected List<com.hp.gagawa.java.Node> |
customNodes |
protected Map<String,List<String[]>> |
customValuesMap |
protected List<Attachment> |
formUploadList |
protected Map<String,String> |
hiddenInputParameters |
protected com.alibaba.fastjson.JSONObject |
i18nJson |
protected boolean |
isExternal |
protected Map<String,com.alibaba.fastjson.JSONObject> |
pluginMetaMap |
protected Map<String,List<String>> |
prozessParameters |
protected Map<String,List<String>> |
renderParameters |
protected IFormRequestContext |
requestCtx |
protected Status |
status |
protected String |
submitURL |
protected Textbaustein |
themeTextbaustein |
protected Map<String,List<String>> |
urlParameters |
protected Map<String,List<String[]>> |
valuesMap |
protected IXFormRenderConfig |
xFormConfig |
Modifier | Constructor and Description |
---|---|
protected |
FormRenderContext(IFormRequestContext requestCtx) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBenutzer, getBenutzerGruppen, getRequestContext, setBenutzer, setBenutzerGruppen, setRequestContext
protected IFormRequestContext requestCtx
protected List<com.hp.gagawa.java.Node> customNodes
protected List<Attachment> formUploadList
protected List<BenutzerGruppe> benutzerGruppen
protected boolean isExternal
protected Status status
protected Textbaustein themeTextbaustein
protected String submitURL
protected String baseURL
protected IXFormRenderConfig xFormConfig
protected com.alibaba.fastjson.JSONObject i18nJson
protected FormRenderContext(IFormRequestContext requestCtx) throws ContextBuilderException
ContextBuilderException
public UserContext getUserContext()
getUserContext
in interface IFormRenderContext
public void setUserContext(UserContext userContext)
setUserContext
in interface IFormRenderContext
public Map<String,String> getHiddenInputParameter()
getHiddenInputParameter
in interface IFormRenderContext
public void addHiddenInputParameter(String key, String value)
addHiddenInputParameter
in interface IFormRenderContext
public void setHiddenInputParameters(Map<String,String> hiddenInputParameters)
setHiddenInputParameters
in interface IFormRenderContext
public Map<String,List<String>> getProzessParameter()
getProzessParameter
in interface IFormRenderContext
public void addProzessParameter(String key, List<String> value)
addProzessParameter
in interface IFormRenderContext
public void setProzessParameter(Map<String,List<String>> prozessParameters)
setProzessParameter
in interface IFormRenderContext
public Map<String,List<String>> getRenderParameter()
getRenderParameter
in interface IFormRenderContext
public void addRenderParameter(String key, List<String> value)
addRenderParameter
in interface IFormRenderContext
public void setRenderParameter(Map<String,List<String>> renderParameters)
setRenderParameter
in interface IFormRenderContext
public Map<String,List<String>> getUrlParameter()
getUrlParameter
in interface IFormRenderContext
public void addUrlParameter(String key, List<String> value)
addUrlParameter
in interface IFormRenderContext
public void setUrlParameter(Map<String,List<String>> urlParameter)
setUrlParameter
in interface IFormRenderContext
public Map<String,com.alibaba.fastjson.JSONObject> getPluginMetaMap()
getPluginMetaMap
in interface IFormRenderContext
public void addPluginMeta(String key, com.alibaba.fastjson.JSONObject value)
addPluginMeta
in interface IFormRenderContext
public void setPluginMetaMap(Map<String,com.alibaba.fastjson.JSONObject> pluginMetaMap)
setPluginMetaMap
in interface IFormRenderContext
public List<com.hp.gagawa.java.Node> getCustomNodes()
getCustomNodes
in interface IFormRenderContext
public void addCustomNode(com.hp.gagawa.java.Node node)
addCustomNode
in interface IFormRenderContext
public void setCustomNodes(List<com.hp.gagawa.java.Node> customNodes)
setCustomNodes
in interface IFormRenderContext
public Map<String,List<String[]>> getValuesMap()
getValuesMap
in interface IFormRenderContext
public void setValuesMap(Map<String,List<String[]>> valuesMap)
setValuesMap
in interface IFormRenderContext
public Map<String,List<String[]>> getCustomValuesMap()
getCustomValuesMap
in interface IFormRenderContext
public void setCustomValuesMap(Map<String,List<String[]>> customValuesMap)
setCustomValuesMap
in interface IFormRenderContext
public FRQSession getFRQSession()
getFRQSession
in interface IFormRenderContext
public void setFRQSession(FRQSession frqSession)
setFRQSession
in interface IFormRenderContext
public XfcSession getSession()
getSession
in interface IFormRenderContext
public void setSession(XfcSession session)
setSession
in interface IFormRenderContext
public Projekt getProjekt()
getProjekt
in interface IFormRenderContext
public void setProjekt(Projekt projekt)
setProjekt
in interface IFormRenderContext
public FormVersion getFormVersion()
getFormVersion
in interface IFormRenderContext
public void setFormVersion(FormVersion formVersion)
setFormVersion
in interface IFormRenderContext
public Benutzer getUser()
getUser
in interface IFormRenderContext
public void setUser(Benutzer benutzer)
setUser
in interface IFormRenderContext
public Vorgang getVorgang()
getVorgang
in interface IFormRenderContext
public void setVorgang(Vorgang vorgang)
setVorgang
in interface IFormRenderContext
public org.pac4j.core.profile.CommonProfile getUserProfile()
getUserProfile
in interface IFormRenderContext
public void setUserProfile(org.pac4j.core.profile.CommonProfile profile)
setUserProfile
in interface IFormRenderContext
public Mandant getMandant()
getMandant
in interface IFormRenderContext
public void setMandant(Mandant mandant)
setMandant
in interface IFormRenderContext
public Locale getLocale()
getLocale
in interface IFormRenderContext
public void setLocale(Locale locale)
setLocale
in interface IFormRenderContext
public List<BenutzerGruppe> getUserGroups()
getUserGroups
in interface IFormRenderContext
public void setUserGroups(List<BenutzerGruppe> benutzerGruppen)
setUserGroups
in interface IFormRenderContext
public com.alibaba.fastjson.JSONObject createUserDataJSON()
createUserDataJSON
in interface IFormRenderContext
public Map<String,Serializable> getSessionAttributeMap()
getSessionAttributeMap
in interface IFormRenderContext
public void setSessionAttributeMap(Map<String,Serializable> sessionAttributes)
setSessionAttributeMap
in interface IFormRenderContext
public String getBaseUrl()
getBaseUrl
in interface IFormRenderContext
public void setBaseUrl(String baseURI)
setBaseUrl
in interface IFormRenderContext
public String getSessionID()
getSessionID
in interface IFormRenderContext
public void setSessionID(String sessionID)
setSessionID
in interface IFormRenderContext
public EFormRequestType getRequestType()
getRequestType
in interface IFormRenderContext
public void setRequestType(EFormRequestType requestType)
setRequestType
in interface IFormRenderContext
public ParameterWrapper getParameterWrapper()
getParameterWrapper
in interface IFormRenderContext
@Deprecated public void setParameterWrapper(ParameterWrapper parameterWrapper)
setParameterWrapper
in interface IFormRenderContext
public Status getStatus()
getStatus
in interface IFormRenderContext
public void setStatus(Status status)
setStatus
in interface IFormRenderContext
public String getSubmitURL()
getSubmitURL
in interface IFormRenderContext
public void setSubmitURL(String submitUrl)
setSubmitURL
in interface IFormRenderContext
public boolean isExternal()
isExternal
in interface IFormRenderContext
public void setExternal(boolean isExternal)
setExternal
in interface IFormRenderContext
public IXFormRenderConfig getXFormConfig()
getXFormConfig
in interface IFormRenderContext
public void setXFormConfig(IXFormRenderConfig xFormConfig)
setXFormConfig
in interface IFormRenderContext
public String encodeURL(String url)
encodeURL
in interface IFormRenderContext
public List<Attachment> getFormUploadList()
getFormUploadList
in interface IFormRenderContext
public void setFormUploadList(List<Attachment> formUploadList)
setFormUploadList
in interface IFormRenderContext
public void setI18nJSON(com.alibaba.fastjson.JSONObject i18nJson)
setI18nJSON
in interface IFormRenderContext
public com.alibaba.fastjson.JSONObject getI18nJSON()
getI18nJSON
in interface IFormRenderContext
public IFormRequestContext getFormRequestContext()
getFormRequestContext
in interface IFormRenderContext
public void setFormRequestContext(IFormRequestContext requestCtx)
setFormRequestContext
in interface IFormRenderContext
public Textbaustein getThemeTextbaustein()
getThemeTextbaustein
in interface IFormRenderContext
public void setThemeTextbaustein(Textbaustein themeTextbaustein)
setThemeTextbaustein
in interface IFormRenderContext
public Map<EFormResourceType,List<ProjektRessource>> getProjectResourceMap()
getProjectResourceMap
in interface IFormRenderContext
public void setProjectResourceMap(Map<EFormResourceType,List<ProjektRessource>> resMap)
setProjectResourceMap
in interface IFormRenderContext
public List<ProjektRessource> getProjectResources(EFormResourceType type)
getProjectResources
in interface IFormRenderContext
public void setProjectResources(EFormResourceType type, List<ProjektRessource> resources)
setProjectResources
in interface IFormRenderContext
public Map<EFormResourceType,List<MandantRessource>> getClientResourceMap()
getClientResourceMap
in interface IFormRenderContext
public void setClientResourceMap(Map<EFormResourceType,List<MandantRessource>> resMap)
setClientResourceMap
in interface IFormRenderContext
public List<MandantRessource> getClientResources(EFormResourceType type)
getClientResources
in interface IFormRenderContext
public void setClientResources(EFormResourceType type, List<MandantRessource> resources)
setClientResources
in interface IFormRenderContext
public Map<EFormResourceType,List<IFormResource>> getClientPluginResourceMap()
getClientPluginResourceMap
in interface IFormRenderContext
public void setClientPluginResourceMap(Map<EFormResourceType,List<IFormResource>> resMap)
setClientPluginResourceMap
in interface IFormRenderContext
public List<IFormResource> getClientPluginResources(EFormResourceType type)
getClientPluginResources
in interface IFormRenderContext
public void setClientPluginResources(EFormResourceType type, List<IFormResource> resources)
setClientPluginResources
in interface IFormRenderContext
public Map<EFormResourceType,List<IFormResource>> getSystemPluginResourceMap()
getSystemPluginResourceMap
in interface IFormRenderContext
public void setSystemPluginResourceMap(Map<EFormResourceType,List<IFormResource>> resMap)
setSystemPluginResourceMap
in interface IFormRenderContext
public List<IFormResource> getSystemPluginResources(EFormResourceType type)
getSystemPluginResources
in interface IFormRenderContext
public void setSystemPluginResources(EFormResourceType type, List<IFormResource> resources)
setSystemPluginResources
in interface IFormRenderContext
public IXForm buildXForm() throws IOException, com.alibaba.fastjson.JSONException
IFormRenderContext
IXForm
from the contextbuildXForm
in interface IFormRenderContext
IXForm
IOException
- on errors while reading the formcom.alibaba.fastjson.JSONException
- on errors while generating the forms JSONObject
public IXFormRenderConfig buildXFormConfig() throws IOException
IFormRenderContext
IXFormRenderConfig
from the contextbuildXFormConfig
in interface IFormRenderContext
IXFormRenderConfig
IOException
- on errors while reading the formpublic com.alibaba.fastjson.JSONObject buildXFormJSON() throws IOException, com.alibaba.fastjson.JSONException
IFormRenderContext
JSONObject
from the render-contextbuildXFormJSON
in interface IFormRenderContext
JSONObject
IOException
- on errors while reading the formcom.alibaba.fastjson.JSONException
- on errors while generating the forms JSONObject
public String render() throws IOException, com.alibaba.fastjson.JSONException
IFormRenderContext
String
render
in interface IFormRenderContext
String
IOException
- on errors while reading or rendering the formcom.alibaba.fastjson.JSONException
- on errors while generating the forms JSONObject
public void render(IExtendedFormRequestContext requestCtx) throws IOException, com.alibaba.fastjson.JSONException
IFormRenderContext
HttpServletResponse
of the given IExtendedFormRequestContext
render
in interface IFormRenderContext
requestCtx
- IExtendedFormRequestContext
which HttpServletResponse
should be usedIOException
- on errors while reading or rendering the formcom.alibaba.fastjson.JSONException
- on errors while generating the forms JSONObject
public void render(javax.servlet.http.HttpServletResponse response) throws IOException, com.alibaba.fastjson.JSONException
IFormRenderContext
HttpServletResponse
render
in interface IFormRenderContext
response
- HttpServletResponse
which should be usedIOException
- on errors while reading or rendering the formcom.alibaba.fastjson.JSONException
- on errors while generating the forms JSONObject
@Deprecated public SessionAttributes getSessionAttributes()
getSessionAttributes
in interface IFormRenderContext
@Deprecated public void setSessionAttributes(SessionAttributes sessionAttributes)
setSessionAttributes
in interface IFormRenderContext
@Deprecated public ParameterWrapper getRequestParameters()
getRequestParameters
in interface IFormRenderContext
@Deprecated public void setRequestParameters(ParameterWrapper requestParameters)
setRequestParameters
in interface IFormRenderContext
@Deprecated public Map<String,List<String>> getUrlParamMap()
getUrlParamMap
in interface IFormRenderContext
@Deprecated public List<MandantRessource> getMandantJsResources()
getClientResources(EFormResourceType)
getMandantJsResources
in interface IFormRenderContext
@Deprecated public void setMandantJsResources(List<MandantRessource> jsMandantResources)
setClientResources(EFormResourceType, List)
setMandantJsResources
in interface IFormRenderContext
@Deprecated public List<MandantRessource> getMandantCssResources()
getClientResources(EFormResourceType)
getMandantCssResources
in interface IFormRenderContext
@Deprecated public void setMandantCssResources(List<MandantRessource> cssMandantResources)
setClientResources(EFormResourceType, List)
setMandantCssResources
in interface IFormRenderContext
@Deprecated public List<ProjektRessource> getProjektJsResources()
getProjectResources(EFormResourceType)
getProjektJsResources
in interface IFormRenderContext
@Deprecated public void setProjektJsResources(List<ProjektRessource> jsProjektResources)
setProjectResources(EFormResourceType, List)
setProjektJsResources
in interface IFormRenderContext
@Deprecated public List<ProjektRessource> getProjektCssResources()
getProjectResources(EFormResourceType)
getProjektCssResources
in interface IFormRenderContext
@Deprecated public void setProjektCssResources(List<ProjektRessource> cssProjektResources)
setProjectResources(EFormResourceType, List)
setProjektCssResources
in interface IFormRenderContext
@Deprecated public List<IFormResource> getSystemPluginJsResources()
getSystemPluginResources(EFormResourceType)
getSystemPluginJsResources
in interface IFormRenderContext
@Deprecated public void setSystemPluginJsResources(List<IFormResource> jsSystemPluginResources)
setSystemPluginResources(EFormResourceType, List)
setSystemPluginJsResources
in interface IFormRenderContext
@Deprecated public List<IFormResource> getSystemPluginCssResources()
getSystemPluginResources(EFormResourceType)
getSystemPluginCssResources
in interface IFormRenderContext
@Deprecated public void setSystemPluginCssResources(List<IFormResource> cssSystemPluginResources)
setSystemPluginResources(EFormResourceType, List)
setSystemPluginCssResources
in interface IFormRenderContext
@Deprecated public List<IFormResource> getMandantPluginJsResources()
getClientPluginResources(EFormResourceType)
getMandantPluginJsResources
in interface IFormRenderContext
@Deprecated public void setMandantPluginJsResources(List<IFormResource> jsMandantPluginResources)
setClientPluginResources(EFormResourceType, List)
setMandantPluginJsResources
in interface IFormRenderContext
@Deprecated public List<IFormResource> getMandantPluginCssResources()
getClientPluginResources(EFormResourceType)
getMandantPluginCssResources
in interface IFormRenderContext
@Deprecated public void setMandantPluginCssResources(List<IFormResource> cssMandantPluginResources)
setClientPluginResources(EFormResourceType, List)
setMandantPluginCssResources
in interface IFormRenderContext
Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.