Class: BeansContainer

bean. BeansContainer

A container that can hold many types of Beans within an internal map.


new BeansContainer()

Extends

  • JsonBean

Methods


createFinalJson()


getAgencies()

Get all the agencies in this container

Returns:

An array of AgencyBean's

Type
Array.<bean.organisation.AgencyBean> | AgencyBean

getAgenciesSchemes()

Get all the agency Schemes in this container

Returns:

An array of AgencySchemeBean's

Type
Array.<bean.organisation.AgencySchemeBean>

getAgencyById(id)

Returns the agency in this with the fully qualified id, or null if none exist

Parameters:
Name Type Description
id string

the full agencyId for example IMF or IMF.SUB_DEPT

Returns:

An array of AgencyBean's

Type
Array.<bean.organisation.AgencyBean> | AgencyBean

getAllStructures()

Return all the structures in this container as an array

Returns:

Array of structures

Type
Array.<object>

getCategorisations()

Get all the Categorisations from this container.

Returns:

Containing both CubeRegion Constraint's and Series Constraint's

Type
Array.<bean.categoryscheme.CategorisationBean>

getCategorySchemes()

Returns all the Category Schemes in this container

Returns:

An array of CategorySchemes

Type
Array.<bean.categoryscheme.CategorySchemeBean> | CategoryScheme

getCodelists()

Get all the Codelists in this container

Returns:

An array of Codelists

Type
Array.<bean.codelist.CodelistBean>

getConceptSchemes()

Get all the ConceptSchemes in this container

Returns:

An array of ConceptSchemes

Type
Array.<bean.conceptscheme.ConceptSchemeBean>

getContentConstraints()

Get all the Constraints from this container. This will return an array containing ALL CubeRegion Constraint's and Series Constraint's

Returns:

Containing both CubeRegion Constraint's and Series Constraint's

Type
Array.<bean.constraint.AbstractConstraint> | Constraint

getDataConsumerSchemes()

Get all the DataConsumerSchemes in this container

Returns:

An array of DataConsumerSchemes

Type
Array.<bean.organisation.DataConsumerSchemeBean>

getDataflows()

Get all the Dataflows in this container

Returns:

An array ofgetDataflows

Type
Array.<bean.datastructure.DataflowBean>

getDataProviderSchemes()

Get all the DataProviderSchemes in this container

Returns:

An array of DataProviderSchemes

Type
Array.<bean.organisation.DataProviderSchemeBean>

getDataStructures()

Get all the DataStructures in this container

Returns:

An array of DataStructures

Type
Array.<bean.datastructure.DataStructureBean>

getHierarchicalCodelists()

Get all the HierarchicalCodelists in this container

Returns:

An array of HierarchicalCodelists

Type
Array.<bean.hierarchicalcodelist.HierarchicalCodelistBean>

getMetadataflows()

Get all the Metadataflows in this container

Returns:

An array of Metadataflows

Type
Array.<bean.metadatastructure.MetadataFlowBean>

getMetadataStructures()

Get all the MetadataStructures in this container

Returns:

An array of MetadataStructures

Type
Array.<bean.metadatastructure.MetadataStructureBean>

getOrganisationUnitSchemes()

Get all the OrganisationUnitSchemes in this container

Returns:

An array of OrganisationUnitSchemes

Type
Array.<bean.organisation.OrganisationUnitSchemeBean>

getProvisionAgreements()

Get all the ProvisionAgreements in this container

Returns:

An array of ProvisionAgreements

Type
Array.<bean.datastructure.ProvisionAgreementBean>

getReportingTaxonomys()

Get all the ReportingTaxonomys in this container

Returns:

An array of ReportingTaxonomys

Type
Array.<bean.reportingtaxonomy.ReportingTaxonomyBean>

getStructure(type)

Get the Structure from within this container

Parameters:
Name Type Description
type function

The constructor of the type to extract

Throws:

If the type passed in is not a constructor of a Structure js object

Type
TypeError
Returns:

An array of objects

Type
Array.<object>
Example
let structureInstance = IMJS.getInstance({
     "url":"http://localhost:8002/FusionRegistry"
});
let query = new StructureQuery(); // query for ALL structures in my registry
structureInstance.getMaintainables(query, data => {
     console.log(data.getStructure(AgencyBean)); // returns an array of agencies
     console.log(data.getStructure(Codelist)); // returns an array of all Codelists
});

getStructureSets()

Get all the StructureSets in this container

Returns:

An array of StructureSets

Type
Array.<bean.structuremap.StructureSetBean>