@Path(value="/partners") public class PartnerResource 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 |
|---|
PartnerResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
addNewPartner(RegistryPartner partner)
Adds a remote instance as a registry partner.
|
List<AttachmentInfo> |
getAttachments(long partnerId,
long partId) |
javax.ws.rs.core.Response |
getPublicFolderEntries(long remoteId,
long folderId,
int offset,
int limit,
String sort,
boolean asc) |
javax.ws.rs.core.Response |
getRemotePartComments(long remoteId,
long partId) |
javax.ws.rs.core.Response |
getRemotePartSamples(long remoteId,
long partId) |
javax.ws.rs.core.Response |
getRemoteUser(long remoteId,
String email) |
javax.ws.rs.core.Response |
getSequence(long remoteId,
long partId) |
javax.ws.rs.core.Response |
getSequenceTraces(long remoteId,
long partId) |
javax.ws.rs.core.Response |
getWebEntries(long partnerId,
int offset,
int limit,
String sort,
boolean asc)
Retrieves entries for specified partner using the specified paging parameters
|
javax.ws.rs.core.Response |
getWebEntryTooltip(long partnerId,
long entryId) |
javax.ws.rs.core.Response |
getWebPartner(String partnerId)
Retrieve details about a specific partner
|
javax.ws.rs.core.Response |
getWebPartners()
Retrieves list of available web partners requested by user or an ICE instance
|
javax.ws.rs.core.Response |
readRemoteUser(long remoteId)
Retrieves available folders from the specified remote ice partner
|
javax.ws.rs.core.Response |
removeWebPartner(String partnerId) |
javax.ws.rs.core.Response |
transferEntries(long remoteId,
EntrySelection entrySelection)
Schedules a task to transfer a list of entries (explicit or context for generating them) to a specified partner
|
javax.ws.rs.core.Response |
updateRemotePartnerAPIKey(RegistryPartner partner)
Request from a remote ICE instance to update it's api key
Verification uses the existing API key.
|
javax.ws.rs.core.Response |
updateWebPartner(long partnerId,
RegistryPartner partner) |
javax.ws.rs.core.Response |
updateWebPartnerAPIKey(long partnerId) |
addHeaders, getThisServer, getUserId, getUserId, getWebPartner, log, requireUserId, requireUserIdOrWebPartner, requireWebPartner, respond, respond, respond, respond@GET
@Path(value="{id}")
public javax.ws.rs.core.Response getWebPartner(@PathParam(value="id")
String partnerId)
partnerId - unique partner identifier (either the database id or the url)@GET public javax.ws.rs.core.Response getWebPartners()
@POST @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response addNewPartner(RegistryPartner partner)
The second is from the admin ui where a partner is manually added to this ice instance.
partner - details about the partner to add@POST
@Path(value="/{id}/entries")
public javax.ws.rs.core.Response transferEntries(@PathParam(value="id")
long remoteId,
EntrySelection entrySelection)
remoteId - unique partner identifierentrySelection - set of entries to transfer or context used to generate entries@GET
@Produces(value="application/json")
@Path(value="/{id}/entries/{entryId}/tooltip")
public javax.ws.rs.core.Response getWebEntryTooltip(@PathParam(value="id")
long partnerId,
@PathParam(value="entryId")
long entryId)
@GET
@Produces(value="application/json")
@Path(value="/{id}/entries/{entryId}/attachments")
public List<AttachmentInfo> getAttachments(@PathParam(value="id")
long partnerId,
@PathParam(value="entryId")
long partId)
@PUT
@Path(value="/{id}")
public javax.ws.rs.core.Response updateWebPartner(@PathParam(value="id")
long partnerId,
RegistryPartner partner)
@PUT
@Path(value="/{id}/apiKey")
public javax.ws.rs.core.Response updateWebPartnerAPIKey(@PathParam(value="id")
long partnerId)
@PUT public javax.ws.rs.core.Response updateRemotePartnerAPIKey(RegistryPartner partner)
partner - remote partner information (including new api key)@DELETE
@Path(value="/{id}")
public javax.ws.rs.core.Response removeWebPartner(@PathParam(value="id")
String partnerId)
@GET
@Produces(value="application/json")
@Path(value="{id}/available")
public javax.ws.rs.core.Response readRemoteUser(@PathParam(value="id")
long remoteId)
remoteId - unique identifier for remote partner being accessed@GET
@Produces(value="application/json")
@Path(value="{id}/users/{email}")
public javax.ws.rs.core.Response getRemoteUser(@PathParam(value="id")
long remoteId,
@PathParam(value="email")
String email)
@GET
@Produces(value="application/json")
@Path(value="{id}/{entryId}/sequence")
public javax.ws.rs.core.Response getSequence(@PathParam(value="id")
long remoteId,
@PathParam(value="entryId")
long partId)
@GET
@Produces(value="application/json")
@Path(value="{id}/parts/{entryId}/traces")
public javax.ws.rs.core.Response getSequenceTraces(@PathParam(value="id")
long remoteId,
@PathParam(value="entryId")
long partId)
@GET
@Produces(value="application/json")
@Path(value="{id}/folders/{folderId}")
public javax.ws.rs.core.Response getPublicFolderEntries(@PathParam(value="id")
long remoteId,
@PathParam(value="folderId")
long folderId,
@DefaultValue(value="0") @QueryParam(value="offset")
int offset,
@DefaultValue(value="15") @QueryParam(value="limit")
int limit,
@DefaultValue(value="created") @QueryParam(value="sort")
String sort,
@DefaultValue(value="false") @QueryParam(value="asc")
boolean asc)
@GET
@Produces(value="application/json")
@Path(value="/parts/{partId}/samples")
public javax.ws.rs.core.Response getRemotePartSamples(@PathParam(value="id")
long remoteId,
@PathParam(value="partId")
long partId)
@GET
@Produces(value="application/json")
@Path(value="{id}/parts/{partId}/comments")
public javax.ws.rs.core.Response getRemotePartComments(@PathParam(value="id")
long remoteId,
@PathParam(value="partId")
long partId)
@GET
@Produces(value="application/json")
@Path(value="/{id}/entries")
public javax.ws.rs.core.Response getWebEntries(@PathParam(value="id")
long partnerId,
@DefaultValue(value="0") @QueryParam(value="offset")
int offset,
@DefaultValue(value="15") @QueryParam(value="limit")
int limit,
@DefaultValue(value="created") @QueryParam(value="sort")
String sort,
@DefaultValue(value="false") @QueryParam(value="asc")
boolean asc)
partnerId - unique identifier for registry partner whose entries are being retrievedoffset - record retrieve offset paging parameterlimit - maximum number of entries to retrievesort - field to sort onasc - sort orderCopyright © 2017. All rights reserved.