Class Exporter
java.lang.Object
com.djrapitops.plan.delivery.export.Exporter
Handles export for different pages.
-
Constructor Summary
ConstructorDescriptionExporter(PlanConfig config, PlayerJSONExporter playerJSONExporter, PlayerPageExporter playerPageExporter, PlayersPageExporter playersPageExporter, ServerPageExporter serverPageExporter, NetworkPageExporter networkPageExporter)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
exportPlayerJSON(UUID playerUUID, String playerName)
Export Raw Data JSON of a player.boolean
exportPlayerPage(UUID playerUUID, String playerName)
Export page of a player.boolean
boolean
exportServerJSON(Server server)
boolean
exportServerPage(Server server)
Export a page of a server.
-
Constructor Details
-
Exporter
@Inject public Exporter(PlanConfig config, PlayerJSONExporter playerJSONExporter, PlayerPageExporter playerPageExporter, PlayersPageExporter playersPageExporter, ServerPageExporter serverPageExporter, NetworkPageExporter networkPageExporter)
-
-
Method Details
-
exportServerPage
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
- Throws:
ExportException
-
exportPlayerPage
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
- Throws:
ExportException
-
exportPlayerJSON
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.
-