public class ConnectionManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_SERVICE_ENDPOINT
Default location of service endpoint
|
static java.util.logging.Logger |
logger |
static java.util.Properties |
props
Instance of applicaiton properties
|
static java.lang.String |
PROPS_NAME
Name of properties file that contains override for service endpoint
|
Constructor and Description |
---|
ConnectionManager() |
Modifier and Type | Method and Description |
---|---|
static boolean |
deletePackage(java.lang.String serverUrl,
ViewRegistryPackage registryPackage)
Removes a RegistryPackage from the registry
|
static boolean |
deleteProduct(java.lang.String serverUrl,
ViewProduct product)
Removes an ExtrinsicObject from the registry
|
static java.util.List<ViewAssociation> |
getAssociations(java.lang.String serverUrl,
gov.nasa.pds.registry.query.RegistryQuery<gov.nasa.pds.registry.query.AssociationFilter> query) |
static ViewAssociations |
getAssociations(java.lang.String serverUrl,
gov.nasa.pds.registry.query.RegistryQuery<gov.nasa.pds.registry.query.AssociationFilter> query,
java.lang.Integer start,
java.lang.Integer numResults)
Retrieve associations from remote registry service.
|
static ViewClassificationNodes |
getClassificationNodes(java.lang.String serverUrl,
gov.nasa.pds.registry.query.RegistryQuery<gov.nasa.pds.registry.query.ExtrinsicFilter> query,
java.lang.Integer start,
java.lang.Integer numResults)
Retrieve classification nodes from remote registry service.
|
static ViewAuditableEvents |
getEvents(java.lang.String serverUrl,
gov.nasa.pds.registry.query.RegistryQuery<gov.nasa.pds.registry.query.EventFilter> query,
java.lang.Integer start,
java.lang.Integer numResults)
Retrieve events from remote registry service.
|
static ViewRegistryPackages |
getPackages(java.lang.String serverUrl,
gov.nasa.pds.registry.query.RegistryQuery<gov.nasa.pds.registry.query.PackageFilter> query,
java.lang.Integer start,
java.lang.Integer numResults)
Retrieve packages from remote registry service.
|
static ViewProduct |
getProduct(java.lang.String serverUrl,
java.lang.String guid)
Retrieve a product from remote registry service.
|
static ViewProducts |
getProducts(java.lang.String serverUrl)
Get products starting from the first record, with no filtering, the
default sort and the default number of records.
|
static ViewProducts |
getProducts(java.lang.String serverUrl,
java.lang.Integer start)
Get products starting from the given record number, with no filtering,
the default sort and the default number of records.
|
static ViewProducts |
getProducts(java.lang.String serverUrl,
java.lang.Integer start,
java.lang.Integer numResults)
Get products starting from the given record number and number of records.
|
static ViewProducts |
getProducts(java.lang.String serverUrl,
gov.nasa.pds.registry.query.RegistryQuery<gov.nasa.pds.registry.query.ExtrinsicFilter> query,
java.lang.Integer start,
java.lang.Integer numResults)
Retrieve products from remote registry service.
|
static java.util.Properties |
getProperties()
Get an instance of the application properties.
|
static gov.nasa.pds.registry.client.RegistryClient |
getRegistry(java.lang.String serverUrl)
Get instance of RegistryClient to work with REST interface of registry.
|
static ViewSchemes |
getSchemes(java.lang.String serverUrl,
java.lang.Integer start,
java.lang.Integer numResults)
Retrieve schemes from remote registry service.
|
static ViewServices |
getServices(java.lang.String serverUrl,
java.lang.Integer start,
java.lang.Integer numResults)
Retrieve services from remote registry service.
|
static StatusInformation |
getStatusInfo(java.lang.String serverUrl) |
static void |
postArtifacts() |
static void |
postRevision() |
static void |
synch() |
static boolean |
updatePackage(java.lang.String serverUrl,
ViewRegistryPackage registryPackage)
Updates the given RegistryPackage
|
static boolean |
updateProduct(java.lang.String serverUrl,
ViewProduct product)
Updates the given ExtrinsicObject
|
public static final java.lang.String DEFAULT_SERVICE_ENDPOINT
public static final java.lang.String PROPS_NAME
public static java.util.Properties props
public static java.util.logging.Logger logger
public static void synch()
public static StatusInformation getStatusInfo(java.lang.String serverUrl)
public static ViewProducts getProducts(java.lang.String serverUrl)
#getProducts(RegistryQuery, Integer, Integer)
public static ViewProducts getProducts(java.lang.String serverUrl, java.lang.Integer start)
#getProducts(RegistryQuery, Integer, Integer)
public static ViewProducts getProducts(java.lang.String serverUrl, java.lang.Integer start, java.lang.Integer numResults)
#getProducts(RegistryQuery, Integer, Integer)
public static ViewProducts getProducts(java.lang.String serverUrl, gov.nasa.pds.registry.query.RegistryQuery<gov.nasa.pds.registry.query.ExtrinsicFilter> query, java.lang.Integer start, java.lang.Integer numResults)
query
- a query object containing filter and search params for
retrieving productsstart
- start index for retrieved results. Defaults to 1.numResults
- number of results to return. Defaults to 20.public static ViewServices getServices(java.lang.String serverUrl, java.lang.Integer start, java.lang.Integer numResults)
start
- start index for retrieved results. Defaults to 1.numResults
- number of results to return. Defaults to 20.public static ViewSchemes getSchemes(java.lang.String serverUrl, java.lang.Integer start, java.lang.Integer numResults)
start
- start index for retrieved results. Defaults to 1.numResults
- number of results to return. Defaults to 20.public static ViewRegistryPackages getPackages(java.lang.String serverUrl, gov.nasa.pds.registry.query.RegistryQuery<gov.nasa.pds.registry.query.PackageFilter> query, java.lang.Integer start, java.lang.Integer numResults)
start
- start index for retrieved results. Defaults to 1.numResults
- number of results to return. Defaults to 20.public static boolean updatePackage(java.lang.String serverUrl, ViewRegistryPackage registryPackage)
viewRegistryPackage
- a RegistryPackage to updatepublic static boolean updateProduct(java.lang.String serverUrl, ViewProduct product)
product
- an ExtrinsicObject to updatepublic static boolean deleteProduct(java.lang.String serverUrl, ViewProduct product)
product
- an extrinsic object to removepublic static boolean deletePackage(java.lang.String serverUrl, ViewRegistryPackage registryPackage)
registryPackage
- a RegistryPackage object to removepublic static ViewAuditableEvents getEvents(java.lang.String serverUrl, gov.nasa.pds.registry.query.RegistryQuery<gov.nasa.pds.registry.query.EventFilter> query, java.lang.Integer start, java.lang.Integer numResults)
query
- a query object containing filter and search params for
retrieving eventsstart
- start index for retrieved results. Defaults to 1.numResults
- number of results to return. Defaults to 20.public static ViewProduct getProduct(java.lang.String serverUrl, java.lang.String guid)
guid
- global unique identifierpublic static ViewClassificationNodes getClassificationNodes(java.lang.String serverUrl, gov.nasa.pds.registry.query.RegistryQuery<gov.nasa.pds.registry.query.ExtrinsicFilter> query, java.lang.Integer start, java.lang.Integer numResults)
guid
- global unique identifierpublic static java.util.List<ViewAssociation> getAssociations(java.lang.String serverUrl, gov.nasa.pds.registry.query.RegistryQuery<gov.nasa.pds.registry.query.AssociationFilter> query)
public static ViewAssociations getAssociations(java.lang.String serverUrl, gov.nasa.pds.registry.query.RegistryQuery<gov.nasa.pds.registry.query.AssociationFilter> query, java.lang.Integer start, java.lang.Integer numResults)
query
- a query object containing filter and search params for
retrieving associationsstart
- start index for retrieved results. Defaults to 1.numResults
- number of results to return. Defaults to 20.public static void postArtifacts()
public static void postRevision()
public static gov.nasa.pds.registry.client.RegistryClient getRegistry(java.lang.String serverUrl)
public static java.util.Properties getProperties()
Copyright © 2010-2018 Planetary Data System. All Rights Reserved.