com.stimulsoft.webdesigner
Class StiWebDesigner

java.lang.Object
  extended by com.stimulsoft.webdesigner.StiWebDesigner

public class StiWebDesigner
extends Object

56675 60328 WebDesigner main class Copyright Stimulsoft


Field Summary
static String ACTION_DESIGNER_EVENT
           
static String ACTION_EXIST_DESIGNER
           
static String ACTION_EXPORT_REPORT
           
static String ACTION_GET_NEW_REPORT_DATA
           
static String ACTION_GET_REPORT_SNAPSHOTE
           
static String ACTION_GET_REPORT_TEMPLATE
           
static String ACTION_OPEN_REPORT_TEMPLATE
           
static String ACTION_REFRESH_SESSION
           
static String ACTION_SAVE_AS_REPORT_TEMPLATE
           
static String ACTION_SAVE_REPORT_TEMPLATE
           
protected static Logger LOG
           
 
Constructor Summary
StiWebDesigner(StiWebDesignerOptions options, URL context, javax.servlet.http.HttpServletRequest request)
           
 
Method Summary
protected  String createChildControls(Element root, Document doc, URL context, StiReport report, javax.servlet.http.HttpServletRequest request, StiWebDesigerHandler handler, Object servletContext)
           
static String designerEventResult(javax.servlet.http.HttpServletRequest httpContext, javax.servlet.http.HttpServletResponse response, JSONObject parameterJSON)
          Get the requested data of the specified report.
static String getActionCommandName(javax.servlet.http.HttpServletRequest httpContext, JSONObject jsonObject)
          Get the name of inner command.
 String getDesigner(URL context, StiWebDesigerHandler handler, javax.servlet.http.HttpServletRequest request, Object servletContext)
           
static StiReport getNewReport(JSONObject parameters)
           
static Hashtable<String,Object> getNewReportCallbackResult(Hashtable<String,Object> callbackResult, javax.servlet.http.HttpServletRequest httpContext, StiReport report, JSONObject parameters)
           
static String getNewReportDataResult(javax.servlet.http.HttpServletRequest httpContext, DataSet data, JSONObject jParameters)
          Get the new report template action result.
static String getNewReportDataResult(javax.servlet.http.HttpServletRequest httpContext, JSONObject jParameters)
          Get the new report template action result.
static String getNewReportDataResult(javax.servlet.http.HttpServletRequest httpContext, StiReport report, JSONObject jParameters)
          Get the new report template action result.
static String getNewReportDataResultHelper(javax.servlet.http.HttpServletRequest httpContext, StiReport report, DataSet data, JSONObject parameters)
           
static Object getObjectFromCache(javax.servlet.http.HttpServletRequest httpContext, String objectId)
          Get Array From Cache
static StiReport getReportObject_new(javax.servlet.http.HttpServletRequest httpContext, JSONObject parameters)
          Get the report template from cache.
static StiReport getReportObject(javax.servlet.http.HttpServletRequest httpContext, JSONObject parameters)
          Get the report template from cache.
static Hashtable<String,Object> getReportSnapshotCallbackResult(Hashtable<String,Object> callbackResult, javax.servlet.http.HttpServletRequest httpContext, StiReport report, JSONObject parameters)
           
static String getReportSnapshotResult(javax.servlet.http.HttpServletRequest httpContext, JSONObject jParameters)
          Get the report snapshot action result by the specified report.
static String getReportSnapshotResult(javax.servlet.http.HttpServletRequest httpContext, StiReport report, JSONObject parameters)
          Get the report snapshot action result by the specified report.
static String getReportTemplateResult(javax.servlet.http.HttpServletRequest httpContext, JSONObject jParameters)
          Get the report template action result by the specified report.
static String getReportTemplateResult(javax.servlet.http.HttpServletRequest httpContext, StiReport report, JSONObject parameters)
          Get the report template action result by the specified report.
static String openReportTemplateResult(javax.servlet.http.HttpServletRequest request, JSONObject parameters)
          Get the opening report template action result.
static void previewReport(StiReport mainReport, String format, javax.servlet.http.HttpServletResponse response)
           
static Object saveObjectToCache(javax.servlet.http.HttpServletRequest httpContext, String objectId, Object object)
          Save the report template or report template to cache.
static StiReport saveReportObject(javax.servlet.http.HttpServletRequest httpContext, StiReport report, String reportGuid)
          Save the report template or report template to cache.
static String saveReportTemplateResult(javax.servlet.http.HttpServletRequest request, JSONObject parameterJSON)
          Get the saving report template action result.
static String serialize(Document doc, boolean omitXMLDeclaration)
           
 void storeReport(javax.servlet.http.HttpServletRequest httpContext, StiReport report, String viewerId)
          Store report in session
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static final Logger LOG

ACTION_GET_REPORT_TEMPLATE

public static final String ACTION_GET_REPORT_TEMPLATE
See Also:
Constant Field Values

ACTION_OPEN_REPORT_TEMPLATE

public static final String ACTION_OPEN_REPORT_TEMPLATE
See Also:
Constant Field Values

ACTION_SAVE_REPORT_TEMPLATE

public static final String ACTION_SAVE_REPORT_TEMPLATE
See Also:
Constant Field Values

ACTION_SAVE_AS_REPORT_TEMPLATE

public static final String ACTION_SAVE_AS_REPORT_TEMPLATE
See Also:
Constant Field Values

ACTION_GET_NEW_REPORT_DATA

public static final String ACTION_GET_NEW_REPORT_DATA
See Also:
Constant Field Values

ACTION_DESIGNER_EVENT

public static final String ACTION_DESIGNER_EVENT
See Also:
Constant Field Values

ACTION_REFRESH_SESSION

public static final String ACTION_REFRESH_SESSION
See Also:
Constant Field Values

ACTION_EXIST_DESIGNER

public static final String ACTION_EXIST_DESIGNER
See Also:
Constant Field Values

ACTION_GET_REPORT_SNAPSHOTE

public static final String ACTION_GET_REPORT_SNAPSHOTE
See Also:
Constant Field Values

ACTION_EXPORT_REPORT

public static final String ACTION_EXPORT_REPORT
See Also:
Constant Field Values
Constructor Detail

StiWebDesigner

public StiWebDesigner(StiWebDesignerOptions options,
                      URL context,
                      javax.servlet.http.HttpServletRequest request)
Method Detail

getDesigner

public String getDesigner(URL context,
                          StiWebDesigerHandler handler,
                          javax.servlet.http.HttpServletRequest request,
                          Object servletContext)
                   throws ParserConfigurationException,
                          IOException
Throws:
ParserConfigurationException
IOException

createChildControls

protected String createChildControls(Element root,
                                     Document doc,
                                     URL context,
                                     StiReport report,
                                     javax.servlet.http.HttpServletRequest request,
                                     StiWebDesigerHandler handler,
                                     Object servletContext)
                              throws IOException
Throws:
IOException

storeReport

public void storeReport(javax.servlet.http.HttpServletRequest httpContext,
                        StiReport report,
                        String viewerId)
                 throws IOException,
                        StiException
Store report in session

Parameters:
httpContext -
report -
Throws:
IOException
StiException

serialize

public static String serialize(Document doc,
                               boolean omitXMLDeclaration)
                        throws IOException
Throws:
IOException

getActionCommandName

public static String getActionCommandName(javax.servlet.http.HttpServletRequest httpContext,
                                          JSONObject jsonObject)
                                   throws JSONException
Get the name of inner command.

Parameters:
httpContext -
Returns:
Throws:
JSONException

getObjectFromCache

public static Object getObjectFromCache(javax.servlet.http.HttpServletRequest httpContext,
                                        String objectId)
Get Array From Cache

Parameters:
httpContext -
arrayId -
Returns:

saveObjectToCache

public static Object saveObjectToCache(javax.servlet.http.HttpServletRequest httpContext,
                                       String objectId,
                                       Object object)
Save the report template or report template to cache.

Parameters:
httpContext -
arrayId -
array -
parameters -
Returns:

getReportObject_new

public static StiReport getReportObject_new(javax.servlet.http.HttpServletRequest httpContext,
                                            JSONObject parameters)
Get the report template from cache.

Parameters:
httpContext -
parameters -
Returns:
Throws:
JSONException

getReportObject

public static StiReport getReportObject(javax.servlet.http.HttpServletRequest httpContext,
                                        JSONObject parameters)
                                 throws JSONException
Get the report template from cache.

Parameters:
httpContext -
parameters -
Returns:
Throws:
JSONException

saveReportObject

public static StiReport saveReportObject(javax.servlet.http.HttpServletRequest httpContext,
                                         StiReport report,
                                         String reportGuid)
Save the report template or report template to cache.

Parameters:
httpContext -
report -
reportGuid -
Returns:

designerEventResult

public static String designerEventResult(javax.servlet.http.HttpServletRequest httpContext,
                                         javax.servlet.http.HttpServletResponse response,
                                         JSONObject parameterJSON)
                                  throws Exception
Get the requested data of the specified report.

Parameters:
httpContext -
Returns:
Throws:
Exception

getReportTemplateResult

public static String getReportTemplateResult(javax.servlet.http.HttpServletRequest httpContext,
                                             JSONObject jParameters)
                                      throws Exception
Get the report template action result by the specified report.

Parameters:
httpContext -
Returns:
Throws:
Exception

getReportTemplateResult

public static String getReportTemplateResult(javax.servlet.http.HttpServletRequest httpContext,
                                             StiReport report,
                                             JSONObject parameters)
                                      throws Exception
Get the report template action result by the specified report.

Parameters:
httpContext -
report -
Returns:
Throws:
Exception

getReportSnapshotResult

public static String getReportSnapshotResult(javax.servlet.http.HttpServletRequest httpContext,
                                             JSONObject jParameters)
                                      throws JSONException,
                                             StiException,
                                             IOException,
                                             SAXException,
                                             StiDeserializationException
Get the report snapshot action result by the specified report.

Parameters:
httpContext -
Returns:
Throws:
JSONException
StiDeserializationException
SAXException
IOException
StiException

getReportSnapshotResult

public static String getReportSnapshotResult(javax.servlet.http.HttpServletRequest httpContext,
                                             StiReport report,
                                             JSONObject parameters)
                                      throws JSONException,
                                             StiException,
                                             IOException,
                                             SAXException,
                                             StiDeserializationException
Get the report snapshot action result by the specified report.

Parameters:
httpContext -
report -
Returns:
Throws:
JSONException
StiDeserializationException
SAXException
IOException
StiException

getNewReportDataResult

public static String getNewReportDataResult(javax.servlet.http.HttpServletRequest httpContext,
                                            JSONObject jParameters)
                                     throws Exception
Get the new report template action result.

Parameters:
httpContext -
Returns:
Throws:
Exception

getNewReportDataResult

public static String getNewReportDataResult(javax.servlet.http.HttpServletRequest httpContext,
                                            DataSet data,
                                            JSONObject jParameters)
                                     throws Exception
Get the new report template action result.

Parameters:
httpContext -
data -
Returns:
Throws:
Exception

getNewReportDataResult

public static String getNewReportDataResult(javax.servlet.http.HttpServletRequest httpContext,
                                            StiReport report,
                                            JSONObject jParameters)
                                     throws Exception
Get the new report template action result.

Parameters:
httpContext -
report -
Returns:
Throws:
Exception

getNewReportDataResultHelper

public static String getNewReportDataResultHelper(javax.servlet.http.HttpServletRequest httpContext,
                                                  StiReport report,
                                                  DataSet data,
                                                  JSONObject parameters)
                                           throws Exception
Throws:
Exception

openReportTemplateResult

public static String openReportTemplateResult(javax.servlet.http.HttpServletRequest request,
                                              JSONObject parameters)
                                       throws JSONException,
                                              UnsupportedEncodingException
Get the opening report template action result.

Parameters:
httpContext -
Returns:
Throws:
JSONException
UnsupportedEncodingException

saveReportTemplateResult

public static String saveReportTemplateResult(javax.servlet.http.HttpServletRequest request,
                                              JSONObject parameterJSON)
                                       throws JSONException
Get the saving report template action result.

Parameters:
httpContext -
Returns:
Throws:
JSONException

getReportSnapshotCallbackResult

public static Hashtable<String,Object> getReportSnapshotCallbackResult(Hashtable<String,Object> callbackResult,
                                                                       javax.servlet.http.HttpServletRequest httpContext,
                                                                       StiReport report,
                                                                       JSONObject parameters)
                                                                throws StiException,
                                                                       IOException,
                                                                       SAXException,
                                                                       StiDeserializationException,
                                                                       JSONException
Throws:
StiException
IOException
SAXException
StiDeserializationException
JSONException

getNewReportCallbackResult

public static Hashtable<String,Object> getNewReportCallbackResult(Hashtable<String,Object> callbackResult,
                                                                  javax.servlet.http.HttpServletRequest httpContext,
                                                                  StiReport report,
                                                                  JSONObject parameters)
                                                           throws JSONException,
                                                                  ParserConfigurationException,
                                                                  IOException,
                                                                  TransformerException
Throws:
JSONException
ParserConfigurationException
IOException
TransformerException

previewReport

public static void previewReport(StiReport mainReport,
                                 String format,
                                 javax.servlet.http.HttpServletResponse response)
                          throws IOException,
                                 SAXException,
                                 StiDeserializationException,
                                 StiException
Throws:
IOException
SAXException
StiDeserializationException
StiException

getNewReport

public static StiReport getNewReport(JSONObject parameters)
                              throws JSONException
Throws:
JSONException


Copyright © 2017 Stimulsoft. All Rights Reserved.