@Singleton
public class ServerPageExporter
extends java.lang.Object
Constructor and Description |
---|
ServerPageExporter(PlanFiles files,
PageFactory pageFactory,
DBSystem dbSystem,
RootJSONResolver jsonHandler,
Theme theme,
ServerInfo serverInfo) |
Modifier and Type | Method and Description |
---|---|
void |
export(java.nio.file.Path toDirectory,
Server server)
Perform export for a server page.
|
void |
exportJSON(java.nio.file.Path toDirectory,
Server server)
Perform export for a server page json payload.
|
@Inject public ServerPageExporter(PlanFiles files, PageFactory pageFactory, DBSystem dbSystem, RootJSONResolver jsonHandler, Theme theme, ServerInfo serverInfo)
public void export(java.nio.file.Path toDirectory, Server server) throws java.io.IOException
toDirectory
- Path to Export directoryserver
- Server to exportjava.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 foundpublic void exportJSON(java.nio.file.Path toDirectory, Server server) throws java.io.IOException
toDirectory
- Path to Export directoryserver
- Server to exportjava.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