|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DHTMLClientService
DHTML APIs provide APIs for users. With DHTML APIs, users can easily embed the DHTML pages or components into their own JSPs. All the methods in this interface can be invoked by remote server (RMI).
Support the running of multiple report sets in one session, and a report set can include one or more reports.
Descriptions of some key terms:
sessionId: the key of the session in the server (generated by the server automatically when you log in), and users can invoke DHTMLUtil.getSessionID(HttpServletRequest request) to get the key.
rptSetId: the key of the report set in DHTML (generated automatically after the report set has been run), and users can invoke DHTMLUtil.getRptSetId(HttpServletRequest request) to get the key.
rptName: the key of the report in DHTML (retrieved from the report set after the report set has been run), and users can invoke DHTMLUtil.getRptName(HttpServletRequest request) to get the key.
Note of using this DHTML API:
You must follow a certain order for the method which use the parameters "sessionId", "rptSetId" and "rptName" in dhtml.jsp. For example: getCurrentPageNumber(String sessionId, String rptSetId, String rptName) must be called after the code "Map tmpmap = DHTMLUtil.runReport(request, params);", because the parameters are offered after the report set has been run. If the wrong order is used, a jsp error will be generated. And there is no specified order for the other API methods that do not use the parameters.
| Method Summary | |
|---|---|
int |
createDHTMLSession(java.lang.String sessionId,
java.lang.String UserName)
Checks and creates DHTML Session information. |
java.lang.String |
createReportSetId()
Gets the id generated after the reportt set has been initialized for opening or cancelling a report set. |
void |
expire(java.lang.String sessionId)
Destroys user session when it expires. |
byte[] |
exportReport(java.lang.String sessionId,
java.lang.String rptSetId,
java.lang.String rptName)
Returns the result of the current page of the active report. |
java.lang.String[] |
getAllRptNames(java.lang.String rptSetId)
Gets names of all reports in the report set. |
boolean |
getCanRedo(java.lang.String sessionId,
java.lang.String rptSetId,
java.lang.String rptName)
Determines whether a redo action can be performed or not. |
boolean |
getCanUndo(java.lang.String sessionId,
java.lang.String rptSetId,
java.lang.String rptName)
Determines whether an undo action can be performed or not. |
java.lang.String |
getCatalogName(java.lang.String rptSetId)
Gets the catalog name of the report set. |
java.lang.String |
getCatalogName(java.lang.String userName,
java.lang.String resourcePath)
Gets the real path of the catalog. |
int |
getCurrentPageNumber(java.lang.String sessionId,
java.lang.String rptSetId,
java.lang.String rptName)
Gets the current page number. |
java.lang.String |
getCurrentStyle(java.lang.String sessionId,
java.lang.String rptSetId,
java.lang.String rptName)
Gets current style name. |
java.lang.String |
getCurReportId(java.lang.String rptSetId)
Gets the name of the active report in the report set. |
DHTMLConfig |
getDHTMLConfig()
Gets a DHTMLConfig instance. |
DHTMLDataInfo |
getDHTMLDataInfo()
Gets a DHTMLDataInfo instance. |
DHTMLWriter |
getDHTMLWriter(java.lang.String sessionId,
java.lang.String rptSetId)
Gets a DHTMLWriter instance. |
java.lang.String[] |
getOpenedRptNames(java.lang.String rptSetId)
Gets names of all open reports in the report set. |
java.lang.String |
getRptCountry(java.lang.String sessionId,
java.lang.String rptSetId,
java.lang.String rptName)
Gets the country information used by the report set. |
java.lang.String |
getRptEncoding(java.lang.String sessionId,
java.lang.String rptSetId,
java.lang.String rptName)
Gets the encoding used by the report set. |
java.lang.String |
getRptLanguage(java.lang.String sessionId,
java.lang.String rptSetId,
java.lang.String rptName)
Gets the language used by the report set. |
java.lang.String |
getRptSetDisplayName(java.lang.String rptSetId)
Gets the display name of the report set. |
java.lang.String |
getRptSheetDisplayName(java.lang.String rptSetId,
java.lang.String rptName)
Gets the display name of the report sheet. |
java.util.Vector |
getRuntimeDHTMLReportsStatus(java.lang.String userID)
Query DHTML all running report status, including both front end and background mode. |
java.lang.String[][] |
getStyleList()
Gets the display name and CSS path of the style list. |
java.lang.String[] |
getSubReportKeys(java.lang.String rptSetId,
java.lang.String rptName)
Gets the list of keys of all engines related to the current report. |
int |
getTotalPageNumnber(java.lang.String sessionId,
java.lang.String rptSetId,
java.lang.String rptName)
Gets the total physical page number. |
boolean |
isCloseWindow(java.lang.String sessionId)
Gets the mode of closing window for a specified user. |
java.lang.String[] |
parseRuntimeID(java.lang.String runtimeID)
Builds an array from a runtimeID. |
void |
setCloseWindow(boolean closeWindow)
Sets the mode of closing window for all users. |
void |
setCloseWindow(java.lang.String sessionId,
boolean closeWindow)
Sets the mode of closing window for a specified user. |
| Method Detail |
|---|
int createDHTMLSession(java.lang.String sessionId,
java.lang.String UserName)
sessionId - the user session id.UserName - user name.
java.lang.String createReportSetId()
void expire(java.lang.String sessionId)
sessionId - the user session id.
byte[] exportReport(java.lang.String sessionId,
java.lang.String rptSetId,
java.lang.String rptName)
throws JDException
sessionId - the user session id.rptSetId - the report set id.rptName - the report name.
JDExceptionjava.lang.String[] getAllRptNames(java.lang.String rptSetId)
rptSetId - the report set id.
boolean getCanUndo(java.lang.String sessionId,
java.lang.String rptSetId,
java.lang.String rptName)
sessionId - the user session id.rptSetId - the report set id.rptName - the report name.
boolean getCanRedo(java.lang.String sessionId,
java.lang.String rptSetId,
java.lang.String rptName)
sessionId - the user session id.rptSetId - the report set id.rptName - the report name.
java.lang.String getCatalogName(java.lang.String rptSetId)
rptSetId - the report set id.
java.lang.String getCatalogName(java.lang.String userName,
java.lang.String resourcePath)
userName - the user name.resourcePath - the relative path of the catalog resources.
boolean isCloseWindow(java.lang.String sessionId)
sessionId - the user session id.
int getCurrentPageNumber(java.lang.String sessionId,
java.lang.String rptSetId,
java.lang.String rptName)
sessionId - the user session id.rptSetId - the report set id.rptName - the report name.
java.lang.String getCurrentStyle(java.lang.String sessionId,
java.lang.String rptSetId,
java.lang.String rptName)
sessionId - the user session id.rptSetId - the report set id.rptName - the report name.
java.lang.String getCurReportId(java.lang.String rptSetId)
rptSetId - the report set id.
DHTMLConfig getDHTMLConfig()
DHTMLDataInfo getDHTMLDataInfo()
DHTMLWriter getDHTMLWriter(java.lang.String sessionId,
java.lang.String rptSetId)
sessionId - the user session id.rptSetId - the report set id.
java.lang.String[] getOpenedRptNames(java.lang.String rptSetId)
rptSetId - the report set id.
java.lang.String getRptLanguage(java.lang.String sessionId,
java.lang.String rptSetId,
java.lang.String rptName)
sessionId - the user session id.rptSetId - the report set id.rptName - the report name.
java.lang.String getRptEncoding(java.lang.String sessionId,
java.lang.String rptSetId,
java.lang.String rptName)
sessionId - the user session id.rptSetId - the report set id.rptName - the report name.
java.lang.String getRptCountry(java.lang.String sessionId,
java.lang.String rptSetId,
java.lang.String rptName)
sessionId - the user session id.rptSetId - the report set id.rptName - the report name.
java.lang.String getRptSetDisplayName(java.lang.String rptSetId)
rptSetId - the report set id.
java.lang.String getRptSheetDisplayName(java.lang.String rptSetId,
java.lang.String rptName)
rptSetId - the report set id.rptName - the report name.
java.lang.String[][] getStyleList()
int getTotalPageNumnber(java.lang.String sessionId,
java.lang.String rptSetId,
java.lang.String rptName)
sessionId - the user session id.rptSetId - the report set id.rptName - the report name.
void setCloseWindow(java.lang.String sessionId,
boolean closeWindow)
sessionId - the user session id.closeWindow - if true, the window will be closed; otherwise the window will not be closed.void setCloseWindow(boolean closeWindow)
closeWindow - if true, the window will be closed; otherwise the window will not be closed.
java.lang.String[] getSubReportKeys(java.lang.String rptSetId,
java.lang.String rptName)
rptSetId - the report set id.rptName - the report name.
java.lang.String[] parseRuntimeID(java.lang.String runtimeID)
runtimeID - runtime id.
supported runtimeID format:
SessionID-RptSetId-RptName
SessionID-RptSetId
java.util.Vector getRuntimeDHTMLReportsStatus(java.lang.String userID)
userID - login user name.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||