public class AssociationsResource
extends java.lang.Object
Constructor and Description |
---|
AssociationsResource(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 |
deleteAssociation(java.lang.String guid)
Deletes the association with the given global identifier.
|
gov.nasa.pds.registry.model.Association |
getAssociation(java.lang.String guid)
Retrieves an association with the given global identifier.
|
javax.ws.rs.core.Response |
getAssociations(java.lang.Integer start,
java.lang.Integer rows,
java.lang.String targetObject,
java.lang.String sourceObject,
java.lang.String associationType,
gov.nasa.pds.registry.query.QueryOperator operator,
java.util.List<java.lang.String> sort)
Retrieves all associations managed by the registry given a set of filters.
|
protected static java.net.URI |
getAssociationUri(gov.nasa.pds.registry.model.Association association,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
publishAssociation(gov.nasa.pds.registry.model.Association association,
java.lang.String packageGuid)
Publishes an association to the registry.
|
public AssociationsResource(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 getAssociations(java.lang.Integer start, java.lang.Integer rows, java.lang.String targetObject, java.lang.String sourceObject, java.lang.String associationType, gov.nasa.pds.registry.query.QueryOperator operator, java.util.List<java.lang.String> sort)
start
- the index at which to start the result list fromrows
- how many results to returntargetObject
- filter on the identifier of the target in the association supports
wildcard (*)sourceObject
- filter on the identifier of the source in the association supports
wildcard (*)associationType
- filter on the type of association supports wildcard (*)operator
- to apply to filters, valid values are AND or OR. Defaults to AND.sort
- defines what parameters to sort on. The format is
"parameter order" the order is optional. The default is "guid ASC"
and if unspecified the ordering is ASC.public javax.ws.rs.core.Response publishAssociation(gov.nasa.pds.registry.model.Association association, java.lang.String packageGuid)
association
- to publish to registrypackageGuid
- optional package guid which this registry object is a member ofprotected static java.net.URI getAssociationUri(gov.nasa.pds.registry.model.Association association, javax.ws.rs.core.UriInfo uriInfo)
public gov.nasa.pds.registry.model.Association getAssociation(java.lang.String guid)
public javax.ws.rs.core.Response deleteAssociation(java.lang.String guid)
guid
- of associationCopyright © 2010-2018 Planetary Data System. All Rights Reserved.