Commit Graph

3385 Commits

Author SHA1 Message Date
Mykhaylo Boychuk
fbdee987c9 added the following unit test:
- findOneAccessGrantToAdminTest()
        - findOneAccessGrantToSomeOneUserTest()
2019-12-03 12:53:43 +01:00
Raf Ponsaerts
bf3796874d Fixed the bug in the PUT endpoint for Relationships 2019-12-03 10:20:23 +01:00
Raf Ponsaerts
3c917619f3 Made a test to prove that the PUT on Relationships with JSON fails 2019-12-03 09:50:57 +01:00
Mykhaylo Boychuk
27735d7126 created:
class:
        - resourcePolicyRestPermissionEvaluatorPlugin
    method:
       - boolean hasDSpasePermission(Authentication authentication, Serializable targetId, String targetType, DSpaceRestPermission permission)
       - boolean isMyResoursePolicy(Context context, EPerson eperson, Integer id)  - this one checks if the resourcePolicy, that I'm searching, is of the authenticated person
       - ResourcePolicy findOneById (DAO)
2019-12-02 16:15:32 +01:00
Raf Ponsaerts
daeab74815 Added proper authorization handling for the ExternalSources item create endpoint 2019-12-02 12:07:49 +01:00
Raf Ponsaerts
5b16e21980 Merge branch 'feature-external-sources-entities-post' of https://github.com/atmire/DSpace into feature-external-sources-entities-post 2019-12-02 11:27:25 +01:00
Raf Ponsaerts
664c970da9 Fixed minor bug in the UriList parsing and added IT tests 2019-12-02 11:27:12 +01:00
Mykhaylo Boychuk
5eff3c6295 I added the following unit tests:
- findOneForbiddenTest()
- searchResoucesPolicyByEPersonUuidForbiddenTest()
- searchResoucesPoliciesByResourceUuidForbiddenTest()
- searchResoucesPolicyByGroupUuidForbiddenTest()
2019-12-01 11:49:27 +01:00
Marie Verdonck
b781ae5560 [DS-4389] (Improving patch system framework) Rename of package since there are no more factories 2019-11-29 15:47:58 +01:00
Kevin Van de Velde
4c9a30bb14 [DS 4287] Refactoring the IndexableObject & SolrServiceImpl to become more expandable 2019-11-29 14:26:50 +01:00
Mykhaylo Boychuk
3c7d59a8a4 DS-4398 fix checkstyle issues 2019-11-29 11:44:03 +01:00
Mykhaylo Boychuk
b236b8e487 Merge branch 'master' of https://github.com/DSpace/DSpace into resourcepolicies
# Conflicts:
#	dspace-server-webapp/src/main/java/org/dspace/app/rest/repository/ResourcePolicyRestRepository.java
2019-11-28 17:33:18 +01:00
Mykhaylo Boychuk
f0eb9cb3d9 DS-4398 initial implementation of the resource policies endpoint
DONE
- sync implementation of findAll with the contract
- add ITs for implemented methods

TODO
- enforce security in access resource policy details
- method to create a resource policy
- method to patch a resource policy
2019-11-28 13:20:43 +01:00
Kevin Van de Velde
219b086979 Merge branch 'master' into DS-4317_bundles-in-REST-continued 2019-11-28 10:39:25 +01:00
Kevin Van de Velde
2bcd6013eb [DS 4389] Improving patch system framework: Fixing merge issues with master 2019-11-28 10:33:32 +01:00
Kevin Van de Velde
62461febe1 Merge branch 'master' into DS-4389-improving-patch-system-framework 2019-11-27 14:55:16 +01:00
Kevin Van de Velde
5133266cad Fixing a merge issue 2019-11-27 12:45:34 +01:00
Kevin Van de Velde
75b508d4ea Merge branch 'master' into feature-external-sources-entities-post 2019-11-27 11:46:47 +01:00
Tim Donohue
b2657cdc4e Merge pull request #2577 from atmire/w2p-65267_delete-in-relationshipservice
Delete item with relationships
2019-11-26 11:06:00 -06:00
Tim Donohue
f4d51cc905 Merge pull request #2560 from atmire/feature-external-sources
Feature: external sources
2019-11-26 10:51:58 -06:00
Peter Nijs
0fd4831466 Merge branch 'w2p-65267_delete-in-relationshipservice' into w2p-66086_delete-relationships-relationshiptype-copyleft-copyright-variables 2019-11-26 17:33:40 +01:00
Peter Nijs
736d30f48a Merge remote-tracking branch 'dspace/master' into w2p-65267_delete-in-relationshipservice 2019-11-26 17:28:22 +01:00
jonas-atmire
4c011a7918 Removal of unused variable 2019-11-26 15:56:54 +01:00
Raf Ponsaerts
3471498018 Small improvements to the external sources feature 2019-11-26 14:03:28 +01:00
Raf Ponsaerts
92e8f98216 Merge branch 'feature-external-sources' into feature-external-sources-entities-post 2019-11-26 13:30:47 +01:00
Raf Ponsaerts
3596913505 Fixed checkstyle and removed unused variables in ExternalSourceRestRepository 2019-11-26 13:29:46 +01:00
Raf Ponsaerts
3dac3e8911 Merge branch 'feature-external-sources' into feature-external-sources-entities-post 2019-11-26 13:27:03 +01:00
Raf Ponsaerts
031ceffeaa Refactored javadoc on MetadataValue, refactored package, altered property in external-services.xml 2019-11-26 13:26:35 +01:00
Raf Ponsaerts
196894e46e Refactored Mockmetadata to MetadataValueDTO and fixed checkstyle 2019-11-26 13:20:36 +01:00
Raf Ponsaerts
c85f88d737 Merge branch 'feature-external-sources' into feature-external-sources-entities-post
Conflicts:
	dspace-server-webapp/src/main/java/org/dspace/app/rest/repository/ItemRestRepository.java
2019-11-26 13:20:03 +01:00
Raf Ponsaerts
7a935f4f8b Integrating projections into feature-external-sources 2019-11-26 10:48:14 +01:00
Peter Nijs
076e3c17d3 Merge remote-tracking branch 'dspace/master' into w2p-65257_Collection-item-template-crud manual fixes 2019-11-26 10:16:12 +01:00
Peter Nijs
ef3d3a4158 Merge remote-tracking branch 'dspace/master' into w2p-65257_Collection-item-template-crud 2019-11-26 10:14:52 +01:00
Raf Ponsaerts
070480418b Merge remote-tracking branch 'dspace/master' into feature-external-sources 2019-11-26 09:29:07 +01:00
Raf Ponsaerts
57894bb8b6 [Task 66453] applied feedback to the variable naming and properties for external sources feature 2019-11-26 09:27:03 +01:00
Raf Ponsaerts
7c7aedfed4 Refactored the findOne and findAll methods to work through the RestResourceController instead of a custom one 2019-11-25 11:34:26 +01:00
Chris Wilper
ff3930a734 Merge branch 'master' into DS-3533_Projections 2019-11-24 12:51:33 -05:00
Chris Wilper
ccf047cd63 DS-4391 Get modified date from the right store
This also tightens up the contract and improves javadocs a bit,
so callers know what to expect.
2019-11-23 07:18:39 -05:00
Giuseppe Digilio
8ce9c2d98f Chack if authentication cookie is present in Authentication Data 2019-11-22 17:07:36 +01:00
Giuseppe Digilio
85e253bb9f Added shibboleth authentication filter 2019-11-22 17:07:29 +01:00
Giuseppe Digilio
705c887998 Added login filter to /api/authn/shibboleth 2019-11-22 17:07:23 +01:00
Giuseppe Digilio
abbf3f7361 Handle redirect to client after shibboleth authentication succeded 2019-11-22 17:07:13 +01:00
Giuseppe Digilio
13482c2eb7 Added a cookie with JWT to response 2019-11-22 17:07:00 +01:00
Raf Ponsaerts
e87dd5a8b7 [DS-4390] fixed test failure and cleaned up ScriptRestRepository from DSpaceRunnable logic, moved to ScriptService instead 2019-11-22 14:15:26 +01:00
Raf Ponsaerts
02d98b2760 [DS-4390] undid MultipartFileException 2019-11-22 13:35:33 +01:00
Peter Nijs
76347b0cf0 66458: Use shared UUID regex instead of object's own one 2019-11-22 13:27:01 +01:00
Raf Ponsaerts
9be226e6d3 [DS-4390] cleanup retrieval of DSpaceRunnable by name and cleanup in ScriptLauncher.java 2019-11-22 13:24:46 +01:00
Raf Ponsaerts
71b1360cbf [DS-4390] rewrote ScriptLauncher to include scripts from other config to be checked as well as fixing tests 2019-11-22 11:06:12 +01:00
Raf Ponsaerts
4e0b97fb88 Processing feedback on external sources PR 2019-11-22 09:44:46 +01:00
Peter Nijs
4cc7cec563 Merge remote-tracking branch 'dspace/master' into w2p-65257_Collection-item-template-crud 2019-11-22 09:43:35 +01:00