@Component public class ContentExchangeComponent extends AbstractDataExchange<CmsContent,Content>
限定符和类型 | 字段和说明 |
---|---|
private CmsContentAttributeService |
attributeService |
private CmsCategoryService |
categoryService |
private SysExtendFieldService |
extendFieldService |
private CmsContentFileService |
fileService |
private ModelComponent |
modelComponent |
private CmsContentProductService |
productService |
private CmsContentRelatedService |
relatedService |
private CmsContentService |
service |
private SysDeptService |
sysDeptService |
private SysUserService |
sysUserService |
private TemplateComponent |
templateComponent |
ATTACHMENT_DIR, log, PRIVATE_DIR, siteComponent
构造器和说明 |
---|
ContentExchangeComponent() |
限定符和类型 | 方法和说明 |
---|---|
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 |
exportDataByQuery(SysSite site,
java.lang.String directory,
CmsContentQuery queryEntity,
org.apache.commons.compress.archivers.ArchiveOutputStream<org.apache.commons.compress.archivers.zip.ZipArchiveEntry> archiveOutputStream) |
void |
exportDataByQuery(SysSite site,
java.lang.String directory,
CmsContentQuery queryEntity,
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,
CmsContent entity,
java.io.ByteArrayOutputStream out,
org.apache.commons.compress.archivers.ArchiveOutputStream<org.apache.commons.compress.archivers.zip.ZipArchiveEntry> archiveOutputStream) |
private Content |
exportEntity(SysSite site,
java.lang.String categoryCode,
CmsContent entity,
CmsModel model,
java.util.Set<java.lang.String> webfileList,
java.util.Set<java.lang.String> privateFileList) |
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,
boolean overwrite,
CmsCategory category,
SysUser user,
Content data) |
void |
save(SysSite site,
long userId,
boolean overwrite,
Content data) |
export, exportAll, exportAll, exportAttachment, exportEntity, exportFileList, getDataClass, getPath, importData, importData, importData, needReplace
private CmsContentService service
private TemplateComponent templateComponent
private ModelComponent modelComponent
private CmsCategoryService categoryService
private CmsContentAttributeService attributeService
private CmsContentFileService fileService
private CmsContentProductService productService
private CmsContentRelatedService relatedService
private SysUserService sysUserService
private SysDeptService sysDeptService
private SysExtendFieldService extendFieldService
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)
exportAll
在类中 AbstractDataExchange<CmsContent,Content>
public void exportDataByQuery(SysSite site, java.lang.String directory, CmsContentQuery queryEntity, org.apache.commons.compress.archivers.ArchiveOutputStream<org.apache.commons.compress.archivers.zip.ZipArchiveEntry> archiveOutputStream)
site
- directory
- queryEntity
- archiveOutputStream
- public void exportDataByQuery(SysSite site, java.lang.String directory, CmsContentQuery queryEntity, java.io.ByteArrayOutputStream outputStream, org.apache.commons.compress.archivers.ArchiveOutputStream<org.apache.commons.compress.archivers.zip.ZipArchiveEntry> archiveOutputStream)
site
- directory
- queryEntity
- outputStream
- archiveOutputStream
- public void exportEntity(SysSite site, java.lang.String directory, CmsContent entity, java.io.ByteArrayOutputStream out, org.apache.commons.compress.archivers.ArchiveOutputStream<org.apache.commons.compress.archivers.zip.ZipArchiveEntry> archiveOutputStream)
exportEntity
在类中 AbstractDataExchange<CmsContent,Content>
public void importData(SysSite site, long userId, java.lang.String directory, boolean overwrite, org.apache.commons.compress.archivers.zip.ZipFile zipFile)
importData
在接口中 DataExchange<CmsContent,Content>
importData
在类中 AbstractDataExchange<CmsContent,Content>
public void save(SysSite site, boolean overwrite, CmsCategory category, SysUser user, Content data)
private Content exportEntity(SysSite site, java.lang.String categoryCode, CmsContent entity, CmsModel model, java.util.Set<java.lang.String> webfileList, java.util.Set<java.lang.String> privateFileList)
public java.lang.String getDirectory()