Exemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="AdvancedDataController{TWriter}" /> class.
        /// </summary>
        /// <param name="operation">The operation.</param>
        /// <param name="decoratedController">The decorated Controller.</param>
        /// <param name="sdmxRetrievalManager">The sdmx Retrieval Manager.</param>
        /// <exception cref="System.ArgumentNullException"><see cref="_sdmxRetrievalManager"/> is null.</exception>
        /// <exception cref="SdmxSemmanticException">Operation not accepted with query used</exception>
        public AdvancedDataController(SoapOperation operation, IController <IComplexDataQuery, TWriter> decoratedController, ISdmxObjectRetrievalManager sdmxRetrievalManager)
            : base(decoratedController)
        {
            if (sdmxRetrievalManager == null)
            {
                throw new ArgumentNullException("sdmxRetrievalManager");
            }

            this._sdmxRetrievalManager = sdmxRetrievalManager;
            this._rootNode             = operation.GetQueryRootElementV21();
        }
Exemplo n.º 2
0
        /// <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();
        }