stable

Clone or download

Read-only

Export/import owner/author of documents

Now the user how created or updated a document is exported and imported back. If the user is not precised in the xml, then the current user will be taken as a default. Part of request #14507: XML import/export : docman Change-Id: Ib8356cfe9753c70decde135909cf4b962bdeac17

Modified Files

Name
M plugins/docman/include/XML/Export/XMLExportVisitor.php +21 −2 Go to diff View file
M plugins/docman/include/XML/Import/ImportProperties.php +30 −6 Go to diff View file
M plugins/docman/include/XML/Import/ImportPropertiesExtractor.php +37 −10 Go to diff View file
M plugins/docman/include/XML/Import/ItemImporter.php +2 −4 Go to diff View file
M plugins/docman/include/XML/Import/NodeImporter.php +6 −5 Go to diff View file
M plugins/docman/include/XML/Import/PostDoNothingImporter.php +1 −1 Go to diff View file
M plugins/docman/include/XML/Import/PostFileImporter.php +4 −3 Go to diff View file
M plugins/docman/include/XML/Import/PostFolderImporter.php +2 −2 Go to diff View file
M plugins/docman/include/XML/Import/PostImporter.php +1 −1 Go to diff View file
M plugins/docman/include/XML/Import/VersionImporter.php +33 −3 Go to diff View file
M plugins/docman/include/XML/XMLExporter.php +11 −4 Go to diff View file
M plugins/docman/include/docmanPlugin.php +13 −7 Go to diff View file
M plugins/docman/phpunit/XML/Export/XMLExportVisitorTest.php +141 −41 Go to diff View file
M plugins/docman/phpunit/XML/Import/ImportPropertiesExtractorTest.php +42 −1 Go to diff View file
M plugins/docman/phpunit/XML/Import/ImportPropertiesTest.php +22 −6 Go to diff View file
M plugins/docman/phpunit/XML/Import/ItemImporterTest.php +3 −3 Go to diff View file
M plugins/docman/phpunit/XML/Import/NodeImporterTest.php +79 −27 Go to diff View file
M plugins/docman/phpunit/XML/Import/PostFileImporterTest.php +1 −5 Go to diff View file
M plugins/docman/phpunit/XML/Import/PostFolderImporterTest.php +1 −5 Go to diff View file
M plugins/docman/phpunit/XML/Import/VersionImporterTest.php +62 −6 Go to diff View file
M plugins/docman/resources/docman-definition.rnc +14 −1 Go to diff View file
M plugins/docman/resources/docman-definition.rng +31 −0 Go to diff View file
M src/common/User/XML/Import/IFindUserFromXMLReference.php +3 −3 Go to diff View file
M src/common/User/XML/Import/Mapping.php +7 −3 Go to diff View file
M src/common/xml/XMLImportHelper.php +2 −2 Go to diff View file
M src/common/xml/resources/project/docman-definition.rng +31 −0 Go to diff View file