org.opencms.db
Class CmsImportFolder

java.lang.Object
  extended by org.opencms.db.CmsImportFolder

public class CmsImportFolder
extends java.lang.Object

Allows to import resources from the filesystem or a ZIP file into the OpenCms VFS.

Since:
6.0.0
Version:
$Revision: 1.43 $
Author:
Alexander Kandzior

Constructor Summary
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.
 
Method Summary
 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

CmsImportFolder

public CmsImportFolder(byte[] content,
                       java.lang.String importPath,
                       CmsObject cms,
                       boolean noSubFolder)
                throws CmsException
Constructor for a new CmsImportFolder that will read from a ZIP file.

Parameters:
content - the zip file to import
importPath - the path to the OpenCms VFS to import to
cms - a OpenCms context to provide the permissions
noSubFolder - if false no sub folder will be created
Throws:
CmsException - if something goes wrong

CmsImportFolder

public CmsImportFolder(java.lang.String importFolderName,
                       java.lang.String importPath,
                       CmsObject cms)
                throws CmsException
Constructor for a new CmsImportFolder that will read from the real file system.

Parameters:
importFolderName - the folder to import
importPath - the path to the OpenCms VFS to import to
cms - a OpenCms context to provide the permissions
Throws:
CmsException - if something goes wrong
Method Detail

isValidZipFile

public boolean isValidZipFile()
Returns true if a valid ZIP file was imported.

Returns:
true if a valid ZIP file was imported