public class LinksResource extends 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(String guid)
Deletes the external link with the given global identifier.
|
javax.ws.rs.core.Response |
getLink(Integer start,
Integer rows)
Retrieves all external links managed by the registry given a set of
filters.
|
gov.nasa.pds.registry.model.ExternalLink |
getLInk(String guid)
Retrieves the external link with the given global identifier.
|
protected static 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,
String packageGuid)
Publishes an external link to the registry.
|
javax.ws.rs.core.Response |
updateLink(String guid,
gov.nasa.pds.registry.model.ExternalLink link)
Updates the external link with the given global identifier.
|
javax.ws.rs.core.Response |
updateLinkWithPost(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, 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(String guid)
guid
- globally unique identifier of servicepublic javax.ws.rs.core.Response deleteLink(String guid)
guid
- globally unique identifier of linkpublic javax.ws.rs.core.Response updateLink(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(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(Integer start, Integer rows)
protected static URI getLinkUri(gov.nasa.pds.registry.model.ExternalLink link, javax.ws.rs.core.UriInfo uriInfo)
Copyright © 2010–2016 Planetary Data System. All rights reserved.