Commit Graph

27 Commits

Author SHA1 Message Date
Arnaud de Bossoreille
cb34855f20 DS-2831 connections cleanup, context reuse (master) 2015-10-29 13:51:06 +01:00
KevinVdV
8c0062354e [DS-2701-rest-api-fixes] Small bugfixes concerning comparing of objects, missing update call & ConcurrentModificationException 2015-09-18 12:28:09 +02:00
Peter Dietz
dc4b91effd Change REST ID's to string, we can look them up with findByIdOrLegacyId 2015-09-18 00:25:13 -04:00
Peter Dietz
59652bf407 partial refactor of DSpace-REST to use DSpace-Services refactor
Breaking changes include some integer ID is now UUID ID.
2015-09-11 15:42:50 -04:00
KevinVdV
54222f3c1d DSpace refactored service api 2015-08-19 11:54:32 +02:00
helix84
d3fe868f31 Merge pull request #895 from ctu-developers/DS-2511
DS-2511: Repaired resource policy endpoints.
2015-05-14 16:18:16 +02:00
Ivan Masár
bc28df4093 typos 2015-03-27 12:10:25 +01:00
ctu-developers
d76b7ba63e Repaired resource policy endpoints.
Repaired all endpoints in REST api. Added XML annotation in
ResourcePolicy. Repaired bug in Bitstream with expand field.
2015-03-23 17:04:10 +01:00
Ivan Masár
3dc71439b0 fix typos in method signatures 2015-01-16 16:31:46 +01:00
Ivan Masár
0571386370 fix typos and comments 2015-01-16 13:05:41 +01:00
Peter Dietz
cbd595e782 REST writeStats to reuse existing context 2014-10-21 10:17:06 -04:00
ctu-developers
0759e0af3b Repaired little write bug. 2014-10-13 12:05:21 +02:00
ctu-developers
29b1d28566 Added method for proccessing finally statements.
Resource.writeStats should not throw exception, because it is not
important to abort method by writings statistic. But must abort own
context.
Added method for processing all finally statements.
Moved return to end of methods.
Repaired some bugs.
2014-10-13 11:39:09 +02:00
ctu-developers
57e72004be Repaired finally statements and community.
Repaired all finally statements. It was rewrited from context.abort to
if condition with check if context is valid. In community was changed
back name of subcommunities.
2014-10-09 21:40:47 +02:00
Peter Dietz
6b83de1b51 Remove extra context.aborts in various rest helpers 2014-10-06 20:41:20 -04:00
Peter Dietz
1c6ab765ba Change /rest/bitstreams/:id/retrieve to @GET, post didn't make sense to me 2014-10-06 20:40:34 -04:00
Peter Dietz
9477551d37 Shrink writeStats signature, DSO type constant unneccessary 2014-10-06 17:58:15 -04:00
ctu-developers
52469fb9a1 Formated source and better method for finding item.
All source is formated by DSpace code formater. Better method for
searching item by metadata field. Changed to SQL select, because is more
faster.
2014-10-02 12:56:44 +02:00
ctu-developers
ca7f6b4dd9 Added finally statements.
Added finally statements with context.abort() to cover all exception.
2014-09-30 17:45:36 +02:00
ctu-developers
eb399686c5 New REST api
New REST api with CRUD operations over community, collections, items,
bitstreams.
2014-09-29 19:36:12 +02:00
Peter Dietz
859e69285f DS-1986 Get new context each time, close in finally, for all REST methods 2014-07-03 15:39:12 -04:00
Anja Le Blanc
6d8417c9af Added statistics recording to API
(required changes in DSpace API!)

Also some changes to make REST API work better with XML output.
Added Checksum and sequenceId to Bitstream.
2013-10-23 14:17:01 +01:00
Peter Dietz
4f684e25ad Make context's static, and autoCommit for remainders 2013-10-21 18:09:41 -04:00
Peter Dietz
987e835e5e Each of these "READ" endpoints should "autocommit", which prevents transaction abort issues (atleast with postgres).
If you got an error, (i.e. negative limit is bad), then PG will barf always.
current transaction is aborted, commands ignored until end of transaction block
2013-10-18 12:50:34 -04:00
Peter Dietz
2e678c11f1 Add DSpace license to code header 2013-10-07 21:50:46 -04:00
Peter Dietz
905ae72c87 Do authorization checks for collections, items, and bitstreams 2013-10-06 14:30:28 -04:00
Peter Dietz
a5a7efe9a4 Item exposes its bitstreams 2013-10-04 08:08:00 -04:00