Package com.openkm.sdk4j.impl
Class ReportImpl
java.lang.Object
com.openkm.sdk4j.impl.ClientImpl
com.openkm.sdk4j.impl.ReportImpl
- All Implemented Interfaces:
BaseReport,Serializable
ReportImpl
- Author:
- sochoa
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExecute report input stream.executeSql(long rpId) Execute sql input stream.generateDownloadReportToken(long rpId) Generate download report token string.getReport(long rpId) Gets report.getReports(boolean active) Gets reports.getSqlReports(boolean active) Gets sql reports.save(long rpId, Map<String, String> params, String format, String dstId, String docName, String uuid) Save report document.Save sql document.protected voidsetAuthorizationToken(String authorizationToken) setAuthenticationTokenMethods inherited from class com.openkm.sdk4j.impl.ClientImpl
getClient, getWebTarget, setAuthorizationHeader, setJsessionIdHeader
-
Constructor Details
-
ReportImpl
ReportImpl
-
-
Method Details
-
setAuthorizationToken
setAuthenticationToken -
getReports
public List<Report> getReports(boolean active) throws DatabaseException, AccessDeniedException, ParseException, UnknownException, WebserviceException Description copied from interface:BaseReportGets reports.- Specified by:
getReportsin interfaceBaseReport- Parameters:
active- the active- Returns:
- the reports
- Throws:
DatabaseException- the database exceptionAccessDeniedException- the access denied exceptionParseException- the parse exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getReport
public Report getReport(long rpId) throws DatabaseException, AccessDeniedException, ParseException, UnknownException, WebserviceException Description copied from interface:BaseReportGets report.- Specified by:
getReportin interfaceBaseReport- Parameters:
rpId- the rp id- Returns:
- the report
- Throws:
DatabaseException- the database exceptionAccessDeniedException- the access denied exceptionParseException- the parse exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
execute
public InputStream execute(long rpId, Map<String, String> params, String format, String uuid) throws DatabaseException, AccessDeniedException, ParseException, JRException, EvalError, UnknownException, WebserviceExceptionDescription copied from interface:BaseReportExecute report input stream.- Specified by:
executein interfaceBaseReport- Parameters:
rpId- the rp idparams- the paramsformat- the formatuuid- the uuid- Returns:
- the input stream
- Throws:
DatabaseException- the database exceptionAccessDeniedException- the access denied exceptionParseException- the parse exceptionJRException- the jr exceptionEvalError- the eval errorUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
executeSql
public InputStream executeSql(long rpId) throws DatabaseException, AccessDeniedException, ParseException, JRException, EvalError, UnknownException, WebserviceException Description copied from interface:BaseReportExecute sql input stream.- Specified by:
executeSqlin interfaceBaseReport- Parameters:
rpId- the rp id- Returns:
- the input stream
- Throws:
DatabaseException- the database exceptionAccessDeniedException- the access denied exceptionParseException- the parse exceptionJRException- the jr exceptionEvalError- the eval errorUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
save
public Document save(long rpId, Map<String, String> params, String format, String dstId, String docName, String uuid) throws DatabaseException, AccessDeniedException, ParseException, JRException, EvalError, UnknownException, WebserviceExceptionDescription copied from interface:BaseReportSave report document.- Specified by:
savein interfaceBaseReport- Parameters:
rpId- the rp idparams- the paramsformat- the formatdstId- the dst iddocName- the doc nameuuid- the uuid- Returns:
- the document
- Throws:
DatabaseException- the database exceptionAccessDeniedException- the access denied exceptionParseException- the parse exceptionJRException- the jr exceptionEvalError- the eval errorUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
saveSql
public Document saveSql(long rpId, Map<String, String> params, String dstId, String docName) throws DatabaseException, AccessDeniedException, ParseException, JRException, EvalError, UnknownException, WebserviceExceptionDescription copied from interface:BaseReportSave sql document.- Specified by:
saveSqlin interfaceBaseReport- Parameters:
rpId- the rp idparams- the paramsdstId- the dst iddocName- the doc name- Returns:
- the document
- Throws:
DatabaseException- the database exceptionAccessDeniedException- the access denied exceptionParseException- the parse exceptionJRException- the jr exceptionEvalError- the eval errorUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getSqlReports
public List<SqlReport> getSqlReports(boolean active) throws DatabaseException, AccessDeniedException, ParseException, UnknownException, WebserviceException Description copied from interface:BaseReportGets sql reports.- Specified by:
getSqlReportsin interfaceBaseReport- Parameters:
active- the active- Returns:
- the sql reports
- Throws:
DatabaseException- the database exceptionAccessDeniedException- the access denied exceptionParseException- the parse exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
generateDownloadReportToken
public String generateDownloadReportToken(long rpId) throws AccessDeniedException, DatabaseException, UnknownException, WebserviceException Description copied from interface:BaseReportGenerate download report token string.- Specified by:
generateDownloadReportTokenin interfaceBaseReport- Parameters:
rpId- the rp id- Returns:
- the string
- Throws:
AccessDeniedException- the access denied exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-