public class ServicesResource extends Object
Constructor and Description |
---|
ServicesResource(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 |
deleteService(String guid)
Deletes the service with the given global identifier.
|
gov.nasa.pds.registry.model.Service |
getService(String guid)
Retrieves the service with the given global identifier.
|
javax.ws.rs.core.Response |
getServices(Integer start,
Integer rows)
Retrieves all services managed by the registry given a set of filters.
|
protected static URI |
getServiceUri(gov.nasa.pds.registry.model.Service service,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
publishService(gov.nasa.pds.registry.model.Service service,
String packageGuid)
Publishes a service to the registry.
|
javax.ws.rs.core.Response |
updateService(String guid,
gov.nasa.pds.registry.model.Service service)
Updates the service and its contained objects with the given global
identifier.
|
javax.ws.rs.core.Response |
updateServiceWithPost(String guid,
gov.nasa.pds.registry.model.Service service)
Updates the service and its contained objects with the given global
identifier.
|
public ServicesResource(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 publishService(gov.nasa.pds.registry.model.Service service, String packageGuid)
service
- to publish to registrypackageGuid
- optional package guid which this registry object is a member ofpublic gov.nasa.pds.registry.model.Service getService(String guid)
guid
- globally unique identifier of servicepublic javax.ws.rs.core.Response deleteService(String guid)
guid
- globally unique identifier of servicepublic javax.ws.rs.core.Response updateService(String guid, gov.nasa.pds.registry.model.Service service)
guid
- globally unique identifier of the serviceservice
- updates to the servicepublic javax.ws.rs.core.Response updateServiceWithPost(String guid, gov.nasa.pds.registry.model.Service service)
public javax.ws.rs.core.Response getServices(Integer start, Integer rows)
protected static URI getServiceUri(gov.nasa.pds.registry.model.Service service, javax.ws.rs.core.UriInfo uriInfo)
Copyright © 2010–2016 Planetary Data System. All rights reserved.