|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.registry.resource.LinksResource
public class LinksResource
This resource is responsible for managing External Links with the registry service. External links are essentially URIs to items that are outside the control of the registry.
Constructor Summary | |
---|---|
LinksResource(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.Request request,
gov.nasa.pds.registry.service.RegistryService registryService)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LinksResource(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, gov.nasa.pds.registry.service.RegistryService registryService)
Method Detail |
---|
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 of
public gov.nasa.pds.registry.model.ExternalLink getLInk(String guid)
guid
- globally unique identifier of service
public javax.ws.rs.core.Response deleteLink(String guid)
guid
- globally unique identifier of link
public 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 link
public 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 link
public 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |