Class ReportTool

java.lang.Object
com.logicaldoc.report.ReportTool

public class ReportTool extends Object
Utility methods to run custom reports
Since:
8.7.3
Author:
Marco Meschieri - LogicalDOC
  • Constructor Details

    • ReportTool

      public ReportTool()
  • Method Details

    • execute

      public Long execute(String reportName, long tenantId, Map<String,Object> parameters, String sid, String username) throws com.logicaldoc.core.PersistenceException
      Executes a custom report
      Parameters:
      reportName - name of the custom report
      tenantId - identifier of the tenant
      parameters - An optional map of parameters to be used inside the report
      sid - optional identifier of the current session
      username - username the user in whose name the method is run
      Returns:
      the identifier of the output document
      Throws:
      com.logicaldoc.core.PersistenceException - Error in the data layer
    • execute

      public Long execute(long reportId, Map<String,Object> parameters, String sid, String username) throws com.logicaldoc.core.PersistenceException
      Executes a custom report
      Parameters:
      reportId - identifier of the custom report
      parameters - An optional map of parameters to be used inside the report
      sid - optional identifier of the current session
      username - username the user in whose name the method is run
      Returns:
      the identifier of the output document
      Throws:
      com.logicaldoc.core.PersistenceException - Error in the data layer