@Path(value="/uploads") public class BulkUploadResource extends RestResource
API_KEY_CLIENT_ID, API_KEY_TOKEN, API_KEY_USER, apiClientId, apiToken, apiUser, AUTHENTICATION_PARAM_NAME, hmacHeader, querySessionId, REMOTE_USER_ID, REMOTE_USER_TOKEN, remoteUserId, remoteUserToken, request, sessionId, WOR_PARTNER_TOKEN, worPartnerToken
Constructor and Description |
---|
BulkUploadResource() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
addPermission(long id,
AccessPermission accessPermission)
Add upload permission
|
BulkUploadInfo |
create(BulkUploadInfo info) |
javax.ws.rs.core.Response |
createEntry(long uploadId,
PartData data) |
javax.ws.rs.core.Response |
deleteEntry(long uploadId,
long entryId) |
javax.ws.rs.core.Response |
deleteEntryAttachment(long uploadId,
long entryId) |
javax.ws.rs.core.Response |
deleteEntrySequence(long uploadId,
long entryId) |
javax.ws.rs.core.Response |
getPartNumbersForUpload(EntryType uploadType,
String token,
int limit)
Retrieves matching part numbers to be linked to entries in a bulk upload
|
javax.ws.rs.core.Response |
getPendingUploads() |
javax.ws.rs.core.Response |
getUploadPermissions(long id)
Retrieves permissions associated with an upload
|
javax.ws.rs.core.Response |
post(InputStream fileInputStream,
String type,
org.glassfish.jersey.media.multipart.FormDataContentDisposition contentDispositionHeader) |
ArrayList<BulkUploadInfo> |
query() |
BulkUploadInfo |
read(long id,
int offset,
int limit)
Retrieves specified bulk upload resource including
|
javax.ws.rs.core.Response |
removePermission(long id,
long permissionId) |
javax.ws.rs.core.Response |
updateEntry(long uploadId,
long entryId,
PartData data) |
BulkUploadInfo |
updateList(long id,
BulkUploadInfo info)
Creates or updates a list of entries that are to be associated with the specified bulk upload
|
javax.ws.rs.core.Response |
updateName(long id,
BulkUploadInfo info) |
javax.ws.rs.core.Response |
updateStatus(long id,
BulkUploadInfo info)
Updates the status of the bulk upload
|
javax.ws.rs.core.Response |
uploadAttachmentFile(long uploadId,
InputStream fileInputStream,
long entryId,
org.glassfish.jersey.media.multipart.FormDataContentDisposition contentDispositionHeader) |
javax.ws.rs.core.Response |
uploadSequenceFile(long uploadId,
InputStream fileInputStream,
long entryId,
org.glassfish.jersey.media.multipart.FormDataContentDisposition contentDispositionHeader) |
addHeaders, getThisServer, getUserId, getUserId, getWebPartner, log, requireUserId, requireUserIdOrWebPartner, requireWebPartner, respond, respond, respond, respond
@GET @Produces(value="application/json") @Path(value="/{id}") public BulkUploadInfo read(@PathParam(value="id") long id, @DefaultValue(value="0") @QueryParam(value="offset") int offset, @DefaultValue(value="50") @QueryParam(value="limit") int limit)
id
- offset
- limit
- @GET @Produces(value="application/json") @Path(value="/partNumbers") public javax.ws.rs.core.Response getPartNumbersForUpload(@QueryParam(value="type") EntryType uploadType, @QueryParam(value="token") String token, @DefaultValue(value="8") @QueryParam(value="limit") int limit)
@GET @Produces(value="application/json") @Path(value="/{id}/permissions") public javax.ws.rs.core.Response getUploadPermissions(@PathParam(value="id") long id)
id
- unique identifier for the upload@POST @Path(value="/{id}/permissions") public javax.ws.rs.core.Response addPermission(@PathParam(value="id") long id, AccessPermission accessPermission)
id
- unique identifier for the uploadaccessPermission
- model object for permissions applied to upload@DELETE @Path(value="/{id}/permissions/{pid}") public javax.ws.rs.core.Response removePermission(@PathParam(value="id") long id, @PathParam(value="pid") long permissionId)
id
- permissionId
- @POST @Path(value="/{id}/sequence") @Consumes(value="multipart/form-data") @Produces(value="application/json") public javax.ws.rs.core.Response uploadSequenceFile(@PathParam(value="id") long uploadId, InputStream fileInputStream, long entryId, org.glassfish.jersey.media.multipart.FormDataContentDisposition contentDispositionHeader)
@POST @Path(value="/{id}/attachment") @Consumes(value="multipart/form-data") @Produces(value="application/json") public javax.ws.rs.core.Response uploadAttachmentFile(@PathParam(value="id") long uploadId, InputStream fileInputStream, long entryId, org.glassfish.jersey.media.multipart.FormDataContentDisposition contentDispositionHeader)
@PUT @Produces(value="application/json") @Path(value="/{id}") public BulkUploadInfo updateList(@PathParam(value="id") long id, BulkUploadInfo info)
id
- info
- @GET @Produces(value="application/json") @Path(value="/pending") public javax.ws.rs.core.Response getPendingUploads()
@PUT @Produces(value="application/json") @Path(value="/{id}/name") public javax.ws.rs.core.Response updateName(@PathParam(value="id") long id, BulkUploadInfo info)
id
- info
- @PUT @Produces(value="application/json") @Path(value="/{id}/status") public javax.ws.rs.core.Response updateStatus(@PathParam(value="id") long id, BulkUploadInfo info)
id
- unique identifier of bulk upload whose status is to be updatedinfo
- @PUT @Produces(value="application/json") @Path(value="/{id}/entry") public javax.ws.rs.core.Response createEntry(@PathParam(value="id") long uploadId, PartData data)
uploadId
- data
- @POST @Produces(value="application/json") @Path(value="/{id}/entry/{entryId}") public javax.ws.rs.core.Response updateEntry(@PathParam(value="id") long uploadId, @PathParam(value="entryId") long entryId, PartData data)
uploadId
- entryId
- data
- @PUT @Produces(value="application/json") public BulkUploadInfo create(BulkUploadInfo info)
info
- @GET @Produces(value="application/json") public ArrayList<BulkUploadInfo> query()
@POST @Path(value="file") @Consumes(value="multipart/form-data") @Produces(value="application/json") public javax.ws.rs.core.Response post(InputStream fileInputStream, String type, org.glassfish.jersey.media.multipart.FormDataContentDisposition contentDispositionHeader)
@DELETE @Produces(value="application/json") @Path(value="/{id}/entry/{entryId}") public javax.ws.rs.core.Response deleteEntry(@PathParam(value="id") long uploadId, @PathParam(value="entryId") long entryId)
@DELETE @Produces(value="application/json") @Path(value="/{id}/entry/{entryId}/sequence") public javax.ws.rs.core.Response deleteEntrySequence(@PathParam(value="id") long uploadId, @PathParam(value="entryId") long entryId)
uploadId
- entryId
- @DELETE @Produces(value="application/json") @Path(value="/{id}/entry/{entryId}/attachment") public javax.ws.rs.core.Response deleteEntryAttachment(@PathParam(value="id") long uploadId, @PathParam(value="entryId") long entryId)
uploadId
- entryId
- Copyright © 2017. All rights reserved.