public class PackagesResource
extends java.lang.Object
Constructor and Description |
---|
PackagesResource(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 |
changeStatusOfPackage(java.lang.String packageGuid,
gov.nasa.pds.registry.model.ObjectAction action)
Updates the status of the package with the given
global identifier.
|
javax.ws.rs.core.Response |
changeStatusOfPackageMembers(java.lang.String packageGuid,
gov.nasa.pds.registry.model.ObjectAction action)
Updates the status of all the members of the package with the given
global identifier.
|
javax.ws.rs.core.Response |
deletePackage(java.lang.String packageGuid)
Deletes the package with the given global identifier.
|
javax.ws.rs.core.Response |
deletePackageMembers(java.lang.String packageGuid)
Deletes all the members of a package with the given global identifier.
|
gov.nasa.pds.registry.model.RegistryPackage |
getPackage(java.lang.String packageGuid)
Retrieves the package with the given global identifier.
|
javax.ws.rs.core.Response |
getPackages(java.lang.Integer start,
java.lang.Integer rows,
java.lang.String guid,
java.lang.String name,
java.lang.String lid,
gov.nasa.pds.registry.model.ObjectStatus status,
gov.nasa.pds.registry.query.QueryOperator operator,
java.util.List<java.lang.String> sort)
Retrieves all packages managed by the registry given a set of filters.
|
protected static java.net.URI |
getPackageUri(gov.nasa.pds.registry.model.RegistryPackage registryPackage,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
publishPackage(gov.nasa.pds.registry.model.RegistryPackage registryPackage)
Publishes a package to the registry.
|
javax.ws.rs.core.Response |
updatePackage(java.lang.String guid,
gov.nasa.pds.registry.model.RegistryPackage registryPackage)
Updates the package with the given global identifier.
|
javax.ws.rs.core.Response |
updatePackageWithPost(java.lang.String guid,
gov.nasa.pds.registry.model.RegistryPackage registryPackage)
Updates the package with the given global identifier.
|
public PackagesResource(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 publishPackage(gov.nasa.pds.registry.model.RegistryPackage registryPackage)
registryPackage
- to publishprotected static java.net.URI getPackageUri(gov.nasa.pds.registry.model.RegistryPackage registryPackage, javax.ws.rs.core.UriInfo uriInfo)
public gov.nasa.pds.registry.model.RegistryPackage getPackage(java.lang.String packageGuid)
public javax.ws.rs.core.Response deletePackage(java.lang.String packageGuid)
packageGuid
- of packagepublic javax.ws.rs.core.Response updatePackage(java.lang.String guid, gov.nasa.pds.registry.model.RegistryPackage registryPackage)
guid
- globally unique identifier of the serviceservice
- updates to the servicepublic javax.ws.rs.core.Response updatePackageWithPost(java.lang.String guid, gov.nasa.pds.registry.model.RegistryPackage registryPackage)
public javax.ws.rs.core.Response changeStatusOfPackage(java.lang.String packageGuid, gov.nasa.pds.registry.model.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(java.lang.String packageGuid)
packageGuid
- unique identifier of package to look up members ofpublic javax.ws.rs.core.Response changeStatusOfPackageMembers(java.lang.String packageGuid, gov.nasa.pds.registry.model.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(java.lang.Integer start, java.lang.Integer rows, java.lang.String guid, java.lang.String name, java.lang.String lid, gov.nasa.pds.registry.model.ObjectStatus status, gov.nasa.pds.registry.query.QueryOperator operator, java.util.List<java.lang.String> sort)
Copyright © 2010-2018 Planetary Data System. All Rights Reserved.