Class Exporter
java.lang.Object
com.djrapitops.plan.delivery.export.Exporter
Handles export for different pages.
-
Constructor Summary
ConstructorsConstructorDescriptionExporter(PlanConfig config, PlayerJSONExporter playerJSONExporter, PlayerPageExporter playerPageExporter, PlayersPageExporter playersPageExporter, ServerPageExporter serverPageExporter, NetworkPageExporter networkPageExporter, ReactExporter reactExporter) -
Method Summary
Modifier and TypeMethodDescriptionbooleanexportPlayerJSON(UUID playerUUID, String playerName) Export Raw Data JSON of a player.booleanexportPlayerPage(UUID playerUUID, String playerName) Export page of a player.booleanvoidbooleanexportServerJSON(Server server) booleanexportServerPage(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, ReactExporter reactExporter)
-
-
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.
-
exportReact
- Throws:
ExportException
-