@Component
public class SiteExchangeComponent
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
private java.util.List<AbstractDataExchange<?,?>> |
exchangeList |
protected static org.apache.commons.logging.Log |
log |
private MetadataComponent |
metadataComponent |
private SiteComponent |
siteComponent |
private TemplateComponent |
templateComponent |
构造器和说明 |
---|
SiteExchangeComponent() |
限定符和类型 | 方法和说明 |
---|---|
void |
exportAll(SysSite site,
org.apache.commons.compress.archivers.ArchiveOutputStream<org.apache.commons.compress.archivers.zip.ZipArchiveEntry> archiveOutputStream) |
static <E,D> java.lang.String |
importData(SysSite site,
long userId,
boolean overwrite,
java.lang.String dataFileSuffix,
AbstractDataExchange<E,D> exchangeComponent,
org.springframework.web.multipart.MultipartFile file,
org.springframework.ui.ModelMap model) |
java.lang.String |
importData(SysSite site,
long userId,
boolean overwrite,
java.lang.String dataFileSuffix,
org.springframework.web.multipart.MultipartFile file,
java.lang.String fileName,
org.springframework.ui.ModelMap model) |
private void |
importDate(SysSite site,
long userId,
boolean overwrite,
java.io.File file) |
static boolean |
mergeDataFile(java.lang.String filepath,
SysSite site,
org.apache.commons.compress.archivers.zip.ZipFile zipFile,
org.apache.commons.compress.archivers.zip.ZipArchiveEntry zipEntry) |
static <T> boolean |
mergeMap(java.lang.String filepath,
java.lang.Class<T> clazz,
org.apache.commons.compress.archivers.zip.ZipFile zipFile,
org.apache.commons.compress.archivers.zip.ZipArchiveEntry zipEntry) |
protected static final org.apache.commons.logging.Log log
private java.util.List<AbstractDataExchange<?,?>> exchangeList
private SiteComponent siteComponent
private TemplateComponent templateComponent
private MetadataComponent metadataComponent
public static <E,D> java.lang.String importData(SysSite site, long userId, boolean overwrite, java.lang.String dataFileSuffix, AbstractDataExchange<E,D> exchangeComponent, org.springframework.web.multipart.MultipartFile file, org.springframework.ui.ModelMap model)
E
- D
- site
- userId
- overwrite
- dataFileSuffix
- exchangeComponent
- file
- model
- public void exportAll(SysSite site, org.apache.commons.compress.archivers.ArchiveOutputStream<org.apache.commons.compress.archivers.zip.ZipArchiveEntry> archiveOutputStream)
site
- archiveOutputStream
- public java.lang.String importData(SysSite site, long userId, boolean overwrite, java.lang.String dataFileSuffix, org.springframework.web.multipart.MultipartFile file, java.lang.String fileName, org.springframework.ui.ModelMap model)
site
- userId
- overwrite
- dataFileSuffix
- file
- fileName
- model
- public static <T> boolean mergeMap(java.lang.String filepath, java.lang.Class<T> clazz, org.apache.commons.compress.archivers.zip.ZipFile zipFile, org.apache.commons.compress.archivers.zip.ZipArchiveEntry zipEntry)
public static boolean mergeDataFile(java.lang.String filepath, SysSite site, org.apache.commons.compress.archivers.zip.ZipFile zipFile, org.apache.commons.compress.archivers.zip.ZipArchiveEntry zipEntry)
private void importDate(SysSite site, long userId, boolean overwrite, java.io.File file) throws java.io.IOException
java.io.IOException