public class PackagesResource extends Object
Constructor and Description |
---|
PackagesResource(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 |
changeStatusOfPackage(String packageGuid,
ObjectAction action)
Updates the status of the package with the given
global identifier.
|
javax.ws.rs.core.Response |
changeStatusOfPackageMembers(String packageGuid,
ObjectAction action)
Updates the status of all the members of the package with the given
global identifier.
|
javax.ws.rs.core.Response |
deletePackage(String packageGuid)
Deletes the package with the given global identifier.
|
javax.ws.rs.core.Response |
deletePackageMembers(String packageGuid)
Deletes all the members of a package with the given global identifier.
|
RegistryPackage |
getPackage(String packageGuid)
Retrieves the package with the given global identifier.
|
javax.ws.rs.core.Response |
getPackages(Integer start,
Integer rows,
String guid,
String name,
String lid,
ObjectStatus status,
QueryOperator operator,
List<String> sort)
Retrieves all packages managed by the registry given a set of filters.
|
protected static URI |
getPackageUri(RegistryPackage registryPackage,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
publishPackage(RegistryPackage registryPackage)
Publishes a package to the registry.
|
javax.ws.rs.core.Response |
updatePackage(String guid,
RegistryPackage registryPackage)
Updates the package with the given global identifier.
|
javax.ws.rs.core.Response |
updatePackageWithPost(String guid,
RegistryPackage registryPackage)
Updates the package with the given global identifier.
|
public PackagesResource(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, RegistryService registryService)
public javax.ws.rs.core.Response publishPackage(RegistryPackage registryPackage)
registryPackage
- to publishprotected static URI getPackageUri(RegistryPackage registryPackage, javax.ws.rs.core.UriInfo uriInfo)
public RegistryPackage getPackage(String packageGuid)
public javax.ws.rs.core.Response deletePackage(String packageGuid)
packageGuid
- of packagepublic javax.ws.rs.core.Response updatePackage(String guid, RegistryPackage registryPackage)
guid
- globally unique identifier of the serviceservice
- updates to the servicepublic javax.ws.rs.core.Response updatePackageWithPost(String guid, RegistryPackage registryPackage)
public javax.ws.rs.core.Response changeStatusOfPackage(String packageGuid, ObjectAction action)
packageGuid
- unique identifier of package to look upaction
- to take on package which will result in an update of status
ObjectAction
public javax.ws.rs.core.Response deletePackageMembers(String packageGuid)
packageGuid
- unique identifier of package to look up members ofpublic javax.ws.rs.core.Response changeStatusOfPackageMembers(String packageGuid, ObjectAction action)
packageGuid
- unique identifier of package to look up members ofaction
- to take on all members which will result in an update of status
ObjectAction
public javax.ws.rs.core.Response getPackages(Integer start, Integer rows, String guid, String name, String lid, ObjectStatus status, QueryOperator operator, List<String> sort)
Copyright © 2010–2017 Planetary Data System. All rights reserved.