Package org.fenixedu.cms.domain
Class SiteExporter
- java.lang.Object
-
- org.fenixedu.cms.domain.SiteExporter
-
public class SiteExporter extends Object
Created by borgez-dsi on 24-06-2015.
-
-
Constructor Summary
Constructors Constructor Description SiteExporter(Site site)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidaddToZipFile(String filename, com.google.gson.JsonObject jsonObject, ZipOutputStream zos)static voidaddToZipFile(String filename, InputStream content, ZipOutputStream zos)ByteArrayOutputStreamexport()protected com.google.gson.JsonObjectexport(Category category)protected com.google.gson.JsonObjectexport(Component component)protected com.google.gson.JsonObjectexport(Menu menu)protected com.google.gson.JsonObjectexport(MenuItem menuItem)protected com.google.gson.JsonObjectexport(Page page)protected com.google.gson.JsonObjectexport(Post post)protected com.google.gson.JsonObjectexport(PostFile postFile)protected com.google.gson.JsonObjectexport(Site site)SitegetSite()
-
-
-
Constructor Detail
-
SiteExporter
public SiteExporter(Site site)
-
-
Method Detail
-
export
public ByteArrayOutputStream export()
-
addToZipFile
public static void addToZipFile(String filename, com.google.gson.JsonObject jsonObject, ZipOutputStream zos) throws IOException
- Throws:
IOException
-
addToZipFile
public static void addToZipFile(String filename, InputStream content, ZipOutputStream zos) throws IOException
- Throws:
IOException
-
export
protected com.google.gson.JsonObject export(Site site)
-
export
protected com.google.gson.JsonObject export(Page page)
-
export
protected com.google.gson.JsonObject export(Menu menu)
-
export
protected com.google.gson.JsonObject export(MenuItem menuItem)
-
export
protected com.google.gson.JsonObject export(Post post)
-
export
protected com.google.gson.JsonObject export(Category category)
-
export
protected com.google.gson.JsonObject export(PostFile postFile)
-
export
protected com.google.gson.JsonObject export(Component component)
-
getSite
public Site getSite()
-
-