|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectorg.opencms.importexport.A_CmsImport
org.opencms.importexport.CmsImportVersion5
public class CmsImportVersion5
Implementation of the OpenCms Import Interface (I_CmsImport) for
the import version 5.
This import format is used in OpenCms since 6.3.0.
A_CmsImport| Field Summary | |
|---|---|
static int |
IMPORT_VERSION
Deprecated. The version number of this import implementation. |
protected java.util.Map |
m_importedRelations
Deprecated. Stores all relations defined in the import file to be created after all resources has been imported. |
protected boolean |
m_keepPermissions
Deprecated. The keep permissions flag. |
protected java.util.List |
m_parseables
Deprecated. Stores all resources of any type that implements the I_CmsLinkParseable interface. |
| Constructor Summary | |
|---|---|
CmsImportVersion5()
Deprecated. Creates a new CmsImportVerion7 object. |
|
| Method Summary | |
|---|---|
protected long |
convertTimestamp(java.lang.String timestamp)
Deprecated. Convert a given time stamp from a String format to a long value. |
int |
getVersion()
Deprecated. Returns the version of the import implementation. |
void |
importData(CmsObject cms,
I_CmsReport report,
CmsImportParameters params)
Deprecated. Imports the data. |
protected void |
importRelations()
Deprecated. Imports the relations. |
protected void |
importRelations(CmsResource resource,
org.dom4j.Element parentElement)
Deprecated. Reads all the relations of the resource from the manifest.xml file
and adds them to the according resource. |
protected CmsResource |
importResource(java.lang.String source,
java.lang.String destination,
I_CmsResourceType type,
java.lang.String uuidstructure,
java.lang.String uuidresource,
long datelastmodified,
java.lang.String userlastmodified,
long datecreated,
java.lang.String usercreated,
long datereleased,
long dateexpired,
java.lang.String flags,
java.util.List properties)
Deprecated. Imports a resource (file or folder) into the cms. |
void |
importResources(CmsObject cms,
java.lang.String importPath,
I_CmsReport report,
java.io.File importResource,
java.util.zip.ZipFile importZip,
org.dom4j.Document docXml)
Deprecated. use importData(CmsObject, I_CmsReport, CmsImportParameters) instead |
protected void |
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 userInfo,
java.util.List userGroups)
Deprecated. Imports a single user. |
protected void |
readResourcesFromManifest()
Deprecated. Reads all file nodes plus their meta-information (properties, ACL) from the manifest.xml and imports them as Cms resources to the VFS. |
protected void |
rewriteParseables()
Deprecated. Rewrites all parseable files, to assure link check. |
| Methods inherited from class org.opencms.importexport.A_CmsImport |
|---|
checkImmutable, cleanUp, convertDigestEncoding, convertPointerToSiblings, getChildElementTextValue, getFileBytes, getImportAccessControlEntry, getLocale, importAccessControlEntries, importGroup, importGroups, importUsers, initialize, matches, readPropertiesFromManifest |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int IMPORT_VERSION
protected java.util.Map m_importedRelations
protected java.util.List m_parseables
I_CmsLinkParseable interface.
protected boolean m_keepPermissions
| Constructor Detail |
|---|
public CmsImportVersion5()
| Method Detail |
|---|
public int getVersion()
I_CmsImport
I_CmsImport.getVersion()
public void importResources(CmsObject cms,
java.lang.String importPath,
I_CmsReport report,
java.io.File importResource,
java.util.zip.ZipFile importZip,
org.dom4j.Document docXml)
throws CmsImportExportException
importData(CmsObject, I_CmsReport, CmsImportParameters) instead
I_CmsImport
cms - the current users OpenCms contextimportPath - the path in the OpenCms VFS to import intoreport - a report object to output the progress information toimportResource - the import-resource (folder) to load resources fromimportZip - the import-resource (zip) to load resources fromdocXml - the manifest.xml file which contains the meta information of the imported files
CmsImportExportException - if something goes wrongI_CmsImport.importResources(org.opencms.file.CmsObject, java.lang.String, org.opencms.report.I_CmsReport, java.io.File, java.util.zip.ZipFile, org.dom4j.Document)
public void importData(CmsObject cms,
I_CmsReport report,
CmsImportParameters params)
throws CmsImportExportException,
CmsXmlException
I_CmsImport
cms - the current users OpenCms contextreport - a report object to output the progress information toparams - the parameters to use during the import
CmsImportExportException - if something goes wrong
CmsXmlException - if the manifest file could not be unmarshalledI_CmsImport.importData(CmsObject, I_CmsReport, CmsImportParameters)protected long convertTimestamp(java.lang.String timestamp)
The time stamp is either the string representation of a long value (old export format) or a user-readable string format.
timestamp - time stamp to convert
protected void importRelations()
protected void importRelations(CmsResource resource,
org.dom4j.Element parentElement)
manifest.xml file
and adds them to the according resource.
resource - the resource to import the relations forparentElement - the current element
protected CmsResource importResource(java.lang.String source,
java.lang.String destination,
I_CmsResourceType type,
java.lang.String uuidstructure,
java.lang.String uuidresource,
long datelastmodified,
java.lang.String userlastmodified,
long datecreated,
java.lang.String usercreated,
long datereleased,
long dateexpired,
java.lang.String flags,
java.util.List properties)
source - the path to the source-filedestination - the path to the destination-file in the cmstype - the resource type name of the fileuuidstructure - the structure uuid of the resourceuuidresource - the resource uuid of the resourcedatelastmodified - the last modification date of the resourceuserlastmodified - the user who made the last modifications to the resourcedatecreated - the creation date of the resourceusercreated - the user who createddatereleased - the release date of the resourcedateexpired - the expire date of the resourceflags - the flags of the resourceproperties - a list with properties for this resource
protected void 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 userInfo,
java.util.List userGroups)
throws CmsImportExportException
A_CmsImport
importUser in class A_CmsImportname - user nameflags - user flagspassword - user passwordfirstname - firstname of the userlastname - lastname of the useremail - user emaildateCreated - creation dateuserInfo - user infouserGroups - user groups
CmsImportExportException - in case something goes wrongA_CmsImport.importUser(String, String, String, String, String, String, long, Map, List)
protected void readResourcesFromManifest()
throws CmsImportExportException
manifest.xml and imports them as Cms resources to the VFS.
CmsImportExportException - if something goes wrongprotected void rewriteParseables()
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||