Peter Dietz
888921d68a
Add back service.update after altering object to fire events
2015-09-18 00:27:01 -04: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
9573bb4529
Remaining refactor of REST API methods to use DSpace Services
...
REST compiles now. However, DSpace still doesn't boot, so its hard to verify
2015-09-11 15:42:50 -04:00
KevinVdV
54222f3c1d
DSpace refactored service api
2015-08-19 11:54:32 +02:00
Ivan Masár
3dc71439b0
fix typos in method signatures
2015-01-16 16:31:46 +01:00
Peter Dietz
8aeeffc4ac
DS-1976 Don't list private items in new REST endpoints
...
Private items are listable to admin, not to other users
These are new endpoints from REST CRUD
2014-11-05 13:17:22 -05:00
Peter Dietz
cbd595e782
REST writeStats to reuse existing context
2014-10-21 10:17:06 -04:00
Peter Dietz
50a2b54ded
REST collections resource to use dspace-api to do limit/offset
2014-10-19 01:04:01 -04: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
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
Peter Dietz
0725215d06
remove html output from rest
2014-07-03 15:38:51 -04:00
Anja Le Blanc
f5027c3bcb
Added usage events for collections view and communities view
2013-10-28 15:29:30 +00:00
Peter Dietz
5cbe8f16b0
Don't expand collections.all list
2013-10-21 18:12:27 -04:00
Peter Dietz
96809b7770
Fix collections.all paging bug
2013-10-21 18:11:56 -04:00
Peter Dietz
4f684e25ad
Make context's static, and autoCommit for remainders
2013-10-21 18:09:41 -04:00
Peter Dietz
98ee886687
Add REST support for limit / offset to page through comm.collections and collection.items, and item list
2013-10-18 13:04:51 -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
cb4268bb45
Create a base DSO class that others extend, to DRY up some code...
2013-10-07 15:36:57 -04:00
Peter Dietz
905ae72c87
Do authorization checks for collections, items, and bitstreams
2013-10-06 14:30:28 -04:00
Peter Dietz
4cb6d2e02b
Fix adding subComms, subColls to a Community. Add ?expand=all
2013-09-29 11:41:12 -04:00
Peter Dietz
b01c56fb36
Use contextPath to link out
2013-09-19 16:20:30 -04:00
Peter Dietz
6ac5842e0a
Add dspace-rest, using Jersey, light support for Collection / Community
2013-09-19 13:35:40 -04:00