stable

Clone or download

Read-only

Add service level permissions for the document manager

Similarly to 0fe405a3f7035bbf4e2b85ad1726ab5bde37ef5a, a new project level route /porjects/:id/docman_service is introduced. In addition to the service level permissions, this new route also have information about the root item of the document manager in the project. This information is also currently given in the additional_informations key of of the Project representation. This raise concerns about performances and usability as the user as no way to know what's will be added into this key. A breaking change will be introduced to remove the docman informations from the additional_informations key and resolve those concerns. Part of story #13654: have detailed permissions in REST API Change-Id: I0de94addaf7590e413ffa7f7427e64a26e65f894

Modified Files

Name
M plugins/docman/include/REST/ResourcesInjector.php +18 −2 Go to diff View file
R plugins/docman/include/REST/v1/ProjectResource.php Go to diff View file
A plugins/docman/include/REST/v1/Service/DocmanServicePermissionsForGroupsBuilder.php +72 −0 Go to diff View file
A plugins/docman/include/REST/v1/Service/DocmanServicePermissionsForGroupsRepresentation.php +39 −0 Go to diff View file
A plugins/docman/include/REST/v1/Service/DocmanServiceRepresentation.php +64 −0 Go to diff View file
A plugins/docman/include/REST/v1/Service/DocmanServiceRepresentationBuilder.php +75 −0 Go to diff View file
A plugins/docman/include/REST/v1/Service/DocmanServiceResource.php +119 −0 Go to diff View file
M plugins/docman/include/docmanPlugin.class.php +7 −0 Go to diff View file
A plugins/docman/phpunit/REST/ResourcesInjectorTest.php +54 −0 Go to diff View file
A plugins/docman/phpunit/REST/v1/Service/DocmanServicePermissionsForGroupsBuilderTest.php +116 −0 Go to diff View file
A plugins/docman/phpunit/REST/v1/Service/DocmanServiceRepresentationBuilderTest.php +119 −0 Go to diff View file
A plugins/docman/tests/rest/Docman/DocmanProjectServiceTest.php +56 −0 Go to diff View file