コード例 #1
0
        /// <summary>
        /// Gets DataflowObjects that match the parameters in the ref @object.  If the ref @object is null or
        ///     has no attributes set, then this will be interpreted as a search for all DataflowObjects
        /// </summary>
        /// <param name="complexRef">
        /// The reference object defining the search parameters.
        /// </param>
        /// <param name="returnDetail">
        /// The return Detail.
        /// </param>
        /// <param name="allowedDataflow">
        /// The allowed Dataflow.
        /// </param>
        /// <returns>
        /// list of sdmxObjects that match the search criteria
        /// </returns>
        public ISet <IDataflowMutableObject> GetMutableDataflowObjects(
            IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail, IList <IMaintainableRefObject> allowedDataflow)
        {
            var xref = complexRef.GetMaintainableRefObject();

            return(this._retrievalEngineContainer.DataflowRetrievalEngine.Retrieve(xref, returnDetail.EnumType, complexRef.GetVersionConstraints(), allowedDataflow));
        }
コード例 #2
0
        /// <summary>
        /// Gets a single Dataflow , this expects the ref object either to contain
        ///     a URN or all the attributes required to uniquely identify the object.  If version information
        ///     is missing then the latest version is assumed.
        /// </summary>
        /// <param name="complexRef">
        /// The reference object defining the search parameters.
        /// </param>
        /// <param name="returnDetail">
        /// The return Detail.
        /// </param>
        /// <param name="allowedDataflow">
        /// The allowed Dataflow.
        /// </param>
        /// <returns>
        /// The <see cref="T:Org.Sdmxsource.Sdmx.Api.Model.Mutable.DataStructure.IDataflowMutableObject"/> .
        /// </returns>
        public IDataflowMutableObject GetMutableDataflow(IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail, IList <IMaintainableRefObject> allowedDataflow)
        {
            var xref = complexRef.GetMaintainableRefObject();

            return(xref.HasVersion()
                       ? this._retrievalEngineContainer.DataflowRetrievalEngine.Retrieve(xref, returnDetail.EnumType, complexRef.GetVersionConstraints(), allowedDataflow).FirstOrDefault()
                       : this._retrievalEngineContainer.DataflowRetrievalEngine.RetrieveLatest(xref, returnDetail.EnumType, allowedDataflow));
        }
コード例 #3
0
        /// <summary>
        /// Gets a structure set @object, this expects the ref object either to contain
        ///     a URN or all the attributes required to uniquely identify the object.  If version information
        ///     is missing then the latest version is assumed.
        /// </summary>
        /// <param name="complexRef">
        /// The reference object defining the search parameters.
        /// </param>
        /// <param name="returnDetail">
        /// The return Detail.
        /// </param>
        /// <returns>
        /// The <see cref="T:Org.Sdmxsource.Sdmx.Api.Model.Mutable.Mapping.IStructureSetMutableObject"/> .
        /// </returns>
        public IStructureSetMutableObject GetMutableStructureSet(IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail)
        {
            var xref = complexRef.GetMaintainableRefObject();

            return(xref.HasVersion()
                       ? this._retrievalEngineContainer.StructureSetRetrievalEngine.Retrieve(xref, returnDetail.EnumType, complexRef.GetVersionConstraints()).FirstOrDefault()
                       : this._retrievalEngineContainer.StructureSetRetrievalEngine.RetrieveLatest(xref, returnDetail.EnumType));
        }
コード例 #4
0
        /// <summary>
        /// Gets a single Categorisation, this expects the ref object either to contain
        ///     a URN or all the attributes required to uniquely identify the object.  If version information
        ///     is missing then the latest version is assumed.
        /// </summary>
        /// <param name="complexRef">
        /// The reference object defining the search parameters.
        /// </param>
        /// <param name="returnDetail">
        /// The return Detail.
        /// </param>
        /// <returns>
        /// The <see cref="T:Org.Sdmxsource.Sdmx.Api.Model.Mutable.CategoryScheme.ICategorisationMutableObject"/> .
        /// </returns>
        public ICategorisationMutableObject GetMutableCategorisation(IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail)
        {
            var xref = complexRef.GetMaintainableRefObject();

            if (xref.HasVersion())
            {
                return(this._retrievalEngineContainer.CategorisationRetrievalEngine.Retrieve(xref, returnDetail.EnumType, complexRef.GetVersionConstraints()).FirstOrDefault());
            }

            //// TODO Change this when mapping store is modified to host proper categorisation artefacts
            return(this._retrievalEngineContainer.CategorisationRetrievalEngine.RetrieveLatest(xref, returnDetail.EnumType));
        }
コード例 #5
0
 /// <summary>
 /// Gets DataflowObjects that match the parameters in the ref @object.  If the ref @object is null or
 ///     has no attributes set, then this will be interpreted as a search for all DataflowObjects
 /// </summary>
 /// <param name="complexRef">
 /// The reference object defining the search parameters.
 /// </param>
 /// <param name="returnDetail">
 /// The return Detail.
 /// </param>
 /// <param name="allowedDataflow">
 /// The allowed Dataflow.
 /// </param>
 /// <returns>
 /// list of sdmxObjects that match the search criteria
 /// </returns>
 public ISet<IDataflowMutableObject> GetMutableDataflowObjects(
     IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail, IList<IMaintainableRefObject> allowedDataflow)
 {
     var xref = complexRef.GetMaintainableRefObject();
     return this._retrievalEngineContainer.DataflowRetrievalEngine.Retrieve(xref, returnDetail.EnumType, complexRef.GetVersionConstraints(), allowedDataflow);
 }
コード例 #6
0
 /// <summary>
 /// Gets a single Dataflow , this expects the ref object either to contain
 ///     a URN or all the attributes required to uniquely identify the object.  If version information
 ///     is missing then the latest version is assumed.
 /// </summary>
 /// <param name="complexRef">
 /// The reference object defining the search parameters.
 /// </param>
 /// <param name="returnDetail">
 /// The return Detail.
 /// </param>
 /// <param name="allowedDataflow">
 /// The allowed Dataflow.
 /// </param>
 /// <returns>
 /// The <see cref="T:Org.Sdmxsource.Sdmx.Api.Model.Mutable.DataStructure.IDataflowMutableObject"/> .
 /// </returns>
 public IDataflowMutableObject GetMutableDataflow(IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail, IList<IMaintainableRefObject> allowedDataflow)
 {
     var xref = complexRef.GetMaintainableRefObject();
     return xref.HasVersion()
                ? this._retrievalEngineContainer.DataflowRetrievalEngine.Retrieve(xref, returnDetail.EnumType, complexRef.GetVersionConstraints(), allowedDataflow).FirstOrDefault()
                : this._retrievalEngineContainer.DataflowRetrievalEngine.RetrieveLatest(xref, returnDetail.EnumType, allowedDataflow);
 }
コード例 #7
0
        /// <summary>
        /// Gets a single Categorisation, this expects the ref object either to contain
        ///     a URN or all the attributes required to uniquely identify the object.  If version information
        ///     is missing then the latest version is assumed.
        /// </summary>
        /// <param name="complexRef">
        /// The reference object defining the search parameters.
        /// </param>
        /// <param name="returnDetail">
        /// The return Detail.
        /// </param>
        /// <param name="allowedDataflows">
        /// The allowed Dataflows.
        /// </param>
        /// <returns>
        /// The <see cref="T:Org.Sdmxsource.Sdmx.Api.Model.Mutable.CategoryScheme.ICategorisationMutableObject"/> .
        /// </returns>
        public ICategorisationMutableObject GetMutableCategorisation(
            IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail, IList<IMaintainableRefObject> allowedDataflows)
        {
            var xref = complexRef.GetMaintainableRefObject();
            if (xref.HasVersion())
            {
                return this._retrievalEngineContainer.CategorisationRetrievalEngine.Retrieve(xref, returnDetail.EnumType, complexRef.GetVersionConstraints(), allowedDataflows).FirstOrDefault();
            }

            //// complexRef.GetVersionConstraints() Change this when mapping store is modified to host proper categorisation artefacts
            return this._retrievalEngineContainer.CategorisationRetrievalEngine.RetrieveLatest(xref, returnDetail.EnumType, allowedDataflows);
        }
        /// <summary>
        /// Gets StructureSetObjects that match the parameters in the ref @object.  If the ref @object is null or
        ///     has no attributes set, then this will be interpreted as a search for all StructureSetObjects
        /// </summary>
        /// <param name="complexRef">
        /// The reference object defining the search parameters.
        /// </param>
        /// <param name="returnDetail">
        /// The return Detail.
        /// </param>
        /// <returns>
        /// list of sdmxObjects that match the search criteria
        /// </returns>
        public ISet<IStructureSetMutableObject> GetMutableStructureSetObjects(IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail)
        {
            // 8.12 ISTAT ENHANCEMENT
            var xref = complexRef.GetMaintainableRefObject();
            return this._retrievalEngineContainer.StructureSetRetrievalEngine.Retrieve(xref, returnDetail.EnumType, complexRef.GetVersionConstraints());

        }
 /// <summary>
 /// Gets a structure set @object, this expects the ref object either to contain
 ///     a URN or all the attributes required to uniquely identify the object.  If version information
 ///     is missing then the latest version is assumed.
 /// </summary>
 /// <param name="complexRef">
 /// The reference object defining the search parameters.
 /// </param>
 /// <param name="returnDetail">
 /// The return Detail.
 /// </param>
 /// <returns>
 /// The <see cref="T:Org.Sdmxsource.Sdmx.Api.Model.Mutable.Mapping.IStructureSetMutableObject"/> .
 /// </returns>
 public IStructureSetMutableObject GetMutableStructureSet(IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail)
 {
     // 8.11 ISTAT ENHANCEMENT
     var xref = complexRef.GetMaintainableRefObject();
     return xref.HasVersion()
                ? this._retrievalEngineContainer.StructureSetRetrievalEngine.Retrieve(xref, returnDetail.EnumType, complexRef.GetVersionConstraints()).FirstOrDefault()
                : this._retrievalEngineContainer.StructureSetRetrievalEngine.RetrieveLatest(xref, returnDetail.EnumType);
 }
 /// <summary>
 /// Gets HierarchicalCodelistObjects that match the parameters in the ref @object.  If the ref @object is null or
 ///     has no attributes set, then this will be interpreted as a search for all HierarchicalCodelistObjects
 /// </summary>
 /// <param name="complexRef">
 /// The reference object defining the search parameters.
 /// </param>
 /// <param name="returnDetail">
 /// The return Detail.
 /// </param>
 /// <returns>
 /// list of sdmxObjects that match the search criteria
 /// </returns>
 public ISet<IHierarchicalCodelistMutableObject> GetMutableHierarchicCodeListObjects(IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail)
 {
     var xref = complexRef.GetMaintainableRefObject();
     return this._retrievalEngineContainer.HclRetrievalEngine.Retrieve(xref, returnDetail.EnumType, complexRef.GetVersionConstraints());
 }
 /// <summary>
 /// Gets a single HierarchicCodeList , this expects the ref object either to contain
 ///     a URN or all the attributes required to uniquely identify the object.  If version information
 ///     is missing then the latest version is assumed.
 /// </summary>
 /// <param name="complexRef">
 /// The reference object defining the search parameters.
 /// </param>
 /// <param name="returnDetail">
 /// The return Detail.
 /// </param>
 /// <returns>
 /// The <see cref="T:Org.Sdmxsource.Sdmx.Api.Model.Mutable.Codelist.IHierarchicalCodelistMutableObject"/> .
 /// </returns>
 public IHierarchicalCodelistMutableObject GetMutableHierarchicCodeList(IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail)
 {
     var xref = complexRef.GetMaintainableRefObject();
     return xref.HasVersion()
                ? this._retrievalEngineContainer.HclRetrievalEngine.Retrieve(xref, returnDetail.EnumType, complexRef.GetVersionConstraints()).FirstOrDefault()
                : this._retrievalEngineContainer.HclRetrievalEngine.RetrieveLatest(xref, returnDetail.EnumType);
 }
 /// <summary>
 /// Gets DataStructureObjects that match the parameters in the ref @object.  If the ref @object is null or
 ///     has no attributes set, then this will be interpreted as a search for all dataStructureObjects
 /// </summary>
 /// <param name="complexRef">
 /// The reference object defining the search parameters.
 /// </param>
 /// <param name="returnDetail">
 /// The return Detail.
 /// </param>
 /// <returns>
 /// list of sdmxObjects that match the search criteria
 /// </returns>
 public ISet<IDataStructureMutableObject> GetMutableDataStructureObjects(IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail)
 {
     var xref = complexRef.GetMaintainableRefObject();
     return this._retrievalEngineContainer.DSDRetrievalEngine.Retrieve(xref, returnDetail.EnumType, complexRef.GetVersionConstraints());
 }
 /// <summary>
 /// Gets a single CategoryScheme , this expects the ref object either to contain
 ///     a URN or all the attributes required to uniquely identify the object.  If version information
 ///     is missing then the latest version is assumed.
 /// </summary>
 /// <param name="complexRef">
 /// The reference object defining the search parameters.
 /// </param>
 /// <param name="returnDetail">
 /// The return Detail.
 /// </param>
 /// <returns>
 /// The <see cref="T:Org.Sdmxsource.Sdmx.Api.Model.Mutable.CategoryScheme.ICategorySchemeMutableObject"/> .
 /// </returns>
 public ICategorySchemeMutableObject GetMutableCategoryScheme(IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail)
 {
     var xref = complexRef.GetMaintainableRefObject();
     return xref.HasVersion()
                ? this._retrievalEngineContainer.CategorySchemeRetrievalEngine.Retrieve(xref, returnDetail.EnumType, complexRef.GetVersionConstraints()).FirstOrDefault()
                : this._retrievalEngineContainer.CategorySchemeRetrievalEngine.RetrieveLatest(xref, returnDetail.EnumType);
 }
コード例 #14
0
        /// <summary>
        /// Gets OrganisationUnitSchemeMutableObject that match the parameters in the ref @object.  If the ref @object is null or
        ///     has no attributes set, then this will be interpreted as a search for all OrganisationUnitSchemeMutableObject
        /// </summary>
        /// <param name="complexRef">
        /// The reference object defining the search parameters.
        /// </param>
        /// <param name="returnDetail">
        /// The return Detail.
        /// </param>
        /// <returns>
        /// list of sdmxObjects that match the search criteria
        /// </returns>
        public ISet <IOrganisationUnitSchemeMutableObject> GetMutableOrganisationUnitSchemeObjects(IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail)
        {
            var xref = complexRef.GetMaintainableRefObject();

            return(this._retrievalEngineContainer.OrganisationUnitSchemeRetrievalEngine.Retrieve(xref, returnDetail.EnumType, complexRef.GetVersionConstraints()));
        }
コード例 #15
0
        /// <summary>
        /// Gets HierarchicalCodelistObjects that match the parameters in the ref @object.  If the ref @object is null or
        ///     has no attributes set, then this will be interpreted as a search for all HierarchicalCodelistObjects
        /// </summary>
        /// <param name="complexRef">
        /// The reference object defining the search parameters.
        /// </param>
        /// <param name="returnDetail">
        /// The return Detail.
        /// </param>
        /// <returns>
        /// list of sdmxObjects that match the search criteria
        /// </returns>
        public ISet <IHierarchicalCodelistMutableObject> GetMutableHierarchicCodeListObjects(IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail)
        {
            var xref = complexRef.GetMaintainableRefObject();

            return(this._retrievalEngineContainer.HclRetrievalEngine.Retrieve(xref, returnDetail.EnumType, complexRef.GetVersionConstraints()));
        }