public class FD2Helper extends Object
| Constructor and Description |
|---|
FD2Helper() |
| Modifier and Type | Method and Description |
|---|---|
static XForm |
getDefaultXForm(FD2RenderContext fd2Ctx) |
static XForm |
getDefaultXForm(XFormConfig xFormConfig,
FD2RenderContext fd2Ctx) |
static XFormConfig |
getDefaultXFormConfig(FD2RenderContext fd2Ctx) |
static org.json.JSONObject |
getFD2FormAsJSON(Projekt pro,
FormVersion fv)
add documentation
|
static String |
getFormAsString(FD2RenderContext fd2Ctx) |
static List<String> |
getMandantRessources(javax.servlet.http.HttpServletResponse resp,
Mandant mandant,
boolean inline,
String fileEnding) |
static List<String> |
getProjektRessources(javax.servlet.http.HttpServletResponse resp,
Projekt projekt,
boolean inline,
String fileEnding) |
static void |
registerXFormCacheProvider(IXformCacheProvider xFormCacheProvider) |
static void |
renderFD2Form(FD2RenderContext fd2Ctx,
IExtendedFormRequestContext ctx) |
static void |
renderFD2Form(IXForm xForm,
IExtendedFormRequestContext ctx) |
static org.json.JSONObject |
resolveLanguage(String lang,
String tbText) |
static boolean |
validateFD2Form(FD2RenderContext fd2Ctx,
IExtendedFormRequestContext ctx) |
static boolean |
validateFD2Form(IXForm xForm,
IExtendedFormRequestContext ctx) |
public static XForm getDefaultXForm(FD2RenderContext fd2Ctx) throws IOException, org.json.JSONException
IOExceptionorg.json.JSONExceptionpublic static XFormConfig getDefaultXFormConfig(FD2RenderContext fd2Ctx) throws IOException
IOExceptionpublic static XForm getDefaultXForm(XFormConfig xFormConfig, FD2RenderContext fd2Ctx) throws IOException, org.json.JSONException
IOExceptionorg.json.JSONExceptionpublic static org.json.JSONObject resolveLanguage(String lang, String tbText) throws org.json.JSONException
org.json.JSONExceptionpublic static org.json.JSONObject getFD2FormAsJSON(Projekt pro, FormVersion fv) throws IOException, org.json.JSONException
pro - fv - ExceptionIOExceptionorg.json.JSONExceptionpublic static String getFormAsString(FD2RenderContext fd2Ctx) throws Exception
Exceptionpublic static void renderFD2Form(FD2RenderContext fd2Ctx, IExtendedFormRequestContext ctx) throws IOException, org.json.JSONException
IOExceptionorg.json.JSONExceptionpublic static void renderFD2Form(IXForm xForm, IExtendedFormRequestContext ctx)
public static boolean validateFD2Form(FD2RenderContext fd2Ctx, IExtendedFormRequestContext ctx)
public static boolean validateFD2Form(IXForm xForm, IExtendedFormRequestContext ctx)
public static void registerXFormCacheProvider(IXformCacheProvider xFormCacheProvider)
public static List<String> getProjektRessources(javax.servlet.http.HttpServletResponse resp, Projekt projekt, boolean inline, String fileEnding) throws IOException
IOExceptionpublic static List<String> getMandantRessources(javax.servlet.http.HttpServletResponse resp, Mandant mandant, boolean inline, String fileEnding) throws IOException
IOExceptionCopyright © 2016. All rights reserved.