@Component @Priority(value=2) public class ConfigDataExchangeComponent extends AbstractDataExchange<SysConfigData,SysConfigData>
限定符和类型 | 字段和说明 |
---|---|
private ConfigComponent |
configComponent |
private ConfigDataComponent |
configDataComponent |
private SysConfigDataService |
service |
ATTACHMENT_DIR, log, PRIVATE_DIR, siteComponent
构造器和说明 |
---|
ConfigDataExchangeComponent() |
限定符和类型 | 方法和说明 |
---|---|
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) |
void |
exportEntity(SysSite site,
java.lang.String directory,
SysConfigData entity,
java.io.ByteArrayOutputStream outputStream,
org.apache.commons.compress.archivers.ArchiveOutputStream<org.apache.commons.compress.archivers.zip.ZipArchiveEntry> archiveOutputStream) |
java.lang.String |
getDirectory() |
void |
importData(SysSite site,
long userId,
java.lang.String directory,
boolean overwrite,
org.apache.commons.compress.archivers.zip.ZipFile zipFile) |
void |
save(SysSite site,
long userId,
boolean overwrite,
SysConfigData data) |
export, exportAll, exportAll, exportAttachment, exportEntity, exportFileList, getDataClass, getPath, importData, importData, importData, needReplace
private ConfigComponent configComponent
private ConfigDataComponent configDataComponent
private SysConfigDataService service
public 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 importData(SysSite site, long userId, java.lang.String directory, boolean overwrite, org.apache.commons.compress.archivers.zip.ZipFile zipFile)
importData
在接口中 DataExchange<SysConfigData,SysConfigData>
importData
在类中 AbstractDataExchange<SysConfigData,SysConfigData>
public void exportEntity(SysSite site, java.lang.String directory, SysConfigData entity, java.io.ByteArrayOutputStream outputStream, org.apache.commons.compress.archivers.ArchiveOutputStream<org.apache.commons.compress.archivers.zip.ZipArchiveEntry> archiveOutputStream)
public void save(SysSite site, long userId, boolean overwrite, SysConfigData data)
public java.lang.String getDirectory()