@Singleton
public class Exporter
extends java.lang.Object
Constructor and Description |
---|
Exporter(PlanConfig config,
PlayerJSONExporter playerJSONExporter,
PlayerPageExporter playerPageExporter,
PlayersPageExporter playersPageExporter,
ServerPageExporter serverPageExporter,
NetworkPageExporter networkPageExporter) |
Modifier and Type | Method and Description |
---|---|
boolean |
exportPlayerJSON(java.util.UUID playerUUID,
java.lang.String playerName)
Export Raw Data JSON of a player.
|
boolean |
exportPlayerPage(java.util.UUID playerUUID,
java.lang.String playerName)
Export page of a player.
|
boolean |
exportPlayersPage() |
boolean |
exportServerJSON(Server server) |
boolean |
exportServerPage(Server server)
Export a page of a server.
|
@Inject public Exporter(PlanConfig config, PlayerJSONExporter playerJSONExporter, PlayerPageExporter playerPageExporter, PlayersPageExporter playersPageExporter, ServerPageExporter serverPageExporter, NetworkPageExporter networkPageExporter)
public boolean exportServerPage(Server server) throws ExportException
server
- Server which page is going to be exportedExportException
- If the export failed due to IO, NotFound or GenerationException.public boolean exportServerJSON(Server server) throws ExportException
ExportException
public boolean exportPlayerPage(java.util.UUID playerUUID, java.lang.String playerName) throws ExportException
playerUUID
- UUID of the player.playerName
- Name of the player.ExportException
- If the export failed due to IO, NotFound or GenerationException.public boolean exportPlayersPage() throws ExportException
ExportException
public boolean exportPlayerJSON(java.util.UUID playerUUID, java.lang.String playerName) throws ExportException
playerUUID
- UUID of the player.playerName
- Name of the player.ExportException
- If the export failed due to IOException.