private ReportParametersGridLayoutValidator(List <Microsoft.ReportingServices.ReportIntermediateFormat.ParameterDef> parameters, ParametersGridLayout paramsLayout, PublishingErrorContext errorContext) { RSTrace.ProcessingTracer.Assert(paramsLayout != null, "paramsLayout should not be null"); m_paramsLayout = paramsLayout; m_parameters = parameters; m_errorContext = errorContext; InitParameterNames(); }
internal PublishingContextStruct(LocationFlags location, ObjectType objectType, int maxExpressionLength, PublishingErrorContext errorContext) { m_location = location; m_objectType = objectType; m_objectName = null; m_prefixPropertyName = null; m_maxExpressionLength = maxExpressionLength; m_errorContext = errorContext; }
public void Validate(PublishingErrorContext errorContext) { if (this.MapSpatialData is MapSpatialDataRegion && this.MapDataRegionName == null) { errorContext.Register(ProcessingErrorCode.rsMapLayerMissingProperty, Severity.Error, base.m_map.ObjectType, base.m_map.Name, base.m_name, "MapDataRegionName"); } if (!(this.MapSpatialData is MapSpatialDataRegion) && this.MapDataRegionName != null && this.MapBindingFieldPairs == null) { errorContext.Register(ProcessingErrorCode.rsMapLayerMissingProperty, Severity.Error, base.m_map.ObjectType, base.m_map.Name, base.m_name, "MapBindingFieldPairs"); } }
internal RmlValidatingReader(Stream stream, List <Pair <string, Stream> > namespaceSchemaStreamMap, PublishingErrorContext errorContext, ItemType itemType) : base(stream, namespaceSchemaStreamMap) { m_rdlElementHierarchy = new Stack <Pair <string, string> >(); m_microversioningValidationStructureElements = SetupMicroVersioningValidationStructureForElements(); m_microversioningValidationStructureAttributes = SetupMicroVersioningValidationStructureForAttributes(); SetupMicroVersioningSchemas(); base.ValidationEventHandler += ValidationCallBack; m_errorContext = errorContext; m_itemType = itemType; }
public void RestrictDataSetAggregates(PublishingErrorContext m_errorContext) { if (!this.m_usedOnlyInParameters && this.m_usedInAggregates && (this.m_dataRegions == null || this.m_dataRegions.Count == 0)) { if (this.m_defaultRelationships != null) { m_errorContext.Register(ProcessingErrorCode.rsDefaultRelationshipIgnored, Severity.Warning, this.ObjectType, this.Name, "DefaultRelationship"); } if (this.m_aggregates != null) { foreach (DataAggregateInfo aggregate in this.m_aggregates) { if (aggregate.AggregateType != 0) { m_errorContext.Register(ProcessingErrorCode.rsInvalidDataSetScopedAggregate, Severity.Error, this.ObjectType, this.Name, aggregate.AggregateType.ToString()); } } } } }
internal void RestrictDataSetAggregates(PublishingErrorContext m_errorContext) { if (m_usedOnlyInParameters || !m_usedInAggregates || (m_dataRegions != null && m_dataRegions.Count != 0)) { return; } if (m_defaultRelationships != null) { m_errorContext.Register(ProcessingErrorCode.rsDefaultRelationshipIgnored, Severity.Warning, ObjectType, Name, "DefaultRelationship"); } if (m_aggregates == null) { return; } foreach (DataAggregateInfo aggregate in m_aggregates) { if (aggregate.AggregateType != 0) { m_errorContext.Register(ProcessingErrorCode.rsInvalidDataSetScopedAggregate, Severity.Error, ObjectType, Name, aggregate.AggregateType.ToString()); } } }
public static bool Validate(List <Microsoft.ReportingServices.ReportIntermediateFormat.ParameterDef> parameters, ParametersGridLayout paramsLayout, PublishingErrorContext errorContext) { return(new ReportParametersGridLayoutValidator(parameters, paramsLayout, errorContext).Validate()); }
public static bool Validate(List <AspNetCore.ReportingServices.ReportIntermediateFormat.ParameterDef> parameters, ParametersGridLayout paramsLayout, PublishingErrorContext errorContext) { ReportParametersGridLayoutValidator reportParametersGridLayoutValidator = new ReportParametersGridLayoutValidator(parameters, paramsLayout, errorContext); return(reportParametersGridLayoutValidator.Validate()); }