public class ReportResource extends DefaultObject
ReportInstance
. Provides html and PDF viewsModifier and Type | Field and Description |
---|---|
protected ReportInstance |
report |
protected static String |
USER_PARAMS_NAME |
Constructor and Description |
---|
ReportResource() |
Modifier and Type | Method and Description |
---|---|
protected String |
buildTmpPath(String key) |
Object |
clearParams(String target) |
String |
doGet() |
Object |
editAndRenderHtml() |
Object |
editAndRenderPdf() |
Object |
editParams(String target,
String errors) |
protected void |
fillReportParameters(List<ReportParameter> reportParameters,
Map<String,Object> userParams) |
Object |
getImage(String key,
String name) |
protected String |
getReportKey() |
Object |
html(boolean forceFormDisplay) |
protected void |
initialize(Object... args) |
protected void |
markReportParametersInError(List<ReportParameter> reportParameters,
String errors) |
Object |
pdf(boolean forceDisplayForm) |
protected void |
readParams(Map<String,Object> userParams,
List<String> paramsInError) |
protected void |
saveUserParameters(Map<String,Object> userParams) |
protected Object |
validateInput(Map<String,Object> userParams,
String target) |
disptachAdapter, isAdapter
checkGuard, dispose, getActiveAdapter, getAdapter, getContext, getFacets, getLinks, getModule, getName, getNext, getNextSegment, getPath, getPrevious, getTemplate, getTrailingPath, getType, getURL, getView, hasFacet, initialize, isInstanceOf, isRoot, newAdapter, newObject, redirect, setNext, setPrevious, setRoot, toString
protected static final String USER_PARAMS_NAME
protected ReportInstance report
public ReportResource()
protected void initialize(Object... args)
initialize
in class AbstractResource<ResourceTypeImpl>
protected String getReportKey()
protected String buildTmpPath(String key)
public Object getImage(String key, String name) throws IOException
IOException
public Object editParams(String target, String errors) throws IOException
IOException
protected void fillReportParameters(List<ReportParameter> reportParameters, Map<String,Object> userParams)
protected void markReportParametersInError(List<ReportParameter> reportParameters, String errors)
protected void readParams(Map<String,Object> userParams, List<String> paramsInError) throws IOException
IOException
public Object editAndRenderHtml() throws IOException
IOException
protected Object validateInput(Map<String,Object> userParams, String target) throws IOException
IOException
public Object html(boolean forceFormDisplay) throws IOException
IOException
protected void saveUserParameters(Map<String,Object> userParams)
public Object editAndRenderPdf() throws IOException
IOException
public Object pdf(boolean forceDisplayForm) throws IOException
IOException
public Object clearParams(String target)
Copyright © 2015 Nuxeo SA. All rights reserved.