|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.registry.server.connection.ConnectionManager
public class ConnectionManager
Manager to send and receive info from remote registry service. Note that connection to localhost is currently hard wired in.
Field Summary | |
---|---|
static String |
DEFAULT_SERVICE_ENDPOINT
Default location of service endpoint |
static Logger |
logger
|
static Properties |
props
Instance of applicaiton properties |
static String |
PROPS_NAME
Name of properties file that contains override for service endpoint |
Constructor Summary | |
---|---|
ConnectionManager()
|
Method Summary | |
---|---|
static boolean |
deletePackage(ViewRegistryPackage registryPackage)
Removes a RegistryPackage from the registry |
static boolean |
deleteProduct(ViewProduct product)
Removes an ExtrinsicObject from the registry |
static List<ViewAssociation> |
getAssociations(gov.nasa.pds.registry.query.RegistryQuery<gov.nasa.pds.registry.query.AssociationFilter> query)
|
static ViewAssociations |
getAssociations(gov.nasa.pds.registry.query.RegistryQuery<gov.nasa.pds.registry.query.AssociationFilter> query,
Integer start,
Integer numResults)
Retrieve associations from remote registry service. |
static ViewClassificationNodes |
getClassificationNodes(gov.nasa.pds.registry.query.RegistryQuery<gov.nasa.pds.registry.query.ExtrinsicFilter> query,
Integer start,
Integer numResults)
Retrieve classification nodes from remote registry service. |
static ViewAuditableEvents |
getEvents(gov.nasa.pds.registry.query.RegistryQuery<gov.nasa.pds.registry.query.EventFilter> query,
Integer start,
Integer numResults)
Retrieve events from remote registry service. |
static ViewRegistryPackages |
getPackages(gov.nasa.pds.registry.query.RegistryQuery<gov.nasa.pds.registry.query.PackageFilter> query,
Integer start,
Integer numResults)
Retrieve packages from remote registry service. |
static ViewProduct |
getProduct(String guid)
Retrieve a product from remote registry service. |
static ViewProducts |
getProducts()
Get products starting from the first record, with no filtering, the default sort and the default number of records. |
static ViewProducts |
getProducts(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(Integer start,
Integer numResults)
Get products starting from the given record number and number of records. |
static ViewProducts |
getProducts(gov.nasa.pds.registry.query.RegistryQuery<gov.nasa.pds.registry.query.ExtrinsicFilter> query,
Integer start,
Integer numResults)
Retrieve products from remote registry service. |
static Properties |
getProperties()
Get an instance of the application properties. |
static gov.nasa.pds.registry.client.RegistryClient |
getRegistry()
Get instance of RegistryClient to work with REST interface of registry. |
static List<String> |
getRegistryServices()
|
static ViewSchemes |
getSchemes(Integer start,
Integer numResults)
Retrieve schemes from remote registry service. |
static ViewServices |
getServices(Integer start,
Integer numResults)
Retrieve services from remote registry service. |
static StatusInformation |
getStatusInfo()
|
static void |
postArtifacts()
|
static void |
postRevision()
|
static void |
synch()
|
static boolean |
updatePackage(ViewRegistryPackage registryPackage)
Updates the given RegistryPackage |
static boolean |
updateProduct(ViewProduct product)
Updates the given ExtrinsicObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_SERVICE_ENDPOINT
public static final String PROPS_NAME
public static Properties props
public static Logger logger
Constructor Detail |
---|
public ConnectionManager()
Method Detail |
---|
public static void synch()
public static StatusInformation getStatusInfo()
public static ViewProducts getProducts()
getProducts(RegistryQuery, Integer, Integer)
public static ViewProducts getProducts(Integer start)
getProducts(RegistryQuery, Integer, Integer)
public static ViewProducts getProducts(Integer start, Integer numResults)
getProducts(RegistryQuery, Integer, Integer)
public static ViewProducts getProducts(gov.nasa.pds.registry.query.RegistryQuery<gov.nasa.pds.registry.query.ExtrinsicFilter> query, Integer start, 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(Integer start, Integer numResults)
start
- start index for retrieved results. Defaults to 1.numResults
- number of results to return. Defaults to 20.
public static ViewSchemes getSchemes(Integer start, Integer numResults)
start
- start index for retrieved results. Defaults to 1.numResults
- number of results to return. Defaults to 20.
public static ViewRegistryPackages getPackages(gov.nasa.pds.registry.query.RegistryQuery<gov.nasa.pds.registry.query.PackageFilter> query, Integer start, Integer numResults)
start
- start index for retrieved results. Defaults to 1.numResults
- number of results to return. Defaults to 20.
public static boolean updatePackage(ViewRegistryPackage registryPackage)
viewRegistryPackage
- a RegistryPackage to updatepublic static boolean updateProduct(ViewProduct product)
product
- an ExtrinsicObject to updatepublic static boolean deleteProduct(ViewProduct product)
product
- an extrinsic object to removepublic static boolean deletePackage(ViewRegistryPackage registryPackage)
registryPackage
- a RegistryPackage object to removepublic static ViewAuditableEvents getEvents(gov.nasa.pds.registry.query.RegistryQuery<gov.nasa.pds.registry.query.EventFilter> query, Integer start, 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(String guid)
guid
- global unique identifier
public static ViewClassificationNodes getClassificationNodes(gov.nasa.pds.registry.query.RegistryQuery<gov.nasa.pds.registry.query.ExtrinsicFilter> query, Integer start, Integer numResults)
guid
- global unique identifier
public static List<ViewAssociation> getAssociations(gov.nasa.pds.registry.query.RegistryQuery<gov.nasa.pds.registry.query.AssociationFilter> query)
public static ViewAssociations getAssociations(gov.nasa.pds.registry.query.RegistryQuery<gov.nasa.pds.registry.query.AssociationFilter> query, Integer start, 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()
public static Properties getProperties()
public static List<String> getRegistryServices()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |