|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.search.core.registry.RegistryHandler
public class RegistryHandler
Class to handle the communication with the Registry Service
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<SearchCoreExtrinsic> |
getAssociatedExtrinsicsByReferenceType(SearchCoreExtrinsic searchExtrinsic,
String referenceType)
Query the associated objects and map the objects to their slots. |
List<SearchCoreExtrinsic> |
getAssociationsBySourceObject(SearchCoreExtrinsic searchExtrinsic,
String associationType)
Query the association objects by the Extrinsic's guid. |
SearchCoreExtrinsic |
getExtrinsicByGuid(String guid)
Get the ExtrinsicObjects associated with the current object being queried. |
SearchCoreExtrinsic |
getExtrinsicByLidvid(String lidvid)
Get the ExtrinsicObjects associated with the current object being queried. |
RegistryResults |
getExtrinsicsByQuery(List<Query> queryList)
Get the ExtrinsicObjects from the given object type. |
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 |
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 |
---|
public RegistryResults getExtrinsicsByQuery(List<Query> queryList) throws RegistryHandlerException
objectType
- @see gov.nasa.pds.registry.model.ExtrinsicObject
Exception
- thrown if there are issues with the RegistryClient
RegistryHandlerException
public SearchCoreExtrinsic getExtrinsicByLidvid(String lidvid) throws Exception
lidvid
- identifies the ExtrinsicObject list to be queried for
Exception
public SearchCoreExtrinsic getExtrinsicByGuid(String guid) throws Exception
lidvid
- identifies the ExtrinsicObject list to be queried for
Exception
public List<SearchCoreExtrinsic> getAssociatedExtrinsicsByReferenceType(SearchCoreExtrinsic searchExtrinsic, String referenceType) throws Exception
guid
- referenceType
-
Exception
public List<SearchCoreExtrinsic> getAssociationsBySourceObject(SearchCoreExtrinsic searchExtrinsic, String associationType) throws Exception
guid
- referenceType
-
Exception
public String checkForReference(String value, String slotName) throws gov.nasa.pds.registry.exception.RegistryClientException
value
- registryRef
-
gov.nasa.pds.registry.exception.RegistryClientException
gov.nasa.pds.registry.exception.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 primaryRegistryUrl to appendpublic void resetAllRegistries()
secondaryRegistries
- the secondaryRegistries to setpublic 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 |