Class PlayerPageExporter
- java.lang.Object
-
- com.djrapitops.plan.delivery.export.PlayerPageExporter
-
@Singleton public class PlayerPageExporter extends java.lang.Object
Handles exporting of /player page html, data and resources.
-
-
Constructor Summary
Constructors Constructor Description PlayerPageExporter(PlanFiles files, DBSystem dbSystem, PageFactory pageFactory, RootJSONResolver jsonHandler, Theme theme)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
export(java.nio.file.Path toDirectory, java.util.UUID playerUUID, java.lang.String playerName)
Perform export for a player page.
-
-
-
Constructor Detail
-
PlayerPageExporter
@Inject public PlayerPageExporter(PlanFiles files, DBSystem dbSystem, PageFactory pageFactory, RootJSONResolver jsonHandler, Theme theme)
-
-
Method Detail
-
export
public void export(java.nio.file.Path toDirectory, java.util.UUID playerUUID, java.lang.String playerName) throws java.io.IOException
Perform export for a player page.- Parameters:
toDirectory
- Path to Export directoryplayerUUID
- UUID of the playerplayerName
- Name of the player- Throws:
java.io.IOException
- If a template can not be read from jar/disk or the result writtenNotFoundException
- If a file or resource that is being exported can not be found
-
-