|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.db.CmsImportFolder
public class CmsImportFolder
Allows to import resources from the filesystem or a ZIP file into the OpenCms VFS.
| Constructor Summary | |
|---|---|
CmsImportFolder()
Default Constructor. |
|
CmsImportFolder(byte[] content,
String importPath,
CmsObject cms,
boolean noSubFolder)
Constructor for a new CmsImportFolder that will read from a ZIP file. |
|
CmsImportFolder(String importFolderName,
String importPath,
CmsObject cms)
Constructor for a new CmsImportFolder that will read from the real file system. |
|
| Method Summary | |
|---|---|
List<String> |
getCreatedResourceNames()
Returns the names of resources that have been created or replaced during the import. |
void |
importFolder(String importFolderName,
String importPath,
CmsObject cms)
Import that will read from the real file system. |
void |
importZip(byte[] content,
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CmsImportFolder()
public CmsImportFolder(byte[] content,
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 folders
CmsException - if something goes wrong
public CmsImportFolder(String importFolderName,
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 permissions
CmsException - if something goes wrong| Method Detail |
|---|
public List<String> getCreatedResourceNames()
public void importFolder(String importFolderName,
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 permissions
CmsException - if something goes wrong
public void importZip(byte[] content,
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 folders
CmsException - if something goes wrongpublic boolean isValidZipFile()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||