public abstract class BaseSdmxBeanRetrievalManager extends IdentifiableRetrievalManagerImpl implements SdmxBeanRetrievalManager, org.springframework.beans.factory.InitializingBean
Constructor and Description |
---|
BaseSdmxBeanRetrievalManager() |
BaseSdmxBeanRetrievalManager(SdmxBeanRetrievalManager retrievalManager) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
AgencyBean |
getAgency(java.lang.String id)
Returns the agency with the given Id, if the Agency is a child of another Agency (other then SDMX), then it should be a dot separated id, for
example DEMO.SUBDEMO
|
<T extends MaintainableBean> |
getMaintainableBean(java.lang.Class<T> structureType,
MaintainableRefBean ref)
Returns the Maintainable that is of the given type, determined by T, and matches the reference parameters in the MaintainableRef.
|
<T extends MaintainableBean> |
getMaintainableBean(java.lang.Class<T> structureType,
MaintainableRefBean ref,
boolean returnStub,
boolean returnLatest)
Returns the Maintainable that is of the given type, determined by T, and matches the reference parameters in the MaintainableRef.
|
MaintainableBean |
getMaintainableBean(StructureReferenceBean sRef)
Obtains a MaintainableBean identified by the StructureReferenceBean.
|
MaintainableBean |
getMaintainableBean(StructureReferenceBean sRef,
boolean returnStub,
boolean returnLatest)
Obtains a MaintainableBean identified by the StructureReferenceBean.
|
<T extends MaintainableBean> |
getMaintainableBeans(java.lang.Class<T> structureType)
Obtains a set of all MaintainableBeans of type T
An empty Set will be returned if there are no matches to the query
|
<T extends MaintainableBean> |
getMaintainableBeans(java.lang.Class<T> structureType,
MaintainableRefBean ref)
Obtains a set of MaintainableBeans of type T that match the reference parameters in the MaintainableRef argument.
|
<T extends MaintainableBean> |
getMaintainableBeans(java.lang.Class<T> structureType,
MaintainableRefBean ref,
boolean returnLatest,
boolean returnStub)
Obtains a set of MaintainableBeans of type T that match the reference parameters in the MaintainableRef argument.
|
SdmxBeans |
getMaintainables(RESTStructureQuery complexQuery)
Get all the maintainables that match the RESTStructureQuery
|
SdmxBeans |
getSdmxBeans(StructureReferenceBean sRef,
ResolutionSettings.RESOLVE_CROSS_REFERENCES resolveCrossReferences)
Returns a SdmxBeans container containing all the MaintainableBeans that match
the query parameters as defined by the StructureReferenceBean.
|
void |
setCrossReferenceRetrievalManager(CrossReferencedRetrievalManager crossReferenceRetrievalManager) |
void |
setCrossReferencingRetrievalManager(CrossReferencingRetrievalManager crossReferencingRetrievalManager) |
void |
setExternalReferenceRetrievalManager(ExternalReferenceRetrievalManager externalReferenceRetrievalManager) |
void |
setHeaderRetrievalManager(HeaderRetrievalManager headerRetrievalManager) |
void |
setProxy(SdmxBeanRetrievalManager proxy) |
void |
setRegistrationRetrievalManager(RegistrationBeanRetrievalManager registrationRetrievalManager) |
void |
setServiceRetrievalManager(ServiceRetrievalManager serviceRetrievalManager)
If set then will be used to create stubs
|
getIdentifiableBean, getIdentifiableBean, getIdentifiableBean, getIdentifiableBean, getIdentifiableBeans
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getIdentifiableBean, getIdentifiableBean, getIdentifiableBean, getIdentifiableBeans
public BaseSdmxBeanRetrievalManager()
public BaseSdmxBeanRetrievalManager(SdmxBeanRetrievalManager retrievalManager)
public AgencyBean getAgency(java.lang.String id)
IdentifiableRetrievalManager
getAgency
in interface IdentifiableRetrievalManager
getAgency
in class IdentifiableRetrievalManagerImpl
public <T extends MaintainableBean> T getMaintainableBean(java.lang.Class<T> structureType, MaintainableRefBean ref)
SdmxBeanRetrievalManager
getMaintainableBean
in interface SdmxBeanRetrievalManager
structureType
- identifying the Class type to returnref
- contains the parameters that must match on the returned structure. If version information is missing, then latest version is assumedpublic MaintainableBean getMaintainableBean(StructureReferenceBean sRef)
SdmxBeanRetrievalManager
getMaintainableBean
in interface SdmxBeanRetrievalManager
sRef
- identifies the structure type, and the identifiers of the structure, can include widcarded values (null indicates a wildcard). If version information is missing, then
latest version is assumedpublic SdmxBeans getSdmxBeans(StructureReferenceBean sRef, ResolutionSettings.RESOLVE_CROSS_REFERENCES resolveCrossReferences)
SdmxBeanRetrievalManager
getSdmxBeans
in interface SdmxBeanRetrievalManager
sRef
- The StructureReferenceBean which must not be nullresolveCrossReferences
- either 'do not resolve', 'resolve all' or 'resolve all excluding agencies'. If not set to 'do not resolve'
then all the structures that are referenced by the resulting structures are also returned
(and also their children). This will be equivalent to descendants for a RESTful query.public <T extends MaintainableBean> java.util.Set<T> getMaintainableBeans(java.lang.Class<T> structureType)
SdmxBeanRetrievalManager
getMaintainableBeans
in interface SdmxBeanRetrievalManager
structureType
- identifies the structure of type to return, if argument is null or Maintainable.class then all maintainables will be returnedpublic MaintainableBean getMaintainableBean(StructureReferenceBean sRef, boolean returnStub, boolean returnLatest)
SdmxBeanRetrievalManager
getMaintainableBean
in interface SdmxBeanRetrievalManager
sRef
- identifies the structure type, and the identifiers of the structure, can include widcarded values (null indicates a wildcard). If version information is missing, then
latest version is assumedreturnStub
- if true then the stub bean will be returned instead of the full structurereturnLatest
- if true then the latest version is returned, regardless of whether version information is suppliedpublic <T extends MaintainableBean> T getMaintainableBean(java.lang.Class<T> structureType, MaintainableRefBean ref, boolean returnStub, boolean returnLatest)
SdmxBeanRetrievalManager
getMaintainableBean
in interface SdmxBeanRetrievalManager
structureType
- identifying the Class type to returnref
- contains the parameters that must match on the returned structure. If version information is missing, then latest version is assumedreturnStub
- if true then the stub bean will be returned instead of the full structurereturnLatest
- if true then the latest version is returned, regardless of whether version information is suppliedpublic <T extends MaintainableBean> java.util.Set<T> getMaintainableBeans(java.lang.Class<T> structureType, MaintainableRefBean ref)
SdmxBeanRetrievalManager
getMaintainableBeans
in interface SdmxBeanRetrievalManager
structureType
- identifies the structure typeref
- contains the identifiers of the structures to returns, can include widcarded values (null indicates a wildcard).public <T extends MaintainableBean> java.util.Set<T> getMaintainableBeans(java.lang.Class<T> structureType, MaintainableRefBean ref, boolean returnLatest, boolean returnStub)
SdmxBeanRetrievalManager
getMaintainableBeans
in interface SdmxBeanRetrievalManager
structureType
- identifies the structure typeref
- contains the identifiers of the structures to returns, can include widcarded values (null indicates a wildcard).returnLatest
- if true then the latest version is returned, regardless of whether version information is suppliedreturnStub
- if true then the stub bean will be returned instead of the full structurepublic SdmxBeans getMaintainables(RESTStructureQuery complexQuery)
SdmxBeanRetrievalManager
getMaintainables
in interface SdmxBeanRetrievalManager
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
public void setCrossReferenceRetrievalManager(CrossReferencedRetrievalManager crossReferenceRetrievalManager)
public void setExternalReferenceRetrievalManager(ExternalReferenceRetrievalManager externalReferenceRetrievalManager)
public void setServiceRetrievalManager(ServiceRetrievalManager serviceRetrievalManager)
serviceRetrievalManager
- public void setCrossReferencingRetrievalManager(CrossReferencingRetrievalManager crossReferencingRetrievalManager)
public void setRegistrationRetrievalManager(RegistrationBeanRetrievalManager registrationRetrievalManager)
public void setHeaderRetrievalManager(HeaderRetrievalManager headerRetrievalManager)
public void setProxy(SdmxBeanRetrievalManager proxy)