@@ -56,6 +56,7 @@ public class IdsService {
56
56
* datafileIds specified along with a sessionId. If two level storage is not
57
57
* in use this has no effect.
58
58
*
59
+ * @title archive
59
60
* @param sessionId A sessionId returned by a call to the icat server.
60
61
* @param investigationIds If present, a comma separated list of investigation id values
61
62
* @param datasetIds If present, a comma separated list of data set id values or
@@ -66,7 +67,6 @@ public class IdsService {
66
67
* @throws InsufficientPrivilegesException
67
68
* @throws InternalException
68
69
* @throws NotFoundException
69
- * @summary archive
70
70
* @statuscode 200 To indicate success
71
71
*/
72
72
@ POST
@@ -84,6 +84,7 @@ public void archive(@Context HttpServletRequest request, @FormParam("sessionId")
84
84
* Delete data specified by the investigationIds, datasetIds and datafileIds
85
85
* specified along with a sessionId.
86
86
*
87
+ * @title delete
87
88
* @param sessionId A sessionId returned by a call to the icat server.
88
89
* @param investigationIds If present, a comma separated list of investigation id values
89
90
* @param datasetIds If present, a comma separated list of data set id values or
@@ -95,7 +96,6 @@ public void archive(@Context HttpServletRequest request, @FormParam("sessionId")
95
96
* @throws NotFoundException
96
97
* @throws InternalException
97
98
* @throws DataNotOnlineException
98
- * @summary delete
99
99
* @statuscode 200 To indicate success
100
100
*/
101
101
@ DELETE
@@ -115,8 +115,8 @@ private void exit() {
115
115
/**
116
116
* Return the version of the server
117
117
*
118
+ * @title Version
118
119
* @return json string of the form: <samp>{"version":"4.4.0"}</samp>
119
- * @summary Version
120
120
*/
121
121
@ GET
122
122
@ Path ("version" )
@@ -135,6 +135,7 @@ public String getVersion() {
135
135
* of which may be omitted, along with a sessionId if the preparedId is not
136
136
* set. If preparedId is set the compress and zip arguments are not used.
137
137
*
138
+ * @title getData
138
139
* @param preparedId A valid preparedId returned by a call to prepareData
139
140
* @param sessionId A sessionId returned by a call to the icat server.
140
141
* @param investigationIds A comma separated list of investigation id values.
@@ -158,7 +159,6 @@ public String getVersion() {
158
159
* @throws InternalException
159
160
* @throws InsufficientPrivilegesException
160
161
* @throws DataNotOnlineException
161
- * @summary getData
162
162
* @statuscode 200 To indicate success
163
163
*/
164
164
@ GET
@@ -198,6 +198,7 @@ public Response getData(@Context HttpServletRequest request, @QueryParam("prepar
198
198
* and datafileIds specified along with a sessionId if the preparedId is not
199
199
* set.
200
200
*
201
+ * @title getDatafileIds
201
202
* @param preparedId A valid preparedId returned by a call to prepareData
202
203
* @param sessionId A sessionId returned by a call to the icat server.
203
204
* @param investigationIds A comma separated list of investigation id values.
@@ -208,7 +209,6 @@ public Response getData(@Context HttpServletRequest request, @QueryParam("prepar
208
209
* @throws InternalException
209
210
* @throws NotFoundException
210
211
* @throws InsufficientPrivilegesException
211
- * @summary getDatafileIds
212
212
* @statuscode 200 To indicate success
213
213
*/
214
214
@ GET
@@ -248,6 +248,7 @@ public String getIcatUrl(@Context HttpServletRequest request) {
248
248
* the file system where the IDS is storing data. Only read access to the
249
249
* file is granted.
250
250
*
251
+ * @title getLink
251
252
* @param sessionId A valid ICAT session ID
252
253
* @param datafileId the id of a data file
253
254
* @param username the name of the user who will will be granted access to the
@@ -259,7 +260,6 @@ public String getIcatUrl(@Context HttpServletRequest request) {
259
260
* @throws InternalException
260
261
* @throws NotFoundException
261
262
* @throws DataNotOnlineException
262
- * @summary getLink
263
263
* @statuscode 200 To indicate success
264
264
*/
265
265
@ POST
@@ -278,12 +278,12 @@ public String getLink(@Context HttpServletRequest request, @FormParam("sessionId
278
278
* Obtain detailed information about what the ids is doing. You need to be
279
279
* privileged to use this call.
280
280
*
281
+ * @title getServiceStatus
281
282
* @param sessionId A valid ICAT session ID of a user in the IDS rootUserNames
282
283
* set.
283
284
* @return a json string.
284
285
* @throws InternalException
285
286
* @throws InsufficientPrivilegesException
286
- * @summary getServiceStatus
287
287
* @statuscode 200 To indicate success
288
288
*/
289
289
@ GET
@@ -298,6 +298,7 @@ public String getServiceStatus(@Context HttpServletRequest request, @QueryParam(
298
298
* Return the total size of all the data files specified by the
299
299
* investigationIds, datasetIds and datafileIds along with a sessionId.
300
300
*
301
+ * @title getSize
301
302
* @param preparedId A valid preparedId returned by a call to prepareData
302
303
* @param sessionId A sessionId returned by a call to the icat server.
303
304
* @param investigationIds If present, a comma separated list of investigation id values
@@ -309,7 +310,6 @@ public String getServiceStatus(@Context HttpServletRequest request, @QueryParam(
309
310
* @throws NotFoundException
310
311
* @throws InsufficientPrivilegesException
311
312
* @throws InternalException
312
- * @summary getSize
313
313
* @statuscode 200 To indicate success
314
314
*/
315
315
@ GET
@@ -330,6 +330,7 @@ public long getSize(@Context HttpServletRequest request, @QueryParam("preparedId
330
330
* Return the archive status of the data files specified by the
331
331
* investigationIds, datasetIds and datafileIds along with a sessionId.
332
332
*
333
+ * @title getStatus
333
334
* @param preparedId A valid preparedId returned by a call to prepareData
334
335
* @param sessionId A sessionId returned by a call to the icat server. If the
335
336
* sessionId is omitted or null the ids reader account will be
@@ -347,7 +348,6 @@ public long getSize(@Context HttpServletRequest request, @QueryParam("preparedId
347
348
* @throws NotFoundException
348
349
* @throws InsufficientPrivilegesException
349
350
* @throws InternalException
350
- * @summary getStatus
351
351
* @statuscode 200 To indicate success
352
352
*/
353
353
@ GET
@@ -382,12 +382,12 @@ private void init() {
382
382
* the end successfully will then go through all those it did not look at
383
383
* because it did not start at the beginning.
384
384
*
385
+ * @title isPrepared
385
386
* @param preparedId A valid preparedId returned by a call to prepareData
386
387
* @return true if all the data files are ready to be downloaded else false.
387
388
* @throws BadRequestException
388
389
* @throws NotFoundException
389
390
* @throws InternalException
390
- * @summary isPrepared
391
391
* @statuscode 200 To indicate success
392
392
*/
393
393
@ GET
@@ -402,8 +402,8 @@ public boolean isPrepared(@Context HttpServletRequest request, @QueryParam("prep
402
402
* An ids server can be configured to be read only. This returns the
403
403
* readOnly status of the server.
404
404
*
405
+ * @title isReadOnly
405
406
* @return true if readonly, else false
406
- * @summary isReadOnly
407
407
* @statuscode 200 To indicate success
408
408
*/
409
409
@ GET
@@ -417,8 +417,8 @@ public boolean isReadOnly(@Context HttpServletRequest request) {
417
417
* An ids server can be configured to support one or two levels of data
418
418
* storage. This returns the twoLevel status of the server.
419
419
*
420
+ * @title isTwoLevel
420
421
* @return true if twoLevel, else false
421
- * @summary isTwoLevel
422
422
* @statuscode 200 To indicate success
423
423
*/
424
424
@ GET
@@ -431,8 +431,8 @@ public boolean isTwoLevel(@Context HttpServletRequest request) {
431
431
/**
432
432
* Should return "IdsOK"
433
433
*
434
+ * @title ping
434
435
* @return "IdsOK"
435
- * @summary ping
436
436
* @statuscode 200 To indicate success
437
437
*/
438
438
@ GET
@@ -450,6 +450,7 @@ public String ping() {
450
450
* by the investigationIds, datasetIds and datafileIds, any of which may be
451
451
* omitted, along with a sessionId.
452
452
*
453
+ * @title prepareData
453
454
* @param sessionId A sessionId returned by a call to the icat server.
454
455
* @param investigationIds A comma separated list of investigation id values.
455
456
* @param datasetIds A comma separated list of data set id values.
@@ -466,7 +467,6 @@ public String ping() {
466
467
* @throws InsufficientPrivilegesException
467
468
* @throws NotFoundException
468
469
* @throws InternalException
469
- * @summary prepareData
470
470
* @statuscode 200 To indicate success
471
471
*/
472
472
@ POST
@@ -485,6 +485,7 @@ public String prepareData(@Context HttpServletRequest request, @FormParam("sessi
485
485
/**
486
486
* Stores a data file
487
487
*
488
+ * @title put
488
489
* @param body The contents of the file to be stored
489
490
* @param sessionId A sessionId returned by a call to the icat server.
490
491
* @param name A name to assign to the data file
@@ -503,7 +504,6 @@ public String prepareData(@Context HttpServletRequest request, @FormParam("sessi
503
504
* @throws InsufficientPrivilegesException
504
505
* @throws NotImplementedException
505
506
* @throws DataNotOnlineException
506
- * @summary put
507
507
* @statuscode 201 When object successfully created
508
508
*/
509
509
@ PUT
@@ -528,6 +528,7 @@ public Response put(@Context HttpServletRequest request, InputStream body,
528
528
* two fields will be removed shortly as they are only required by the old
529
529
* (GWT based) topcat.
530
530
*
531
+ * @title putAsPost
531
532
* @param request
532
533
* @return a json object with attributes of "id", "checksum", "location" and
533
534
* "size";
@@ -537,7 +538,6 @@ public Response put(@Context HttpServletRequest request, InputStream body,
537
538
* @throws InsufficientPrivilegesException
538
539
* @throws NotImplementedException
539
540
* @throws DataNotOnlineException
540
- * @summary putAsPost
541
541
* @statuscode 201 When object successfully created
542
542
*/
543
543
@ POST
@@ -615,6 +615,7 @@ public Response putAsPost(@Context HttpServletRequest request) throws BadRequest
615
615
* You must either specify a preparedId or a sessionId. If preparedId is
616
616
* specified then investigationIds, datasetIds and datafileIds are not used.
617
617
*
618
+ * @title reset
618
619
* @param preparedId A valid preparedId returned by a call to prepareData
619
620
* @param sessionId A sessionId returned by a call to the icat server.
620
621
* @param investigationIds A comma separated list of investigation id values.
@@ -625,7 +626,6 @@ public Response putAsPost(@Context HttpServletRequest request) throws BadRequest
625
626
* @throws NotFoundException
626
627
* @throws InternalException
627
628
* @throws InsufficientPrivilegesException
628
- * @summary reset
629
629
* @statuscode 200 To indicate success
630
630
*/
631
631
@ POST
@@ -647,6 +647,7 @@ public void reset(@Context HttpServletRequest request, @FormParam("preparedId")
647
647
* datafileIds specified along with a sessionId. If two level storage is not
648
648
* in use this has no effect.
649
649
*
650
+ * @title restore
650
651
* @param sessionId A sessionId returned by a call to the icat server.
651
652
* @param investigationIds If present, a comma separated list of investigation id values
652
653
* @param datasetIds If present, a comma separated list of data set id values or
@@ -657,7 +658,6 @@ public void reset(@Context HttpServletRequest request, @FormParam("preparedId")
657
658
* @throws InsufficientPrivilegesException
658
659
* @throws InternalException
659
660
* @throws NotFoundException
660
- * @summary restore
661
661
* @statuscode 200 To indicate success
662
662
*/
663
663
@ POST
@@ -678,6 +678,7 @@ public void restore(@Context HttpServletRequest request, @FormParam("sessionId")
678
678
* storage. If two level storage is not in use this has no
679
679
* effect.
680
680
*
681
+ * @title write
681
682
* @param sessionId A sessionId returned by a call to the icat server.
682
683
* @param investigationIds If present, a comma separated list of investigation id values
683
684
* @param datasetIds If present, a comma separated list of data set id values or
@@ -688,7 +689,6 @@ public void restore(@Context HttpServletRequest request, @FormParam("sessionId")
688
689
* @throws InsufficientPrivilegesException
689
690
* @throws InternalException
690
691
* @throws NotFoundException
691
- * @summary write
692
692
* @statuscode 200 To indicate success
693
693
*/
694
694
@ POST
0 commit comments