Class ReportFormatLoader

java.lang.Object
org.idempiere.ui.zk.report.ReportFormatLoader

public final class ReportFormatLoader extends Object
Builds the list of print formats the report viewer offers to a role. The role checks live here so that they apply to every IReportFormatSelector.
  • Method Details

    • load

      public static List<ReportFormatEntry> load(MPrintFormat current, int windowId, int selectedFormatId)
      Load the print formats of the current table that the login role (MRole.getDefault()) may read, followed by the create actions if that role may create print formats.
      Parameters:
      current - print format shown in the viewer
      windowId - AD_Window_ID the report was started from, 0 if none
      selectedFormatId - AD_PrintFormat_ID that will be selected, used for the window access check of the create actions
      Returns:
      immutable list, formats ordered by name