public class RegistryHandler extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DFLT_QUERY_MAX
Set default query maximum to maximum integer
|
Constructor and Description |
---|
RegistryHandler(List<String> primaryRegistries,
List<String> secondaryRegistries,
int queryMax) |
RegistryHandler(List<String> primaryRegistries,
List<String> secondaryRegistries,
int queryMax,
boolean checkAssociations) |
Modifier and Type | Method and Description |
---|---|
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 |
initializeAssocSearchHashMap() |
void |
resetAllRegistries() |
void |
setCheckAssociations(boolean checkAssociations) |
void |
setPrimaryRegistries(List<String> primaryRegistries) |
void |
setQueryMax(int queryMax) |
void |
setSecondaryRegistries(List<String> secondaryRegistries) |
public static final int DFLT_QUERY_MAX
public RegistryHandler(List<String> primaryRegistries, List<String> secondaryRegistries, int queryMax)
public void initializeAssocSearchHashMap()
@Deprecated public RegistryResults getExtrinsicsByQuery(Map<String,String> queryMap) throws RegistryHandlerException
queryMap
- query map for attribute name->value pairsException
- thrown if there are issues with the RegistryClientRegistryHandlerException
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 forException
public ExtendedExtrinsicObject getExtrinsicByGuid(String guid) throws Exception
lidvid
- identifies the ExtrinsicObject list to be queried forException
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 void setPrimaryRegistries(List<String> primaryRegistries)
primaryRegistries
- the primaryRegistries to setpublic void addPrimaryRegistry(String primaryRegistry)
primaryRegistry
- the primaryRegistryUrl to appendpublic 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)
Copyright © 2010–2016 Planetary Data System. All rights reserved.