程序包 | 说明 |
---|---|
org.opencms.importexport |
Contains functions to import and export resources from the OpenCms VFS.
|
org.opencms.module |
OpenCms modules provide a powerful, standardized way to extend
the core OpenCms functionality.
|
限定符和类型 | 方法和说明 |
---|---|
protected void |
CmsExport.addChildResources(java.lang.String folderName)
Exports the given folder and all child resources.
|
protected void |
CmsExport.addFiles(java.util.List<java.lang.String> fileNames)
Adds all files in fileNames to the manifest.xml file.
|
protected void |
CmsExport.addParentFolders(java.lang.String resourceName)
Adds the parent folders of the given resource to the config file,
starting at the top, excluding the root folder.
|
protected void |
CmsExport.appendResourceToManifest(CmsResource resource,
boolean source)
Writes the data for a resource (like access-rights) to the
manifest.xml file. |
static CmsXmlPage |
CmsXmlPageConverter.convertToXmlPage(CmsObject cms,
byte[] content,
java.util.Locale locale,
java.lang.String encoding)
已过时。
Converts the contents of a page into an xml page.
|
protected void |
CmsExport.exportAllResources(org.dom4j.Element parent,
java.util.List<java.lang.String> resourcesToExport)
Exports all resources and possible sub-folders form the provided list of resources.
|
void |
CmsExport.exportData(CmsExportParameters parameters)
Export the data.
|
void |
CmsImportExportManager.exportData(CmsObject cms,
I_CmsImportExportHandler handler,
I_CmsReport report)
Checks if the current user has permissions to export Cms data of a specified export handler,
and if so, triggers the handler to write the export.
|
void |
I_CmsImportExportHandler.exportData(CmsObject cms,
I_CmsReport report)
Exports the data from the Cms.
|
void |
CmsVfsImportExportHandler.exportData(CmsObject cms,
I_CmsReport report) |
protected void |
CmsExport.exportFile(CmsFile file)
Exports one single file with all its data and content.
|
protected void |
CmsExport.exportGroup(org.dom4j.Element parent,
CmsGroup group)
Exports one single group with all it's data.
|
protected void |
CmsExport.exportGroups(org.dom4j.Element parent,
CmsOrganizationalUnit orgunit)
Exports all groups of the given organizational unit.
|
protected void |
CmsExport.exportOrgUnits(org.dom4j.Element parent)
Exports all organizational units with all data.
|
protected void |
CmsExport.exportProject(org.dom4j.Element parent,
CmsProject project)
Exports one single project with all it's data.
|
protected void |
CmsExport.exportProjects(org.dom4j.Element parent)
Exports all projects with all data.
|
protected void |
CmsExport.exportUser(org.dom4j.Element parent,
CmsUser user)
Exports one single user with all its data.
|
protected void |
CmsExport.exportUsers(org.dom4j.Element parent,
CmsOrganizationalUnit orgunit)
Exports all users of the given organizational unit.
|
protected void |
CmsImportVersion7.findContentFiles()
This method goes through the manifest, records all files from the manifest for which the content also
exists in the zip file, and stores their resource ids in m_contentFiles.
|
byte[] |
CmsImportHelper.getFileBytes(java.lang.String filename)
Returns a byte array containing the content of the file.
|
java.io.InputStream |
CmsImportHelper.getFileStream(java.lang.String fileName)
Returns a stream for the content of the file.
|
I_CmsImportExportHandler |
CmsImportExportManager.getImportExportHandler(CmsImportParameters parameters)
Returns an instance of an import/export handler implementation that is able to import
a specified resource.
|
void |
CmsImport.importData(CmsImportParameters parameters)
Imports the resources and writes them to the cms VFS, even if there
already exist files with the same name.
|
void |
I_CmsImportExportHandler.importData(CmsObject cms,
I_CmsReport report)
Imports the data into the Cms.
|
void |
CmsVfsImportExportHandler.importData(CmsObject cms,
I_CmsReport report) |
void |
I_CmsImport.importData(CmsObject cms,
I_CmsReport report,
CmsImportParameters parameters)
Imports the data.
|
void |
CmsImportVersion5.importData(CmsObject cms,
I_CmsReport report,
CmsImportParameters params)
已过时。
|
void |
CmsImportVersion2.importData(CmsObject cms,
I_CmsReport report,
CmsImportParameters params)
已过时。
|
void |
CmsImportExportManager.importData(CmsObject cms,
I_CmsReport report,
CmsImportParameters parameters)
Checks if the current user has permissions to import data into the Cms,
and if so, creates a new import handler instance that imports the data.
|
void |
CmsImportVersion3.importData(CmsObject cms,
I_CmsReport report,
CmsImportParameters params)
已过时。
|
void |
CmsImportVersion4.importData(CmsObject cms,
I_CmsReport report,
CmsImportParameters params)
已过时。
|
void |
I_CmsImportExportHandler.importData(CmsObject cms,
java.lang.String importFile,
java.lang.String importPath,
I_CmsReport report)
已过时。
|
void |
CmsImportExportManager.importData(CmsObject cms,
java.lang.String importFile,
java.lang.String importPath,
I_CmsReport report)
|
void |
CmsVfsImportExportHandler.importData(CmsObject cms,
java.lang.String importFile,
java.lang.String importPath,
I_CmsReport report)
已过时。
|
protected void |
A_CmsImport.importGroup(java.lang.String name,
java.lang.String description,
java.lang.String flags,
java.lang.String parentgroupName)
已过时。
Imports a single group.
|
protected void |
A_CmsImport.importGroups()
已过时。
Imports the OpenCms groups.
|
void |
I_CmsImport.importResources(CmsObject cms,
java.lang.String importPath,
I_CmsReport report,
java.io.File importResource,
java.util.zip.ZipFile importZip,
org.dom4j.Document docXml)
已过时。
|
void |
CmsImportVersion5.importResources(CmsObject cms,
java.lang.String importPath,
I_CmsReport report,
java.io.File importResource,
java.util.zip.ZipFile importZip,
org.dom4j.Document docXml)
|
void |
CmsImportVersion2.importResources(CmsObject cms,
java.lang.String importPath,
I_CmsReport report,
java.io.File importResource,
java.util.zip.ZipFile importZip,
org.dom4j.Document docXml)
|
void |
CmsImportVersion3.importResources(CmsObject cms,
java.lang.String importPath,
I_CmsReport report,
java.io.File importResource,
java.util.zip.ZipFile importZip,
org.dom4j.Document docXml)
|
void |
CmsImportVersion4.importResources(CmsObject cms,
java.lang.String importPath,
I_CmsReport report,
java.io.File importResource,
java.util.zip.ZipFile importZip,
org.dom4j.Document docXml)
|
protected void |
CmsImportVersion5.importUser(java.lang.String name,
java.lang.String flags,
java.lang.String password,
java.lang.String firstname,
java.lang.String lastname,
java.lang.String email,
long dateCreated,
java.util.Map<java.lang.String,java.lang.Object> userInfo,
java.util.List<java.lang.String> userGroups)
已过时。
|
protected void |
CmsImportVersion2.importUser(java.lang.String name,
java.lang.String flags,
java.lang.String password,
java.lang.String firstname,
java.lang.String lastname,
java.lang.String email,
long dateCreated,
java.util.Map<java.lang.String,java.lang.Object> userInfo,
java.util.List<java.lang.String> userGroups)
已过时。
|
protected void |
CmsImportVersion3.importUser(java.lang.String name,
java.lang.String flags,
java.lang.String password,
java.lang.String firstname,
java.lang.String lastname,
java.lang.String email,
long dateCreated,
java.util.Map<java.lang.String,java.lang.Object> userInfo,
java.util.List<java.lang.String> userGroups)
已过时。
|
protected void |
CmsImportVersion4.importUser(java.lang.String name,
java.lang.String flags,
java.lang.String password,
java.lang.String firstname,
java.lang.String lastname,
java.lang.String email,
long dateCreated,
java.util.Map<java.lang.String,java.lang.Object> userInfo,
java.util.List<java.lang.String> userGroups)
已过时。
|
protected void |
A_CmsImport.importUser(java.lang.String name,
java.lang.String flags,
java.lang.String password,
java.lang.String firstname,
java.lang.String lastname,
java.lang.String email,
long dateCreated,
java.util.Map<java.lang.String,java.lang.Object> userInfo,
java.util.List<java.lang.String> userGroups)
已过时。
Imports a single user.
|
protected void |
CmsImportVersion6.importUsers()
已过时。
Imports the OpenCms users.
|
protected void |
A_CmsImport.importUsers()
已过时。
Imports the OpenCms users.
|
boolean |
I_CmsImport.matches(CmsImportParameters parameters)
Checks if the file given as parameter matches this import version implementation.
|
boolean |
CmsImportVersion7.matches(CmsImportParameters parameters) |
boolean |
A_CmsImport.matches(CmsImportParameters parameters)
已过时。
|
protected void |
CmsImportVersion5.readResourcesFromManifest()
已过时。
Reads all file nodes plus their meta-information (properties, ACL)
from the
manifest.xml and imports them as Cms resources to the VFS. |
限定符和类型 | 方法和说明 |
---|---|
void |
CmsModuleImportExportHandler.exportData(CmsObject cms,
I_CmsReport report) |
void |
CmsModuleImportExportHandler.importData(CmsObject cms,
I_CmsReport report) |
void |
CmsModuleImportExportHandler.importData(CmsObject cms,
java.lang.String importFile,
java.lang.String importPath,
I_CmsReport report)
已过时。
|