|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.imixs.workflow.jaxrs.ReportRestService
public class ReportRestService
The WorkflowService Handler supports methods to process different kind of request URIs
| Constructor Summary | |
|---|---|
ReportRestService()
|
|
| Method Summary | |
|---|---|
void |
deleteModel(java.lang.String name)
Deletes a report by name or by uniqueid |
static void |
fopTranformation(java.lang.String xmlSource,
java.lang.String xslSource,
java.lang.String aEncoding,
java.io.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(java.lang.String name,
int start,
int count,
java.lang.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(java.lang.String name,
int start,
int count,
javax.ws.rs.core.UriInfo uriInfo)
Returns an HTML Stream with a HTML Datatable corresponding to the report query. |
org.imixs.workflow.xml.EntityCollection |
getExcecuteReportJSON(java.lang.String name,
int start,
int count,
javax.ws.rs.core.UriInfo uriInfo)
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(java.lang.String name,
int start,
int count,
javax.ws.rs.core.UriInfo uriInfo)
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(java.lang.String name,
int start,
int count,
java.lang.String encoding,
javax.ws.rs.core.UriInfo uriInfo)
helper method for .pdf file extention |
org.imixs.workflow.xml.XMLItemCollection |
getReport(java.lang.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(java.lang.String xmlSource,
java.lang.String xslSource,
java.lang.String aEncoding,
java.io.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReportRestService()
| Method Detail |
|---|
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(java.lang.String name)
name - reportname or uniqueid of report
public javax.ws.rs.core.Response getExcecuteReport(java.lang.String name,
int start,
int count,
java.lang.String encoding,
@Context
javax.ws.rs.core.UriInfo uriInfo)
name - reportname of the report to be executed
public javax.ws.rs.core.Response getPdfReport(java.lang.String name,
int start,
int count,
java.lang.String encoding,
@Context
javax.ws.rs.core.UriInfo uriInfo)
name - reportname of the report to be executed
public org.imixs.workflow.xml.EntityTable getExcecuteReportHTML(java.lang.String name,
int start,
int count,
@Context
javax.ws.rs.core.UriInfo uriInfo)
name - start - count -
public org.imixs.workflow.xml.EntityCollection getExcecuteReportXML(java.lang.String name,
int start,
int count,
@Context
javax.ws.rs.core.UriInfo uriInfo)
throws java.lang.Exception
name - reportname of the report to be executedstart - count -
java.lang.Exception
public org.imixs.workflow.xml.EntityCollection getExcecuteReportJSON(java.lang.String name,
int start,
int count,
@Context
javax.ws.rs.core.UriInfo uriInfo)
throws java.lang.Exception
name - reportname of the report to be executedstart - count -
java.lang.Exceptionpublic void deleteModel(java.lang.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(java.lang.String xmlSource,
java.lang.String xslSource,
java.lang.String aEncoding,
java.io.OutputStream output)
throws java.lang.Exception
xmlSource - xsltSourceFile -
java.lang.Exception
public static void fopTranformation(java.lang.String xmlSource,
java.lang.String xslSource,
java.lang.String aEncoding,
java.io.OutputStream output)
throws java.lang.Exception
xmlSource - xslSource - aEncoding - outputWriter -
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||