|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.registry.client.results.RegistryHandler
public class RegistryHandler
Class to handle the communication with the Registry Service
Field Summary | |
---|---|
static int |
DFLT_QUERY_MAX
|
Constructor Summary | |
---|---|
RegistryHandler(List<String> primaryRegistries,
List<String> secondaryRegistries,
int queryMax)
|
|
RegistryHandler(List<String> primaryRegistries,
List<String> secondaryRegistries,
int queryMax,
boolean checkAssociations)
|
Method Summary | |
---|---|
void |
addPrimaryRegistry(String primaryRegistry)
|
void |
addSecondaryRegistry(String secondaryRegistry)
|
void |
addToAllRegistries(String registry)
|
String |
checkForReference(String value,
String slotName)
Check if the value comes from an association field (*_ref). |
boolean |
doPrimaryRegistriesExist()
|
List<ExtendedExtrinsicObject> |
getAssociatedExtrinsicsByReferenceType(ExtendedExtrinsicObject searchExtrinsic,
String referenceType)
Query the associated objects and map the objects to their slots. |
List<ExtendedExtrinsicObject> |
getAssociationsBySourceObject(ExtendedExtrinsicObject searchExtrinsic,
String associationType)
Query the association objects by the Extrinsic's guid. |
ExtendedExtrinsicObject |
getExtrinsicByGuid(String guid)
Get the ExtrinsicObjects associated with the current object being queried. |
ExtendedExtrinsicObject |
getExtrinsicByLidvid(String lidvid)
Get the ExtrinsicObjects associated with the current object being queried. |
RegistryResults |
getExtrinsicsByQuery(Map<String,String> queryMap)
Deprecated. Use getExtrinsicsWithFilter method |
RegistryResults |
getExtrinsicsWithAllRegistries(List<ResultsFilter> resultsFilterList)
Get the ExtrinsicObjects after results have been filtered. |
RegistryResults |
getExtrinsicsWithFilter(List<ResultsFilter> resultsFilterList)
Get the ExtrinsicObjects after results have been filtered. |
List<String> |
getPrimaryRegistries()
|
int |
getQueryMax()
|
List<String> |
getSecondaryRegistries()
|
void |
resetAllRegistries()
|
void |
setCheckAssociations(boolean checkAssociations)
|
void |
setPrimaryRegistries(List<String> primaryRegistries)
|
void |
setQueryMax(int queryMax)
|
void |
setSecondaryRegistries(List<String> secondaryRegistries)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DFLT_QUERY_MAX
Constructor Detail |
---|
public RegistryHandler(List<String> primaryRegistries, List<String> secondaryRegistries, int queryMax)
public RegistryHandler(List<String> primaryRegistries, List<String> secondaryRegistries, int queryMax, boolean checkAssociations)
Method Detail |
---|
@Deprecated public RegistryResults getExtrinsicsByQuery(Map<String,String> queryMap) throws RegistryHandlerException
queryMap
- query map for attribute name->value pairs
Exception
- thrown if there are issues with the RegistryClient
RegistryHandlerException
public RegistryResults getExtrinsicsWithFilter(List<ResultsFilter> resultsFilterList) throws RegistryHandlerException
resultsFilterList
-
RegistryHandlerException
public RegistryResults getExtrinsicsWithAllRegistries(List<ResultsFilter> resultsFilterList) throws RegistryHandlerException
resultsFilterList
-
RegistryHandlerException
public ExtendedExtrinsicObject getExtrinsicByLidvid(String lidvid) throws Exception
lidvid
- identifies the ExtrinsicObject list to be queried for
Exception
public ExtendedExtrinsicObject getExtrinsicByGuid(String guid) throws Exception
lidvid
- identifies the ExtrinsicObject list to be queried for
Exception
public List<ExtendedExtrinsicObject> getAssociatedExtrinsicsByReferenceType(ExtendedExtrinsicObject searchExtrinsic, String referenceType) throws Exception
guid
- referenceType
-
Exception
public List<ExtendedExtrinsicObject> getAssociationsBySourceObject(ExtendedExtrinsicObject searchExtrinsic, String associationType) throws Exception
guid
- referenceType
-
Exception
public String checkForReference(String value, String slotName) throws RegistryClientException
value
- registryRef
-
RegistryClientException
RegistryServiceException
public int getQueryMax()
public void setQueryMax(int queryMax)
queryMax
- the queryMax to setpublic List<String> getPrimaryRegistries()
public void setPrimaryRegistries(List<String> primaryRegistries)
primaryRegistries
- the primaryRegistries to setpublic void addPrimaryRegistry(String primaryRegistry)
primaryRegistry
- the primaryRegistryUrl to appendpublic List<String> getSecondaryRegistries()
public void setSecondaryRegistries(List<String> secondaryRegistries)
secondaryRegistries
- the secondaryRegistries to setpublic void addSecondaryRegistry(String secondaryRegistry)
secondaryRegistry
- the secondaryRegistry Url to appendpublic void resetAllRegistries()
public void addToAllRegistries(String registry)
public boolean doPrimaryRegistriesExist() throws RegistryHandlerException
RegistryHandlerException
public void setCheckAssociations(boolean checkAssociations)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |