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
public class ReportImpl extends ClientImpl implements BaseReport, Serializable
ReportImpl- Author:
- sochoa
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReportImpl(String host)ReportImpl
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamexecute(long rpId, Map<String,String> params, String format, String uuid)Execute report input stream.StringgenerateDownloadReportToken(long rpId)Generate download report token string.ReportgetReport(long rpId)Gets report.List<Report>getReports(boolean active)Gets reports.Documentsave(long rpId, Map<String,String> params, String format, String dstId, String docName, String uuid)Save report document.protected voidsetAuthorizationToken(String authorizationToken)setAuthenticationToken-
Methods inherited from class com.openkm.sdk4j.impl.ClientImpl
getClient, getWebTarget, setAuthorizationHeader, setJsessionIdHeader
-
-
-
-
Constructor Detail
-
ReportImpl
public ReportImpl(String host)
ReportImpl
-
-
Method Detail
-
setAuthorizationToken
protected void setAuthorizationToken(String authorizationToken)
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, WebserviceException
Description 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
-
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, WebserviceException
Description 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
-
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
-
-