/// <summary> /// Initializes a new instance of the <see cref="StructureRequestV20Controller{TWriter}"/> class. /// </summary> /// <param name="responseGenerator"> /// The response generator. /// </param> /// <param name="structureSearchManager"> /// The structure search manager. /// </param> /// <param name="authStructureSearchManager"> /// The authentication structure search manager. /// </param> /// <param name="dataflowPrincipal"> /// The dataflow principal. /// </param> /// <exception cref="SdmxSemmanticException"> /// Operation not accepted with query used /// </exception> public StructureRequestV20Controller( IResponseGenerator <TWriter, ISdmxObjects> responseGenerator, IMutableStructureSearchManager structureSearchManager, IAuthMutableStructureSearchManager authStructureSearchManager, DataflowPrincipal dataflowPrincipal) : base(responseGenerator, dataflowPrincipal) { this._structureSearchManager = structureSearchManager; this._authStructureSearchManager = authStructureSearchManager; SdmxSchema sdmxSchemaV20 = SdmxSchema.GetFromEnum(SdmxSchemaEnumType.VersionTwo); this._manager = new QueryParsingManager(sdmxSchemaV20.EnumType, new QueryBuilder(null, new ConstrainQueryBuilderV2(), null)); }
/// <summary> /// Initializes a new instance of the <see cref="StructureRequestV21AdvancedController{TWriter}"/> class. /// </summary> /// <param name="responseGenerator"> /// The response generator. /// </param> /// <param name="authStructureSearchManager"> /// The authentication structure search manager. /// </param> /// <param name="structureSearchManager"> /// The structure search manager. /// </param> /// <param name="principal"> /// The principal. /// </param> /// <param name="soapOperation"> /// The SOAP operation. /// </param> /// <exception cref="SdmxSemmanticException"> /// Operation not accepted with query used /// </exception> public StructureRequestV21AdvancedController( IResponseGenerator <TWriter, ISdmxObjects> responseGenerator, IAuthAdvancedMutableStructureSearchManager authStructureSearchManager, IAdvancedMutableStructureSearchManager structureSearchManager, DataflowPrincipal principal, SoapOperation soapOperation) : base(responseGenerator, principal) { this._authStructureSearchManager = authStructureSearchManager; this._structureSearchManager = structureSearchManager; SdmxSchema sdmxSchemaV21 = SdmxSchema.GetFromEnum(SdmxSchemaEnumType.VersionTwoPointOne); this._manager = new QueryParsingManager(sdmxSchemaV21.EnumType); this._rootNode = soapOperation.GetQueryRootElementV21(); }