public class ServicesResource extends Object
Constructor and Description |
---|
ServicesResource(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.Request request,
RegistryService registryService) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
deleteService(String guid)
Deletes the service with the given global identifier.
|
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(Service service,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
publishService(Service service,
String packageGuid)
Publishes a service to the registry.
|
javax.ws.rs.core.Response |
updateService(String guid,
Service service)
Updates the service and its contained objects with the given global
identifier.
|
javax.ws.rs.core.Response |
updateServiceWithPost(String guid,
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, RegistryService registryService)
public javax.ws.rs.core.Response publishService(Service service, String packageGuid)
service
- to publish to registrypackageGuid
- optional package guid which this registry object is a member ofpublic 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, Service service)
guid
- globally unique identifier of the serviceservice
- updates to the servicepublic javax.ws.rs.core.Response updateServiceWithPost(String guid, Service service)
public javax.ws.rs.core.Response getServices(Integer start, Integer rows)
Copyright © 2010–2016 Planetary Data System. All rights reserved.