public abstract class AbstractDataExchange<E,D> extends java.lang.Object implements DataExchange<E,D>
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
ATTACHMENT_DIR |
private java.lang.Class<D> |
clazz |
protected static org.apache.commons.logging.Log |
log |
static java.lang.String |
PRIVATE_DIR |
protected SiteComponent |
siteComponent |
构造器和说明 |
---|
AbstractDataExchange() |
限定符和类型 | 方法和说明 |
---|---|
protected void |
export(java.lang.String directory,
java.io.ByteArrayOutputStream outputStream,
org.apache.commons.compress.archivers.ArchiveOutputStream<org.apache.commons.compress.archivers.zip.ZipArchiveEntry> archiveOutputStream,
D value,
java.lang.String path) |
void |
exportAll(SysSite site,
org.apache.commons.compress.archivers.ArchiveOutputStream<org.apache.commons.compress.archivers.zip.ZipArchiveEntry> archiveOutputStream) |
void |
exportAll(SysSite site,
java.lang.String directory,
org.apache.commons.compress.archivers.ArchiveOutputStream<org.apache.commons.compress.archivers.zip.ZipArchiveEntry> archiveOutputStream) |
abstract void |
exportAll(SysSite site,
java.lang.String directory,
java.io.ByteArrayOutputStream outputStream,
org.apache.commons.compress.archivers.ArchiveOutputStream<org.apache.commons.compress.archivers.zip.ZipArchiveEntry> archiveOutputStream) |
protected void |
exportAttachment(SysSite site,
java.util.Set<java.lang.String> webfileList,
java.util.Set<java.lang.String> privateFileList,
org.apache.commons.compress.archivers.ArchiveOutputStream<org.apache.commons.compress.archivers.zip.ZipArchiveEntry> archiveOutputStream) |
void |
exportEntity(SysSite site,
E entity,
org.apache.commons.compress.archivers.ArchiveOutputStream<org.apache.commons.compress.archivers.zip.ZipArchiveEntry> archiveOutputStream) |
abstract void |
exportEntity(SysSite site,
java.lang.String directory,
E entity,
java.io.ByteArrayOutputStream outputStream,
org.apache.commons.compress.archivers.ArchiveOutputStream<org.apache.commons.compress.archivers.zip.ZipArchiveEntry> archiveOutputStream) |
protected void |
exportFileList(java.util.Map<java.lang.String,java.lang.String> extendMap,
java.util.List<SysExtendField> extendList,
java.util.Set<java.lang.String> webfileList,
java.util.Set<java.lang.String> privateFileList) |
protected java.lang.Class<D> |
getDataClass() |
protected java.lang.String |
getPath(java.lang.String directory,
java.lang.String path) |
protected void |
importData(SysSite site,
long userId,
boolean overwrite,
java.io.InputStream inputStream) |
void |
importData(SysSite site,
long userId,
boolean overwrite,
org.apache.commons.compress.archivers.zip.ZipFile zipFile) |
void |
importData(SysSite site,
long userId,
boolean overwrite,
org.apache.commons.compress.archivers.zip.ZipFile zipFile,
org.apache.commons.compress.archivers.zip.ZipArchiveEntry zipEntry) |
void |
importData(SysSite site,
long userId,
java.lang.String directory,
boolean overwrite,
org.apache.commons.compress.archivers.zip.ZipFile zipFile) |
protected boolean |
needReplace(java.lang.String source,
java.lang.String sitePath) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDirectory, save
protected static final org.apache.commons.logging.Log log
private java.lang.Class<D> clazz
public static final java.lang.String ATTACHMENT_DIR
public static final java.lang.String PRIVATE_DIR
protected SiteComponent siteComponent
public void exportAll(SysSite site, java.lang.String directory, org.apache.commons.compress.archivers.ArchiveOutputStream<org.apache.commons.compress.archivers.zip.ZipArchiveEntry> archiveOutputStream)
exportAll
在接口中 DataExchange<E,D>
public abstract void exportAll(SysSite site, java.lang.String directory, java.io.ByteArrayOutputStream outputStream, org.apache.commons.compress.archivers.ArchiveOutputStream<org.apache.commons.compress.archivers.zip.ZipArchiveEntry> archiveOutputStream)
public void exportAll(SysSite site, org.apache.commons.compress.archivers.ArchiveOutputStream<org.apache.commons.compress.archivers.zip.ZipArchiveEntry> archiveOutputStream)
public abstract void exportEntity(SysSite site, java.lang.String directory, E entity, java.io.ByteArrayOutputStream outputStream, org.apache.commons.compress.archivers.ArchiveOutputStream<org.apache.commons.compress.archivers.zip.ZipArchiveEntry> archiveOutputStream)
public void exportEntity(SysSite site, E entity, org.apache.commons.compress.archivers.ArchiveOutputStream<org.apache.commons.compress.archivers.zip.ZipArchiveEntry> archiveOutputStream)
exportEntity
在接口中 DataExchange<E,D>
protected void export(java.lang.String directory, java.io.ByteArrayOutputStream outputStream, org.apache.commons.compress.archivers.ArchiveOutputStream<org.apache.commons.compress.archivers.zip.ZipArchiveEntry> archiveOutputStream, D value, java.lang.String path)
protected void exportAttachment(SysSite site, java.util.Set<java.lang.String> webfileList, java.util.Set<java.lang.String> privateFileList, org.apache.commons.compress.archivers.ArchiveOutputStream<org.apache.commons.compress.archivers.zip.ZipArchiveEntry> archiveOutputStream)
protected void exportFileList(java.util.Map<java.lang.String,java.lang.String> extendMap, java.util.List<SysExtendField> extendList, java.util.Set<java.lang.String> webfileList, java.util.Set<java.lang.String> privateFileList)
public void importData(SysSite site, long userId, boolean overwrite, org.apache.commons.compress.archivers.zip.ZipFile zipFile)
public void importData(SysSite site, long userId, java.lang.String directory, boolean overwrite, org.apache.commons.compress.archivers.zip.ZipFile zipFile)
importData
在接口中 DataExchange<E,D>
protected boolean needReplace(java.lang.String source, java.lang.String sitePath)
public void importData(SysSite site, long userId, boolean overwrite, org.apache.commons.compress.archivers.zip.ZipFile zipFile, org.apache.commons.compress.archivers.zip.ZipArchiveEntry zipEntry)
protected void importData(SysSite site, long userId, boolean overwrite, java.io.InputStream inputStream)
protected java.lang.String getPath(java.lang.String directory, java.lang.String path)
protected java.lang.Class<D> getDataClass()