stable

Clone or download

Read-only

Basic import/export of docman

Have a document tree with all kind of items (folder, wiki, file, …). Export the project. Import the archive in another project. => the document tree is imported. Current limitations: * No rnc/rng * The permissions are not exported (will inherit parent's perms at import). * Only title metadata is exported/imported. * For file versions, label & changelog are not exported. * For wiki & link documents, only the latest version is exported. * The creation date of each imported items will be the creation time. * The owner of each imported items will be the user used for import. * Metadata are not inherited from parent * No log in project history * No notifications are sent * Importation is done in a subfolder of root item All those points will be managed in dedicated commits. Part of request #14507: XML import/export : docman Change-Id: If8f7d204cf52184a31f7d72e27c7094696173c2c

Modified Files

Name
M plugins/docman/include/Docman_FileStorage.class.php +2 −0 Go to diff View file
M plugins/docman/include/Docman_Folder.class.php +7 −1 Go to diff View file
A plugins/docman/include/XML/Export/XMLExportVisitor.php +181 −0 Go to diff View file
A plugins/docman/include/XML/Import/ImportProperties.php +105 −0 Go to diff View file
A plugins/docman/include/XML/Import/ItemImporter.php +82 −0 Go to diff View file
A plugins/docman/include/XML/Import/NodeImporter.php +151 −0 Go to diff View file
A plugins/docman/include/XML/Import/PostDoNothingImporter.php +33 −0 Go to diff View file
A plugins/docman/include/XML/Import/PostFileImporter.php +61 −0 Go to diff View file
A plugins/docman/include/XML/Import/PostFolderImporter.php +36 −0 Go to diff View file
A plugins/docman/include/XML/Import/PostImporter.php +31 −0 Go to diff View file
A plugins/docman/include/XML/Import/UnableToCreateFileOnFilesystemException.php +31 −0 Go to diff View file
A plugins/docman/include/XML/Import/UnableToCreateVersionInDbException.php +31 −0 Go to diff View file
A plugins/docman/include/XML/Import/UnknownItemTypeException.php +31 −0 Go to diff View file
A plugins/docman/include/XML/Import/VersionImporter.php +118 −0 Go to diff View file
A plugins/docman/include/XML/XMLExporter.php +78 −0 Go to diff View file
A plugins/docman/include/XML/XMLImporter.php +69 −0 Go to diff View file
M plugins/docman/include/docmanPlugin.php +70 −0 Go to diff View file
A plugins/docman/phpunit/XML/Export/XMLExportVisitorTest.php +277 −0 Go to diff View file
A plugins/docman/phpunit/XML/Import/ImportPropertiesTest.php +82 −0 Go to diff View file
A plugins/docman/phpunit/XML/Import/ItemImporterTest.php +70 −0 Go to diff View file
A plugins/docman/phpunit/XML/Import/NodeImporterTest.php +297 −0 Go to diff View file
A plugins/docman/phpunit/XML/Import/PostFileImporterTest.php +90 −0 Go to diff View file
A plugins/docman/phpunit/XML/Import/PostFolderImporterTest.php +76 −0 Go to diff View file
A plugins/docman/phpunit/XML/Import/VersionImporterTest.php +203 −0 Go to diff View file
A plugins/docman/phpunit/XML/XMLImporterTest.php +100 −0 Go to diff View file
M src/common/Event/Events/ExportXmlProject.php +14 −2 Go to diff View file
M src/common/Project/ProjectXMLExporter.class.php +2 −2 Go to diff View file