public class LinksResource
extends java.lang.Object
Constructor and Description |
---|
LinksResource(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.Request request,
gov.nasa.pds.registry.service.RegistryService registryService) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
deleteLink(java.lang.String guid)
Deletes the external link with the given global identifier.
|
javax.ws.rs.core.Response |
getLink(java.lang.Integer start,
java.lang.Integer rows)
Retrieves all external links managed by the registry given a set of
filters.
|
gov.nasa.pds.registry.model.ExternalLink |
getLInk(java.lang.String guid)
Retrieves the external link with the given global identifier.
|
protected static java.net.URI |
getLinkUri(gov.nasa.pds.registry.model.ExternalLink link,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
publishLink(gov.nasa.pds.registry.model.ExternalLink link,
java.lang.String packageGuid)
Publishes an external link to the registry.
|
javax.ws.rs.core.Response |
updateLink(java.lang.String guid,
gov.nasa.pds.registry.model.ExternalLink link)
Updates the external link with the given global identifier.
|
javax.ws.rs.core.Response |
updateLinkWithPost(java.lang.String guid,
gov.nasa.pds.registry.model.ExternalLink link)
Updates the external link with the given global identifier.
|
public LinksResource(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, gov.nasa.pds.registry.service.RegistryService registryService)
public javax.ws.rs.core.Response publishLink(gov.nasa.pds.registry.model.ExternalLink link, java.lang.String packageGuid)
link
- to publish to registrypackageGuid
- optional package guid which this registry object is a member ofpublic gov.nasa.pds.registry.model.ExternalLink getLInk(java.lang.String guid)
guid
- globally unique identifier of servicepublic javax.ws.rs.core.Response deleteLink(java.lang.String guid)
guid
- globally unique identifier of linkpublic javax.ws.rs.core.Response updateLink(java.lang.String guid, gov.nasa.pds.registry.model.ExternalLink link)
guid
- globally unique identifier of the servicelink
- updates to the linkpublic javax.ws.rs.core.Response updateLinkWithPost(java.lang.String guid, gov.nasa.pds.registry.model.ExternalLink link)
guid
- globally unique identifier of the servicelink
- updates to the linkpublic javax.ws.rs.core.Response getLink(java.lang.Integer start, java.lang.Integer rows)
protected static java.net.URI getLinkUri(gov.nasa.pds.registry.model.ExternalLink link, javax.ws.rs.core.UriInfo uriInfo)
Copyright © 2010-2018 Planetary Data System. All Rights Reserved.