stable
Clone or download
Read-only
part of story #12634 Add custom metadata in modal How to test: have a project with custom metadata, create new items via REST route : - if you don't provide metadata key, like it's already the case on master, metadata won't be stored - if you provide key, the metadata of item will be the given one for now there is no check on: - all projects metadata are provided - all required project metadata are provided this will be done in a dedicated commit Change-Id: Ide7c1467fcef30276502771e7533f1ed3f54fbd9
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/docman/include/Docman_CloneItemsVisitor.class.php | +3 | −1 | Go to diff View file |
M | plugins/docman/include/Docman_MetadataValueFactory.class.php | +66 | −137 | Go to diff View file |
A | plugins/docman/include/Metadata/DocmanMetadataInputValidator.php | +62 | −0 | Go to diff View file |
A | plugins/docman/include/Metadata/DocmanMetadataTypeValueFactory.php | +51 | −0 | Go to diff View file |
A | plugins/docman/include/Metadata/MetadataDoesNotExistException.php | +27 | −0 | Go to diff View file |
A | plugins/docman/include/Metadata/MetadataValueCreator.php | +113 | −0 | Go to diff View file |
A | plugins/docman/include/Metadata/MetadataValueObjectFactory.php | +71 | −0 | Go to diff View file |
M | plugins/docman/include/REST/v1/DocmanFoldersResource.php | +18 | −1 | Go to diff View file |
M | plugins/docman/include/REST/v1/DocmanItemCreator.php | +4 | −2 | Go to diff View file |
M | plugins/docman/include/REST/v1/Files/DocmanPOSTFilesRepresentation.php | +4 | −1 | Go to diff View file |
M | plugins/docman/include/REST/v1/Folders/DocmanItemCreatorBuilder.php | +18 | −1 | Go to diff View file |
M | plugins/docman/include/REST/v1/Metadata/CustomMetadataRepresentationRetriever.php | +42 | −0 | Go to diff View file |
A | plugins/docman/include/Upload/Document/DocumentMetadataCreator.php | +74 | −0 | Go to diff View file |
M | plugins/docman/include/Upload/Document/DocumentOngoingUploadDAO.php | +2 | −1 | Go to diff View file |
M | plugins/docman/include/Upload/Document/DocumentToUploadCreator.php | +18 | −4 | Go to diff View file |
M | plugins/docman/phpunit/Metadata/CustomMetadataRepresentationRetrieverTest.php | +114 | −0 | Go to diff View file |
A | plugins/docman/phpunit/Metadata/DocmanMetadataInputValidatorTest.php | +143 | −0 | Go to diff View file |
A | plugins/docman/phpunit/Metadata/DocmanMetadataTypeValueFactoryTest.php | +75 | −0 | Go to diff View file |
A | plugins/docman/phpunit/Metadata/MetadataValueCreatorTest.php | +141 | −0 | Go to diff View file |
A | plugins/docman/phpunit/Metadata/MetadataValueObjectFactoryTest.php | +110 | −0 | Go to diff View file |
M | plugins/docman/phpunit/REST/v1/DocmanItemCreatorTest.php | +6 | −3 | Go to diff View file |
A | plugins/docman/phpunit/Upload/Document/DocumentMetadataCreatorTest.php | +100 | −0 | Go to diff View file |
M | plugins/docman/phpunit/Upload/Document/DocumentToUploadCreatorTest.php | +78 | −11 | Go to diff View file |
M | plugins/docman/phpunit/Upload/Document/DocumentUploadFinisherTest.php | +11 | −9 | Go to diff View file |
M | plugins/docman/tests/rest/Docman/DocmanFilesTest.php | +0 | −1 | Go to diff View file |
M | plugins/docman/tests/rest/Metadata/CustomMetadataTest.php | +110 | −0 | Go to diff View file |