Class Exporter

java.lang.Object
com.djrapitops.plan.delivery.export.Exporter

@Singleton public class Exporter extends Object
Handles export for different pages.
  • Constructor Details

  • Method Details

    • exportServerPage

      public boolean exportServerPage(Server server) throws ExportException
      Export a page of a server.
      Parameters:
      server - Server which page is going to be exported
      Returns:
      false if the page was not exported due to previous failure or is disabled in config.
      Throws:
      ExportException - If the export failed due to IO, NotFound or GenerationException.
    • exportServerJSON

      public boolean exportServerJSON(Server server) throws ExportException
      Throws:
      ExportException
    • exportPlayerPage

      public boolean exportPlayerPage(UUID playerUUID, String playerName) throws ExportException
      Export page of a player.
      Parameters:
      playerUUID - UUID of the player.
      playerName - Name of the player.
      Returns:
      false if the page was not exported due to config settings.
      Throws:
      ExportException - If the export failed due to IO, NotFound or GenerationException.
    • exportPlayersPage

      public boolean exportPlayersPage() throws ExportException
      Throws:
      ExportException
    • exportPlayerJSON

      public boolean exportPlayerJSON(UUID playerUUID, String playerName) throws ExportException
      Export Raw Data JSON of a player.
      Parameters:
      playerUUID - UUID of the player.
      playerName - Name of the player.
      Returns:
      false if the json was not exported due to config settings.
      Throws:
      ExportException - If the export failed due to IOException.
    • exportReact

      public void exportReact() throws ExportException
      Throws:
      ExportException