com.stimulsoft.webdesigner
Class StiWebDesigner

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

public class StiWebDesigner
extends java.lang.Object

(MVC 71333-74989-76904-77352) (Web 71353-76902-77244-77352) (WebDesiner 71333-76914-77245) WebDesigner main class Copyright Stimulsoft


Field Summary
static java.lang.String ACTION_DESIGNER_EVENT
           
static java.lang.String ACTION_EXIST_DESIGNER
           
static java.lang.String ACTION_EXPORT_REPORT
           
static java.lang.String ACTION_GET_NEW_REPORT_DATA
           
static java.lang.String ACTION_GET_REPORT
           
static java.lang.String ACTION_GET_REPORT_TEMPLATE
           
static java.lang.String ACTION_OPEN_REPORT_TEMPLATE
           
static java.lang.String ACTION_PREVIEW_REPORT
           
static java.lang.String ACTION_REFRESH_SESSION
           
static java.lang.String ACTION_SAVE_AS_REPORT_TEMPLATE
           
static java.lang.String ACTION_SAVE_REPORT_TEMPLATE
           
static java.lang.String SESSION_ATTRIBUTE_HANDLER
           
 
Constructor Summary
StiWebDesigner()
           
 
Method Summary
static StiRequestParams createRequestParams(StiWebDesignerOptions options, java.lang.String id, java.lang.String clientGuid)
           
static java.lang.String createViewer(StiWebDesignerOptions options, java.net.URL url, javax.servlet.ServletContext context, java.lang.String id)
           
static java.lang.String getActionCommandName(javax.servlet.http.HttpServletRequest httpContext, JSONObject jsonObject)
          Get the name of inner command.
static StiCacheHelper getCacheHelper()
           
static StiWebDesigerHandler getHandler(javax.servlet.http.HttpServletRequest request, StiRequestParams requestParams)
           
static java.lang.String getNewGuid()
           
static java.util.HashMap<java.lang.String,java.lang.Object> getNewReportCallbackResult(java.util.HashMap<java.lang.String,java.lang.Object> callbackResult, javax.servlet.http.HttpServletRequest httpContext, StiReport report, java.util.HashMap<java.lang.String,java.lang.Object> parameters)
           
static StiReport getReportObject(javax.servlet.http.HttpServletRequest httpContext, StiRequestParams requestParams)
          Save the report template or report template to cache.
static java.util.HashMap<java.lang.String,java.lang.Object> getReportSnapshotCallbackResult(java.util.HashMap<java.lang.String,java.lang.Object> callbackResult, javax.servlet.http.HttpServletRequest httpContext, StiReport report, java.util.HashMap<java.lang.String,java.lang.Object> parameters)
           
static StiRequestParams getRequestParams(javax.servlet.http.HttpServletRequest httpContext, javax.servlet.http.HttpServletResponse response)
           
static void previewReport(StiReport mainReport, java.lang.String format, javax.servlet.http.HttpServletResponse response)
           
static StiReport saveReportObject(javax.servlet.http.HttpServletRequest httpContext, StiReport report, java.lang.String reportGuid)
          Save the report template or report template to cache.
static void setupDesign(StiReport report)
          Setup report poperties for design
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTION_GET_REPORT_TEMPLATE

public static final java.lang.String ACTION_GET_REPORT_TEMPLATE
See Also:
Constant Field Values

ACTION_OPEN_REPORT_TEMPLATE

public static final java.lang.String ACTION_OPEN_REPORT_TEMPLATE
See Also:
Constant Field Values

ACTION_SAVE_REPORT_TEMPLATE

public static final java.lang.String ACTION_SAVE_REPORT_TEMPLATE
See Also:
Constant Field Values

ACTION_SAVE_AS_REPORT_TEMPLATE

public static final java.lang.String ACTION_SAVE_AS_REPORT_TEMPLATE
See Also:
Constant Field Values

ACTION_GET_NEW_REPORT_DATA

public static final java.lang.String ACTION_GET_NEW_REPORT_DATA
See Also:
Constant Field Values

ACTION_DESIGNER_EVENT

public static final java.lang.String ACTION_DESIGNER_EVENT
See Also:
Constant Field Values

ACTION_REFRESH_SESSION

public static final java.lang.String ACTION_REFRESH_SESSION
See Also:
Constant Field Values

ACTION_EXIST_DESIGNER

public static final java.lang.String ACTION_EXIST_DESIGNER
See Also:
Constant Field Values

ACTION_GET_REPORT

public static final java.lang.String ACTION_GET_REPORT
See Also:
Constant Field Values

ACTION_EXPORT_REPORT

public static final java.lang.String ACTION_EXPORT_REPORT
See Also:
Constant Field Values

ACTION_PREVIEW_REPORT

public static final java.lang.String ACTION_PREVIEW_REPORT
See Also:
Constant Field Values

SESSION_ATTRIBUTE_HANDLER

public static final java.lang.String SESSION_ATTRIBUTE_HANDLER
See Also:
Constant Field Values
Constructor Detail

StiWebDesigner

public StiWebDesigner()
Method Detail

getCacheHelper

public static StiCacheHelper getCacheHelper()
Returns:
the cacheHelper

createViewer

public static java.lang.String createViewer(StiWebDesignerOptions options,
                                            java.net.URL url,
                                            javax.servlet.ServletContext context,
                                            java.lang.String id)
                                     throws javax.xml.parsers.ParserConfigurationException,
                                            java.io.IOException
Throws:
javax.xml.parsers.ParserConfigurationException
java.io.IOException

getActionCommandName

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

Parameters:
httpContext -
Returns:
Throws:
JSONException

saveReportObject

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

Parameters:
httpContext -
report -
reportGuid -
Returns:

getReportObject

public static StiReport getReportObject(javax.servlet.http.HttpServletRequest httpContext,
                                        StiRequestParams requestParams)
Save the report template or report template to cache.

Parameters:
httpContext -
report -
reportGuid -
Returns:

setupDesign

public static void setupDesign(StiReport report)
Setup report poperties for design

Parameters:
report -

getHandler

public static StiWebDesigerHandler getHandler(javax.servlet.http.HttpServletRequest request,
                                              StiRequestParams requestParams)
                                       throws JSONException
Throws:
JSONException

getReportSnapshotCallbackResult

public static java.util.HashMap<java.lang.String,java.lang.Object> getReportSnapshotCallbackResult(java.util.HashMap<java.lang.String,java.lang.Object> callbackResult,
                                                                                                   javax.servlet.http.HttpServletRequest httpContext,
                                                                                                   StiReport report,
                                                                                                   java.util.HashMap<java.lang.String,java.lang.Object> parameters)
                                                                                            throws StiException,
                                                                                                   java.io.IOException,
                                                                                                   org.xml.sax.SAXException,
                                                                                                   StiDeserializationException,
                                                                                                   JSONException
Throws:
StiException
java.io.IOException
org.xml.sax.SAXException
StiDeserializationException
JSONException

getNewReportCallbackResult

public static java.util.HashMap<java.lang.String,java.lang.Object> getNewReportCallbackResult(java.util.HashMap<java.lang.String,java.lang.Object> callbackResult,
                                                                                              javax.servlet.http.HttpServletRequest httpContext,
                                                                                              StiReport report,
                                                                                              java.util.HashMap<java.lang.String,java.lang.Object> parameters)
                                                                                       throws java.lang.Exception
Throws:
java.lang.Exception

previewReport

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

getNewGuid

public static java.lang.String getNewGuid()

createRequestParams

public static StiRequestParams createRequestParams(StiWebDesignerOptions options,
                                                   java.lang.String id,
                                                   java.lang.String clientGuid)

getRequestParams

public static StiRequestParams getRequestParams(javax.servlet.http.HttpServletRequest httpContext,
                                                javax.servlet.http.HttpServletResponse response)
                                         throws java.io.IOException,
                                                JSONException
Throws:
java.io.IOException
JSONException