stable

Clone or download

Read-only

Embedded documents can be moved between folders via the REST API

The existing route PATCH /docman_embedded_files/:id is repurposed for this usage. Part of story #12456: Cut/Copy/paste items Change-Id: I53d70f8851b3be2242ce841083ce984de6b9202b

Modified Files

Name
M plugins/docman/include/Docman_Actions.class.php +1 −2 Go to diff View file
M plugins/docman/include/Docman_ItemFactory.class.php +20 −0 Go to diff View file
M plugins/docman/include/REST/v1/CopyItem/BeforeCopyVisitor.php +0 −3 Go to diff View file
M plugins/docman/include/REST/v1/DocmanEmbeddedFilesResource.php +32 −42 Go to diff View file
A plugins/docman/include/REST/v1/DocmanPATCHItemRepresentation.php +33 −0 Go to diff View file
A plugins/docman/include/REST/v1/MoveItem/BeforeMoveVisitor.php +172 −0 Go to diff View file
A plugins/docman/include/REST/v1/MoveItem/DocmanItemMover.php +123 −0 Go to diff View file
A plugins/docman/include/REST/v1/MoveItem/DocmanMoveItemRepresentation.php +31 −0 Go to diff View file
A plugins/docman/phpunit/REST/v1/MoveItem/BeforeMoveVisitorTest.php +195 −0 Go to diff View file
A plugins/docman/phpunit/REST/v1/MoveItem/DocmanItemMoverTest.php +280 −0 Go to diff View file
M plugins/docman/tests/rest/Docman/DocmanEmbeddedTest.php +22 −367 Go to diff View file
M plugins/docman/tests/rest/HardCodedMetadata/HardcodedMetadataTest.php +0 −45 Go to diff View file
M plugins/docman/tests/rest/Helper/DocmanEmbeddedDataBuild.php +4 −79 Go to diff View file