@Singleton
public class PlayerPageExporter
extends java.lang.Object
Constructor and Description |
---|
PlayerPageExporter(PlanFiles files,
DBSystem dbSystem,
PageFactory pageFactory,
RootJSONResolver jsonHandler,
Theme theme) |
Modifier and Type | Method and Description |
---|---|
void |
export(java.nio.file.Path toDirectory,
java.util.UUID playerUUID,
java.lang.String playerName)
Perform export for a player page.
|
@Inject public PlayerPageExporter(PlanFiles files, DBSystem dbSystem, PageFactory pageFactory, RootJSONResolver jsonHandler, Theme theme)
public void export(java.nio.file.Path toDirectory, java.util.UUID playerUUID, java.lang.String playerName) throws java.io.IOException
toDirectory
- Path to Export directoryplayerUUID
- UUID of the playerplayerName
- Name of the playerjava.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