Class CreditsLoader

java.lang.Object
io.jmix.core.credits.CreditsLoader

@Component("core_CreditsLoader") public class CreditsLoader extends Object
Provides information about third-party software by loading credits.xml files of Jmix modules.

Example usage:

 @Autowired
 private CreditsLoader creditsLoader;
 @Autowired
 private Downloader downloader;

 public void showCredits() {
     byte[] html = creditsLoader.getCreditsHtml(true);
     downloader.download(html, "credits.html");
 }
 
See Also:
  • Constructor Details

    • CreditsLoader

      public CreditsLoader()
  • Method Details

    • getCredits

      public List<CreditsItem> getCredits()
      Returns credits as a list of CreditsItem objects.
    • getCreditsHtml

      public byte[] getCreditsHtml(boolean completePage)
      Returns credits as a byte array containing an HTML document rendered using CreditsHtmlRenderer.
      Parameters:
      completePage - if true, renders the complete page with html, header and body. Otherwise, returns an HTML table only.