/// <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)); }
/// <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)); }
/// <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)); }
/// <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)); }
/// <summary> /// Initializes a new instance of the <see cref="ComplexStructureQueryCore"/> class. /// </summary> /// <param name="structureRef"> /// The structure ref. /// </param> /// <param name="queryMetadata"> /// The query metadata. /// </param> public ComplexStructureQueryCore(IComplexStructureReferenceObject structureRef, IComplexStructureQueryMetadata queryMetadata) { if (structureRef == null) { throw new SdmxSemmanticException("StructureRefernce cannot be null"); } this._structuRef = structureRef; if (queryMetadata == null) { throw new SdmxSemmanticException("StructureQueryMetadata cannot be null"); } this._queryMetadata = queryMetadata; }
/// <summary> /// Gets a single MetadataStructure , 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.MetadataStructure.IMetadataStructureDefinitionMutableObject"/> . /// </returns> public IMetadataStructureDefinitionMutableObject GetMutableMetadataStructure(IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail) { throw new NotImplementedException(); }
/// <summary> /// Gets a process @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.Process.IProcessMutableObject"/> . /// </returns> public IProcessMutableObject GetMutableProcessObject(IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail) { throw new NotImplementedException(); }
/// <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 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 set of maintainable objects which includes the maintainable being queried for, defined by the StructureQueryObject parameter. /// </summary> /// <param name="complexRef"> /// The complex Ref. /// </param> /// <param name="returnDetail"> /// The return Detail. /// </param> /// <param name="allowedDataflows"> /// The allowed Dataflow. /// </param> /// <returns> /// The <see cref="T:System.Collections.Generic.ISet`1"/> . /// </returns> public ISet<IMaintainableMutableObject> GetMutableMaintainables( IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail, IList<IMaintainableRefObject> allowedDataflows) { throw new NotImplementedException(); }
/// <summary> /// Gets a process @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.Process.IProcessMutableObject"/> . /// </returns> public IProcessMutableObject GetMutableProcessObject(IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail) { return this._retrievalManager.GetMutableProcessObject(complexRef, returnDetail); }
/// <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) { return(this._retrievalManager.GetMutableCategoryScheme(complexRef, returnDetail)); }
/// <summary> /// build SdmxParsingObject from IQueryWorkspace /// </summary> /// <param name="workspace">return object of CommonApi.parse request</param> /// <returns>SdmxParsingObject</returns> public static SdmxParsingObject Parse(IQueryWorkspace workspace) { try { if (workspace == null) { throw new SdmxException(typeof(SdmxParsingObject), FlyExceptionObject.FlyExceptionTypeEnum.ParsingQueryError); } SdmxParsingObject parsedObject = null; if (workspace.ComplexStructureQuery != null) { IComplexStructureReferenceObject workspaceRef = workspace.ComplexStructureQuery.StructureReference as IComplexStructureReferenceObject; parsedObject = new SdmxParsingObject(workspaceRef.ReferencedStructureType) { MaintainableId = workspaceRef.Id == null ? null : workspaceRef.Id.SearchParameter, AgencyId = workspaceRef.AgencyId == null ? null : workspaceRef.AgencyId.SearchParameter, _version = workspaceRef.VersionReference == null ? null : workspaceRef.VersionReference.Version, QueryDetail = (StructureQueryDetailEnumType)workspace.ComplexStructureQuery.StructureQueryMetadata.StructureQueryDetail.EnumType, References = workspace.ComplexStructureQuery.StructureQueryMetadata.StructureReferenceDetail.EnumType, SpecificReference = workspace.ComplexStructureQuery.StructureQueryMetadata.ReferenceSpecificStructures != null?workspace.ComplexStructureQuery.StructureQueryMetadata.ReferenceSpecificStructures.ToList() : null, }; if (workspaceRef.ReferencedStructureType.EnumType == SdmxStructureEnumType.CodeList) { //Constrin 2.1 /* * <query:CodeWhere> * <query:Annotation> * <query:Title>DataflowConstrain</query:Title> * <query:Text>ISTAT+DF+1.0+Concept</query:Text> * </query:Annotation> * </query:CodeWhere> * */ try { if (workspaceRef.ChildReference != null && workspaceRef.ChildReference.AnnotationReference != null) { string Title = workspaceRef.ChildReference.AnnotationReference.TitleReference.SearchParameter; string Text = workspaceRef.ChildReference.AnnotationReference.TextReference.SearchParameter; if (!string.IsNullOrEmpty(Title) && XDocument.Parse(Title).Root.Value.Trim() == "DataflowConstrain" && !string.IsNullOrEmpty(Text)) { string[] DataflowConstrin = XDocument.Parse(Text).Root.Value.Trim().Split('+'); if (DataflowConstrin.Length == 4) { parsedObject.ConstrainDataFlowAgency = DataflowConstrin[0]; parsedObject.ConstrainDataFlow = DataflowConstrin[1]; parsedObject.ConstrainDataFlowVersion = DataflowConstrin[2]; parsedObject.ConstrainConcept = DataflowConstrin[3]; } } } } catch (Exception) {//Non metto la Costrain } } } else if (workspace.SimpleStructureQueries != null && workspace.SimpleStructureQueries.Count > 0) { IStructureReference workspaceRef = workspace.SimpleStructureQueries[0] as IStructureReference; parsedObject = new SdmxParsingObject(workspaceRef.MaintainableStructureEnumType.EnumType) { MaintainableId = workspaceRef.MaintainableId, AgencyId = workspaceRef.AgencyId, _version = workspaceRef.Version, ResolveReferenceSdmx20 = workspace.ResolveReferences, QueryDetail = StructureQueryDetailEnumType.Full }; if (workspace.SimpleStructureQueries.Count == 2 && workspaceRef.MaintainableStructureEnumType.EnumType == SdmxStructureEnumType.CodeList && workspace.SimpleStructureQueries[1] is ConstrainableStructureReference && ((ConstrainableStructureReference)workspace.SimpleStructureQueries[1]).MaintainableStructureEnumType.EnumType == SdmxStructureEnumType.Dataflow && ((ConstrainableStructureReference)workspace.SimpleStructureQueries[1]).ConstraintObject != null) { ConstrainableStructureReference workspaceDF = workspace.SimpleStructureQueries[1] as ConstrainableStructureReference; Org.Sdmx.Resources.SdmxMl.Schemas.V20.common.ConstraintType ct = ((ConstrainableStructureReference)workspace.SimpleStructureQueries[1]).ConstraintObject; parsedObject.ConstrainDataFlow = workspaceDF.MaintainableId; parsedObject.ConstrainDataFlowAgency = workspaceDF.AgencyId; parsedObject.ConstrainDataFlowVersion = workspaceDF.Version; if (ct.CubeRegion != null && ct.CubeRegion.Count > 0 && ct.CubeRegion[0].Member != null && ct.CubeRegion[0].Member.Count > 0 && !string.IsNullOrEmpty(workspaceRef.MaintainableId)) { parsedObject.ConstrainConcept = ct.CubeRegion[0].Member[0].ComponentRef; if (ct.CubeRegion[0].Member.Count > 1) { parsedObject.ContrainConceptREF = new Dictionary <string, IList <MemberValueType> >(); for (int i = 1; i < ct.CubeRegion[0].Member.Count; i++) { parsedObject.ContrainConceptREF[ct.CubeRegion[0].Member[i].ComponentRef] = ct.CubeRegion[0].Member[i].MemberValue; } } } parsedObject.OtherRegistry = new List <ISdmxParsingObject>() { new SdmxParsingObject(workspaceDF.MaintainableStructureEnumType.EnumType) { MaintainableId = workspaceDF.MaintainableId, AgencyId = workspaceDF.AgencyId, _version = workspaceDF.Version, ResolveReferenceSdmx20 = workspace.ResolveReferences, QueryDetail = StructureQueryDetailEnumType.Full } }; } else if (workspace.SimpleStructureQueries.Count > 1) { parsedObject.OtherRegistry = new List <ISdmxParsingObject>(); for (int i = 1; i < workspace.SimpleStructureQueries.Count; i++) { workspaceRef = workspace.SimpleStructureQueries[i] as IStructureReference; parsedObject.OtherRegistry.Add(new SdmxParsingObject(workspaceRef.MaintainableStructureEnumType.EnumType) { MaintainableId = workspaceRef.MaintainableId, AgencyId = workspaceRef.AgencyId, _version = workspaceRef.Version, ResolveReferenceSdmx20 = workspace.ResolveReferences, QueryDetail = StructureQueryDetailEnumType.Full }); } } } if (parsedObject == null) { throw new SdmxException(typeof(SdmxParsingObject), FlyExceptionObject.FlyExceptionTypeEnum.StructureNotFound); } return(parsedObject); } catch (SdmxException) { throw; } catch (Exception ex) { throw new SdmxException(typeof(SdmxParsingObject), FlyExceptionObject.FlyExceptionTypeEnum.ParsingQueryError, ex); } }
/// <summary> /// Returns the version constraints. /// </summary> /// <param name="complexStructureReferenceObject"> /// The complex structure reference object. /// </param> /// <returns> /// The <see cref="VersionQueryType"/>. /// </returns> public static VersionQueryType GetVersionConstraints(this IComplexStructureReferenceObject complexStructureReferenceObject) { return(complexStructureReferenceObject.VersionReference != null && complexStructureReferenceObject.VersionReference.IsReturnLatest.IsTrue ? VersionQueryType.Latest : VersionQueryType.All); }
/// <summary> /// Gets MetadataFlowObjects 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 MetadataFlowObjects /// </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 <IMetadataFlowMutableObject> GetMutableMetadataflowObjects(IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail) { throw new NotImplementedException(); }
/// <summary> /// Gets ReportingTaxonomyObjects 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 ReportingTaxonomyObjects /// </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 <IReportingTaxonomyMutableObject> GetMutableReportingTaxonomyObjects(IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail) { throw new NotImplementedException(); }
/// <summary> /// Returns ProvisionAgreement beans that match the parameters in the ref bean. If the ref bean is null or /// has no attributes set, then this will be interpreted as a search for all ProvisionAgreement beans. /// </summary> /// <param name="complexRef"> /// the reference object defining the search parameters, can be empty or null /// </param> /// <param name="returnDetail"> /// The return Detail. /// </param> /// <returns> /// list of objects that match the search criteria /// </returns> public ISet <IProvisionAgreementMutableObject> GetMutableProvisionAgreementBeans(IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail) { throw new NotImplementedException(); }
/// <summary> /// Gets ReportingTaxonomyObjects 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 ReportingTaxonomyObjects /// </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<IReportingTaxonomyMutableObject> GetMutableReportingTaxonomyObjects(IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail) { throw new NotImplementedException(); }
/// <summary> /// Returns a single Content Constraint, 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 Content constraint. /// </returns> public IContentConstraintMutableObject GetMutableContentConstraint(IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail) { return(this._retrievalManager.GetMutableContentConstraint(complexRef, returnDetail)); }
/// <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 DataProviderSchemeMutableObjects 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 CodelistObjects /// </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 <IDataProviderSchemeMutableObject> GetMutableDataProviderSchemeObjects(IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail) { return(this._retrievalManager.GetMutableDataProviderSchemeObjects(complexRef, returnDetail)); }
/// <summary> /// Gets a single DataStructure. /// 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.DataStructure.IDataStructureMutableObject"/> . /// </returns> public IDataStructureMutableObject GetMutableDataStructure(IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail) { return this._retrievalManager.GetMutableDataStructure(complexRef, returnDetail); }
/// <summary> /// Gets a single DataStructure. /// 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.DataStructure.IDataStructureMutableObject"/> . /// </returns> public IDataStructureMutableObject GetMutableDataStructure(IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail) { return(this._retrievalManager.GetMutableDataStructure(complexRef, returnDetail)); }
/// <summary> /// Gets MetadataStructureObjects 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 MetadataStructureObjects /// </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<IMetadataStructureDefinitionMutableObject> GetMutableMetadataStructureObjects(IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail) { return this._retrievalManager.GetMutableMetadataStructureObjects(complexRef, returnDetail); }
/// <summary> /// Gets ReportingTaxonomyObjects 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 ReportingTaxonomyObjects /// </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<IReportingTaxonomyMutableObject> GetMutableReportingTaxonomyObjects(IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail) { return this._retrievalManager.GetMutableReportingTaxonomyObjects(complexRef, returnDetail); }
/// <summary> /// Gets a set of maintainable objects which includes the maintainable being queried for, defined by the StructureQueryObject parameter. /// </summary> /// <param name="complexRef"> /// The complex Ref. /// </param> /// <param name="returnDetail"> /// The return Detail. /// </param> /// <returns> /// The <see cref="T:System.Collections.Generic.ISet`1"/> . /// </returns> public ISet <IMaintainableMutableObject> GetMutableMaintainables(IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail) { switch (complexRef.ReferencedStructureType.EnumType) { case SdmxStructureEnumType.AgencyScheme: return(new HashSet <IMaintainableMutableObject>(this.GetMutableAgencySchemeObjects(complexRef, returnDetail))); case SdmxStructureEnumType.DataConsumerScheme: return(new HashSet <IMaintainableMutableObject>(this.GetMutableDataConsumerSchemeObjects(complexRef, returnDetail))); case SdmxStructureEnumType.DataProviderScheme: return(new HashSet <IMaintainableMutableObject>(this.GetMutableDataProviderSchemeObjects(complexRef, returnDetail))); case SdmxStructureEnumType.Categorisation: return(new HashSet <IMaintainableMutableObject>(this.GetMutableCategorisationObjects(complexRef, returnDetail))); case SdmxStructureEnumType.CategoryScheme: return(new HashSet <IMaintainableMutableObject>(this.GetMutableCategorySchemeObjects(complexRef, returnDetail))); case SdmxStructureEnumType.CodeList: return(new HashSet <IMaintainableMutableObject>(this.GetMutableCodelistObjects(complexRef, returnDetail))); case SdmxStructureEnumType.ConceptScheme: return(new HashSet <IMaintainableMutableObject>(this.GetMutableConceptSchemeObjects(complexRef, returnDetail))); case SdmxStructureEnumType.Dataflow: return(new HashSet <IMaintainableMutableObject>(this.GetMutableDataflowObjects(complexRef, returnDetail))); case SdmxStructureEnumType.HierarchicalCodelist: return(new HashSet <IMaintainableMutableObject>(this.GetMutableHierarchicCodeListObjects(complexRef, returnDetail))); case SdmxStructureEnumType.Dsd: return(new HashSet <IMaintainableMutableObject>(this.GetMutableDataStructureObjects(complexRef, returnDetail))); case SdmxStructureEnumType.MetadataFlow: return(new HashSet <IMaintainableMutableObject>(this.GetMutableMetadataflowObjects(complexRef, returnDetail))); case SdmxStructureEnumType.Msd: return(new HashSet <IMaintainableMutableObject>(this.GetMutableMetadataStructureObjects(complexRef, returnDetail))); case SdmxStructureEnumType.OrganisationUnitScheme: return(new HashSet <IMaintainableMutableObject>(this.GetMutableOrganisationUnitSchemeObjects(complexRef, returnDetail))); case SdmxStructureEnumType.Process: return(new HashSet <IMaintainableMutableObject>(this.GetMutableProcessObjects(complexRef, returnDetail))); case SdmxStructureEnumType.ReportingTaxonomy: return(new HashSet <IMaintainableMutableObject>(this.GetMutableReportingTaxonomyObjects(complexRef, returnDetail))); case SdmxStructureEnumType.StructureSet: return(new HashSet <IMaintainableMutableObject>(this.GetMutableStructureSetObjects(complexRef, returnDetail))); case SdmxStructureEnumType.ProvisionAgreement: return(new HashSet <IMaintainableMutableObject>(this.GetMutableProvisionAgreementBeans(complexRef, returnDetail))); case SdmxStructureEnumType.ContentConstraint: return(new HashSet <IMaintainableMutableObject>(this.GetMutableContentConstraintObjects(complexRef, returnDetail))); default: throw new SdmxNotImplementedException(ExceptionCode.Unsupported, complexRef.ReferencedStructureType); } }
/// <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 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) { return(this._retrievalManager.GetMutableHierarchicCodeListObjects(complexRef, returnDetail)); }
/// <summary> /// Gets a set of maintainable objects which includes the maintainable being queried for, defined by the StructureQueryObject parameter. /// </summary> /// <param name="complexRef"> /// The complex Ref. /// </param> /// <param name="returnDetail"> /// The return Detail. /// </param> /// <returns> /// The <see cref="T:System.Collections.Generic.ISet`1"/> . /// </returns> public ISet<IMaintainableMutableObject> GetMutableMaintainables(IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail) { switch (complexRef.ReferencedStructureType.EnumType) { case SdmxStructureEnumType.AgencyScheme: return new HashSet<IMaintainableMutableObject>(this.GetMutableAgencySchemeObjects(complexRef, returnDetail)); case SdmxStructureEnumType.DataConsumerScheme: return new HashSet<IMaintainableMutableObject>(this.GetMutableDataConsumerSchemeObjects(complexRef, returnDetail)); case SdmxStructureEnumType.DataProviderScheme: return new HashSet<IMaintainableMutableObject>(this.GetMutableDataProviderSchemeObjects(complexRef, returnDetail)); case SdmxStructureEnumType.Categorisation: return new HashSet<IMaintainableMutableObject>(this.GetMutableCategorisationObjects(complexRef, returnDetail)); case SdmxStructureEnumType.CategoryScheme: return new HashSet<IMaintainableMutableObject>(this.GetMutableCategorySchemeObjects(complexRef, returnDetail)); case SdmxStructureEnumType.CodeList: return new HashSet<IMaintainableMutableObject>(this.GetMutableCodelistObjects(complexRef, returnDetail)); case SdmxStructureEnumType.ConceptScheme: return new HashSet<IMaintainableMutableObject>(this.GetMutableConceptSchemeObjects(complexRef, returnDetail)); case SdmxStructureEnumType.Dataflow: return new HashSet<IMaintainableMutableObject>(this.GetMutableDataflowObjects(complexRef, returnDetail)); case SdmxStructureEnumType.HierarchicalCodelist: return new HashSet<IMaintainableMutableObject>(this.GetMutableHierarchicCodeListObjects(complexRef, returnDetail)); case SdmxStructureEnumType.Dsd: return new HashSet<IMaintainableMutableObject>(this.GetMutableDataStructureObjects(complexRef, returnDetail)); case SdmxStructureEnumType.MetadataFlow: return new HashSet<IMaintainableMutableObject>(this.GetMutableMetadataflowObjects(complexRef, returnDetail)); case SdmxStructureEnumType.Msd: return new HashSet<IMaintainableMutableObject>(this.GetMutableMetadataStructureObjects(complexRef, returnDetail)); case SdmxStructureEnumType.OrganisationUnitScheme: return new HashSet<IMaintainableMutableObject>(this.GetMutableOrganisationUnitSchemeObjects(complexRef, returnDetail)); case SdmxStructureEnumType.Process: return new HashSet<IMaintainableMutableObject>(this.GetMutableProcessObjects(complexRef, returnDetail)); case SdmxStructureEnumType.ReportingTaxonomy: return new HashSet<IMaintainableMutableObject>(this.GetMutableReportingTaxonomyObjects(complexRef, returnDetail)); case SdmxStructureEnumType.StructureSet: return new HashSet<IMaintainableMutableObject>(this.GetMutableStructureSetObjects(complexRef, returnDetail)); case SdmxStructureEnumType.ProvisionAgreement: return new HashSet<IMaintainableMutableObject>(this.GetMutableProvisionAgreementBeans(complexRef, returnDetail)); case SdmxStructureEnumType.ContentConstraint: return new HashSet<IMaintainableMutableObject>(this.GetMutableContentConstraintObjects(complexRef, returnDetail)); default: throw new SdmxNotImplementedException(ExceptionCode.Unsupported, complexRef.ReferencedStructureType); } }
/// <summary> /// Gets a set of maintainable objects which includes the maintainable being queried for, defined by the StructureQueryObject parameter. /// </summary> /// <param name="complexRef"> /// The complex Ref. /// </param> /// <param name="returnDetail"> /// The return Detail. /// </param> /// <param name="allowedDataflows"> /// The allowed Dataflow. /// </param> /// <returns> /// The <see cref="T:System.Collections.Generic.ISet`1"/> . /// </returns> public ISet <IMaintainableMutableObject> GetMutableMaintainables( IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail, IList <IMaintainableRefObject> allowedDataflows) { throw new NotImplementedException(); }
/// <summary> /// Gets MetadataFlowObjects 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 MetadataFlowObjects /// </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<IMetadataFlowMutableObject> GetMutableMetadataflowObjects(IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail) { throw new NotImplementedException(); }
/// <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> /// Returns ProvisionAgreement beans that match the parameters in the ref bean. If the ref bean is null or /// has no attributes set, then this will be interpreted as a search for all ProvisionAgreement beans. /// </summary> /// <param name="complexRef"> /// the reference object defining the search parameters, can be empty or null /// </param> /// <param name="returnDetail"> /// The return Detail. /// </param> /// <returns> /// list of objects that match the search criteria /// </returns> public ISet<IProvisionAgreementMutableObject> GetMutableProvisionAgreementBeans(IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail) { throw new NotImplementedException(); }
/// <summary> /// Returns a single Content Constraint, 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 Content constraint. /// </returns> public IContentConstraintMutableObject GetMutableContentConstraint(IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail) { return this._retrievalManager.GetMutableContentConstraint(complexRef, returnDetail); }
/// <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 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); }
/// <summary> /// Gets MetadataStructureObjects 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 MetadataStructureObjects /// </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 <IMetadataStructureDefinitionMutableObject> GetMutableMetadataStructureObjects(IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail) { return(this._retrievalManager.GetMutableMetadataStructureObjects(complexRef, returnDetail)); }
/// <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())); }
/// <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) { return this._retrievalManager.GetMutableCategoryScheme(complexRef, returnDetail); }
/// <summary> /// Gets a single Metadataflow , 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.MetadataStructure.IMetadataFlowMutableObject"/> . /// </returns> public IMetadataFlowMutableObject GetMutableMetadataflow(IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail) { return(this._retrievalManager.GetMutableMetadataflow(complexRef, returnDetail)); }
/// <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); }
/// <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) { return(this._retrievalManager.GetMutableOrganisationUnitSchemeObjects(complexRef, returnDetail)); }
/// <summary> /// Gets DataProviderSchemeMutableObjects 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 CodelistObjects /// </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<IDataProviderSchemeMutableObject> GetMutableDataProviderSchemeObjects(IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail) { return this._retrievalManager.GetMutableDataProviderSchemeObjects(complexRef, returnDetail); }
/// <summary> /// Gets a process @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.Process.IProcessMutableObject"/> . /// </returns> public IProcessMutableObject GetMutableProcessObject(IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail) { return(this._retrievalManager.GetMutableProcessObject(complexRef, returnDetail)); }
/// <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) { return this._retrievalManager.GetMutableHierarchicCodeListObjects(complexRef, returnDetail); }
/// <summary> /// Returns ProvisionAgreement beans that match the parameters in the ref bean. If the ref bean is null or /// has no attributes set, then this will be interpreted as a search for all ProvisionAgreement beans. /// </summary> /// <param name="complexRef"> /// the reference object defining the search parameters, can be empty or null /// </param> /// <param name="returnDetail"> /// The return Detail. /// </param> /// <returns> /// list of objects that match the search criteria /// </returns> public ISet <IProvisionAgreementMutableObject> GetMutableProvisionAgreementBeans(IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail) { return(this._retrievalManager.GetMutableProvisionAgreementBeans(complexRef, returnDetail)); }
/// <summary> /// Gets a single Metadataflow , 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.MetadataStructure.IMetadataFlowMutableObject"/> . /// </returns> public IMetadataFlowMutableObject GetMutableMetadataflow(IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail) { return this._retrievalManager.GetMutableMetadataflow(complexRef, returnDetail); }
/// <summary> /// Gets ReportingTaxonomyObjects 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 ReportingTaxonomyObjects /// </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 <IReportingTaxonomyMutableObject> GetMutableReportingTaxonomyObjects(IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail) { return(this._retrievalManager.GetMutableReportingTaxonomyObjects(complexRef, returnDetail)); }
/// <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) { return this._retrievalManager.GetMutableOrganisationUnitSchemeObjects(complexRef, returnDetail); }
/// <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) { return(this._retrievalManager.GetMutableStructureSetObjects(complexRef, returnDetail)); }
/// <summary> /// Returns ProvisionAgreement beans that match the parameters in the ref bean. If the ref bean is null or /// has no attributes set, then this will be interpreted as a search for all ProvisionAgreement beans. /// </summary> /// <param name="complexRef"> /// the reference object defining the search parameters, can be empty or null /// </param> /// <param name="returnDetail"> /// The return Detail. /// </param> /// <returns> /// list of objects that match the search criteria /// </returns> public ISet<IProvisionAgreementMutableObject> GetMutableProvisionAgreementBeans(IComplexStructureReferenceObject complexRef, ComplexStructureQueryDetail returnDetail) { return this._retrievalManager.GetMutableProvisionAgreementBeans(complexRef, returnDetail); }
/// <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); }
/// <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) { return this._retrievalManager.GetMutableStructureSetObjects(complexRef, returnDetail); }
/// <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()); }