@Path(value="/web") public class WebResource 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 |
|---|
WebResource() |
| Modifier and Type | Method and Description |
|---|---|
List<AttachmentInfo> |
getAttachments(long partnerId,
long partId) |
javax.ws.rs.core.Response |
getStatistics(long partnerId,
long entryId) |
javax.ws.rs.core.Response |
getWebEntries(boolean download,
int limit,
int offset) |
javax.ws.rs.core.Response |
getWebEntry(long partnerId,
long entryId) |
javax.ws.rs.core.Response |
getWebEntry(String entryId) |
javax.ws.rs.core.Response |
getWebEntrySequence(long partnerId,
String entryId) |
javax.ws.rs.core.Response |
getWebEntryTooltip(long partnerId,
long entryId) |
javax.ws.rs.core.Response |
query(boolean approvedOnly)
Retrieves information on other ice instances that is in a web of registries configuration
with this instance; also know as registry partners
|
javax.ws.rs.core.Response |
remoteWebPartnerRemoveRequest(String worToken,
String url) |
javax.ws.rs.core.Response |
removeWebPartner(String url) |
javax.ws.rs.core.Response |
searchWebEntries(SearchQuery query,
boolean includeLocal) |
javax.ws.rs.core.Response |
updateWebPartner(String url,
RegistryPartner partner) |
addHeaders, getThisServer, getUserId, getUserId, getWebPartner, log, requireUserId, requireUserIdOrWebPartner, requireWebPartner, respond, respond, respond, respond@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response query(@DefaultValue(value="true") @QueryParam(value="approved_only")
boolean approvedOnly)
approvedOnly - if true, only instances that have been approved are returned; defaults to true@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)
@GET
@Produces(value="application/json")
@Path(value="/{id}/entries/{entryId}")
public javax.ws.rs.core.Response getWebEntry(@PathParam(value="id")
long partnerId,
@PathParam(value="entryId")
long entryId)
@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}/statistics")
public javax.ws.rs.core.Response getStatistics(@PathParam(value="id")
long partnerId,
@PathParam(value="entryId")
long entryId)
@GET
@Produces(value="application/json")
@Path(value="/{id}/entries/{entryId}/sequence")
public javax.ws.rs.core.Response getWebEntrySequence(@PathParam(value="id")
long partnerId,
@PathParam(value="entryId")
String entryId)
@DELETE
@Path(value="/partner/remote")
public javax.ws.rs.core.Response remoteWebPartnerRemoveRequest(@HeaderParam(value="X-ICE-WOR-Token")
String worToken,
@QueryParam(value="url")
String url)
@PUT
@Path(value="/partner/{url}")
public javax.ws.rs.core.Response updateWebPartner(@PathParam(value="url")
String url,
RegistryPartner partner)
@DELETE
@Path(value="/partner/{url}")
public javax.ws.rs.core.Response removeWebPartner(@PathParam(value="url")
String url)
@GET
@Path(value="/entries")
public javax.ws.rs.core.Response getWebEntries(@QueryParam(value="download")
boolean download,
@QueryParam(value="limit")
int limit,
@QueryParam(value="offset")
int offset)
@POST @Produces(value="application/json") @Consumes(value="application/json") @Path(value="/entries") public javax.ws.rs.core.Response searchWebEntries(SearchQuery query, @DefaultValue(value="true") @QueryParam(value="includeLocal") boolean includeLocal)
@GET
@Produces(value="application/json")
@Consumes(value="application/json")
@Path(value="/entries/{id}")
public javax.ws.rs.core.Response getWebEntry(@PathParam(value="id")
String entryId)
Copyright © 2017. All rights reserved.