public class ReportRestService extends Object
| Constructor and Description |
|---|
ReportRestService() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteModel(String name)
Deletes a report by name or by uniqueid
|
static void |
fopTranformation(String xmlSource,
String xslSource,
String aEncoding,
OutputStream output)
This method dos a apache FOP transformation using the FopFactory
|
org.imixs.workflow.xml.EntityCollection |
getAllReports(int start,
int count) |
javax.ws.rs.core.Response |
getExcecuteReport(String name,
int start,
int count,
String encoding,
javax.ws.rs.core.UriInfo uriInfo)
Executes a single report defined by name or uniqueid
The output depends on the requested media format
Since 2.1.2: the ReportService also supports FOP Transformation.
|
org.imixs.workflow.xml.EntityTable |
getExcecuteReportHTML(String name,
int start,
int count,
String encoding,
String items,
javax.ws.rs.core.UriInfo uriInfo,
javax.servlet.http.HttpServletResponse servlerResponse)
Returns an HTML Stream with a HTML Datatable corresponding to the report
query.
|
org.imixs.workflow.xml.EntityCollection |
getExcecuteReportJSON(String name,
int start,
int count,
String encoding,
String items,
javax.ws.rs.core.UriInfo uriInfo,
javax.servlet.http.HttpServletResponse servlerResponse)
Returns a JSON stream from a report execution
If a attribute list is defined in the report only the corresponding
properties will be returend in the xml stream.
|
org.imixs.workflow.xml.EntityCollection |
getExcecuteReportXML(String name,
int start,
int count,
String encoding,
String items,
javax.ws.rs.core.UriInfo uriInfo,
javax.servlet.http.HttpServletResponse servlerResponse)
Returns a xml stream from a report execution
If a attribute list is defined in the report only the corresponding
properties will be returend in the xml stream.
|
javax.ws.rs.core.StreamingOutput |
getHelpHTML() |
javax.ws.rs.core.Response |
getPdfReport(String name,
int start,
int count,
String encoding,
javax.ws.rs.core.UriInfo uriInfo)
helper method for .pdf file extention
|
org.imixs.workflow.xml.XMLItemCollection |
getReport(String name)
Returns a single report by name or by uniqueid
|
void |
postReport(org.imixs.workflow.xml.XMLItemCollection reportCol) |
void |
putReport(org.imixs.workflow.xml.XMLItemCollection reportCol)
This method updates or creates a Report object provided in a
XMLItemCollection object
|
static void |
xslTranformation(String xmlSource,
String xslSource,
String aEncoding,
OutputStream output)
This method transforms an xml string with a provided xsl String
The XMLSource will be read from a InputStreamReader object to provide the
XSLTransformer with a inputsream in expected encoding.
|
public javax.ws.rs.core.StreamingOutput getHelpHTML()
public org.imixs.workflow.xml.EntityCollection getAllReports(int start,
int count)
public org.imixs.workflow.xml.XMLItemCollection getReport(String name)
name - reportname or uniqueid of reportpublic javax.ws.rs.core.Response getExcecuteReport(String name, int start, int count, String encoding, @Context javax.ws.rs.core.UriInfo uriInfo)
name - reportname of the report to be executedpublic javax.ws.rs.core.Response getPdfReport(String name, int start, int count, String encoding, @Context javax.ws.rs.core.UriInfo uriInfo)
name - reportname of the report to be executedpublic org.imixs.workflow.xml.EntityTable getExcecuteReportHTML(String name, int start, int count, String encoding, String items, @Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.servlet.http.HttpServletResponse servlerResponse)
name - start - count - public org.imixs.workflow.xml.EntityCollection getExcecuteReportXML(String name, int start, int count, String encoding, String items, @Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.servlet.http.HttpServletResponse servlerResponse) throws Exception
name - reportname of the report to be executedstart - count - Exceptionpublic org.imixs.workflow.xml.EntityCollection getExcecuteReportJSON(String name, int start, int count, String encoding, String items, @Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.servlet.http.HttpServletResponse servlerResponse) throws Exception
name - reportname of the report to be executedstart - count - Exceptionpublic void deleteModel(String name)
name - of report or uniqueidpublic void putReport(org.imixs.workflow.xml.XMLItemCollection reportCol)
reportCol - - report datapublic void postReport(org.imixs.workflow.xml.XMLItemCollection reportCol)
public static void xslTranformation(String xmlSource, String xslSource, String aEncoding, OutputStream output) throws Exception
xmlSource - xsltSourceFile - ExceptionCopyright © 2010–2013 Imixs Software Solutions GmbH. All rights reserved.