public class CmsImportFolder
extends java.lang.Object
| 构造器和说明 |
|---|
CmsImportFolder()
Default Constructor.
|
CmsImportFolder(byte[] content,
java.lang.String importPath,
CmsObject cms,
boolean noSubFolder)
Constructor for a new CmsImportFolder that will read from a ZIP file.
|
CmsImportFolder(java.lang.String importFolderName,
java.lang.String importPath,
CmsObject cms)
Constructor for a new CmsImportFolder that will read from the real file system.
|
| 限定符和类型 | 方法和说明 |
|---|---|
java.util.List<CmsResource> |
getImportedResources()
Returns the list of imported resources.
|
void |
importFolder(java.lang.String importFolderName,
java.lang.String importPath,
CmsObject cms)
Import that will read from the real file system.
|
void |
importZip(byte[] content,
java.lang.String importPath,
CmsObject cms,
boolean noSubFolder)
Import that will read from a ZIP file.
|
boolean |
isValidZipFile()
Returns true if a valid ZIP file was imported.
|
public CmsImportFolder()
public CmsImportFolder(byte[] content,
java.lang.String importPath,
CmsObject cms,
boolean noSubFolder)
throws CmsException
content - the zip file to importimportPath - the path to the OpenCms VFS to import tocms - a OpenCms context to provide the permissionsnoSubFolder - if true no sub folders will be created, if false the content of the
zip file is created 1:1 inclusive sub foldersCmsException - if something goes wrongpublic CmsImportFolder(java.lang.String importFolderName,
java.lang.String importPath,
CmsObject cms)
throws CmsException
importFolderName - the folder to importimportPath - the path to the OpenCms VFS to import tocms - a OpenCms context to provide the permissionsCmsException - if something goes wrongpublic java.util.List<CmsResource> getImportedResources()
public void importFolder(java.lang.String importFolderName,
java.lang.String importPath,
CmsObject cms)
throws CmsException
importFolderName - the folder to importimportPath - the path to the OpenCms VFS to import tocms - a OpenCms context to provide the permissionsCmsException - if something goes wrongpublic void importZip(byte[] content,
java.lang.String importPath,
CmsObject cms,
boolean noSubFolder)
throws CmsException
content - the zip file to importimportPath - the path to the OpenCms VFS to import tocms - a OpenCms context to provide the permissionsnoSubFolder - if true no sub folders will be created, if false the content of the
zip file is created 1:1 inclusive sub foldersCmsException - if something goes wrongpublic boolean isValidZipFile()