public InspireServiceStatusReport(Models.StatusReport statusReport) { if (statusReport != null) { NumberOfInspireServices = statusReport.NumberOfInspireDataServices(); Date = statusReport.Date; NumberOfItemsWithMetadata = new NumberOfStatuses(statusReport.NumberOfInspireDataServiceWithMetadata(Good), statusReport.NumberOfInspireDataServiceWithMetadata(Useable), statusReport.NumberOfInspireDataServiceWithMetadata(Deficient), statusReport.NumberOfInspireDataServiceWithMetadata(Notset)); NumberOfItemsWithMetadataInSearchService = new NumberOfStatuses(statusReport.NumberOfInspireDataServicesWithMetadataService(Good), statusReport.NumberOfInspireDataServicesWithMetadataService(Useable), statusReport.NumberOfInspireDataServicesWithMetadataService(Deficient), statusReport.NumberOfInspireDataServicesWithMetadataService(Notset)); NumberOfItemsWithServiceStatus = new NumberOfStatuses(statusReport.NumberOfItemsWithServiceStatus(Good), statusReport.NumberOfItemsWithServiceStatus(Useable), statusReport.NumberOfItemsWithServiceStatus(Deficient), statusReport.NumberOfItemsWithServiceStatus(Notset)); NumberOfItemsWithSds = statusReport.NumberOfInspireDataServiceWithSds(); NumberOfItemsWithoutSds = GetNumberOfItemsWithoutSds(); NumberOfItemsWithNetworkService = statusReport.NumberOfInspireDataServiceWithNetworkService(); NumberOfItemsWithoutNetworkService = GetNumberOfItemsWithoutNetworkService(); } }
public InspireDataSetStatusReport(Models.StatusReport statusReport) { if (statusReport.IsInspireDatasetReport()) { NumberOfInspireDatasets = statusReport.NumberOfInspireDataServices(); Date = statusReport.Date; NumberOfItemsWithMetadata = new NumberOfStatuses(statusReport.NumberOfInspireDatasetsWithMetadata(Good), statusReport.NumberOfInspireDatasetsWithMetadata(Useable), statusReport.NumberOfInspireDatasetsWithMetadata(Deficient), statusReport.NumberOfInspireDatasetsWithMetadata(Notset)); NumberOfItemsWithMetadataService = new NumberOfStatuses(statusReport.NumberOfItemsWithMetadataService(Good), statusReport.NumberOfItemsWithMetadataService(Useable), statusReport.NumberOfItemsWithMetadataService(Deficient), statusReport.NumberOfItemsWithMetadataService(Notset)); NumberOfItemsWithDistribution = new NumberOfStatuses(statusReport.NumberOfInspireDatasetsWithDistribution(Good), statusReport.NumberOfInspireDatasetsWithDistribution(Useable), statusReport.NumberOfInspireDatasetsWithDistribution(Deficient), statusReport.NumberOfInspireDatasetsWithDistribution(Notset)); NumberOfItemsWithWms = new NumberOfStatuses(statusReport.NumberOfInspireDatasetsWithWms(Good), statusReport.NumberOfInspireDatasetsWithWms(Useable), statusReport.NumberOfInspireDatasetsWithWms(Deficient), statusReport.NumberOfInspireDatasetsWithWms(Notset)); NumberOfItemsWithWfs = new NumberOfStatuses(statusReport.NumberOfInspireDatasetsWithWfs(Good), statusReport.NumberOfInspireDatasetsWithWfs(Useable), statusReport.NumberOfInspireDatasetsWithWfs(Deficient), statusReport.NumberOfInspireDatasetsWithWfs(Notset)); NumberOfItemsWithAtomFeed = new NumberOfStatuses(statusReport.NumberOfInspireDatasetsWithAtomFeed(Good), statusReport.NumberOfInspireDatasetsWithAtomFeed(Useable), statusReport.NumberOfInspireDatasetsWithAtomFeed(Deficient), statusReport.NumberOfInspireDatasetsWithAtomFeed(Notset)); NumberOfItemsWithWfsOrAtom = new NumberOfStatuses(statusReport.NumberOfItemsWithWfsOrAtom(Good), statusReport.NumberOfItemsWithWfsOrAtom(Useable), statusReport.NumberOfItemsWithWfsOrAtom(Deficient), statusReport.NumberOfItemsWithWfsOrAtom(Notset)); NumberOfItemsWithHarmonizedData = new NumberOfStatuses(statusReport.NumberOfItemsWithHarmonizedData(Good), statusReport.NumberOfItemsWithHarmonizedData(Useable), statusReport.NumberOfItemsWithHarmonizedData(Deficient), statusReport.NumberOfItemsWithHarmonizedData(Notset)); NumberOfItemsWithSpatialDataService = new NumberOfStatuses(statusReport.NumberOfItemsWithSpatialDataService(Good), statusReport.NumberOfItemsWithSpatialDataService(Useable), statusReport.NumberOfItemsWithSpatialDataService(Deficient), statusReport.NumberOfItemsWithSpatialDataService(Notset)); NumberOfInspireDatasets = statusReport.NumberOfInspireDatasets(); } }
public MareanoDatasetStatusReport(StatusReport statusReport) { Date = statusReport.Date; NumberOfDatasets = statusReport.NumberOfIems(); NumberOfItemsWithFindable = new NumberOfStatuses(statusReport.NumberOfMareanoDatasetsWithFindable(Good), statusReport.NumberOfMareanoDatasetsWithFindable(Useable), statusReport.NumberOfMareanoDatasetsWithFindable(Deficient), statusReport.NumberOfMareanoDatasetsWithFindable(Notset), statusReport.NumberOfMareanoDatasetsWithFindable(Satisfactory) ); NumberOfItemsWithAccesible = new NumberOfStatuses(statusReport.NumberOfMareanoDatasetsWithAccesible(Good), statusReport.NumberOfMareanoDatasetsWithAccesible(Useable), statusReport.NumberOfMareanoDatasetsWithAccesible(Deficient), statusReport.NumberOfMareanoDatasetsWithAccesible(Notset), statusReport.NumberOfMareanoDatasetsWithAccesible(Satisfactory) ); NumberOfItemsWithInteroperable = new NumberOfStatuses(statusReport.NumberOfMareanoDatasetsWithInteroperable(Good), statusReport.NumberOfMareanoDatasetsWithInteroperable(Useable), statusReport.NumberOfMareanoDatasetsWithInteroperable(Deficient), statusReport.NumberOfMareanoDatasetsWithInteroperable(Notset), statusReport.NumberOfMareanoDatasetsWithInteroperable(Satisfactory) ); NumberOfItemsWithReUseable = new NumberOfStatuses(statusReport.NumberOfMareanoDatasetsWithReUsable(Good), statusReport.NumberOfMareanoDatasetsWithReUsable(Useable), statusReport.NumberOfMareanoDatasetsWithReUsable(Deficient), statusReport.NumberOfMareanoDatasetsWithReUsable(Notset), statusReport.NumberOfMareanoDatasetsWithReUsable(Satisfactory) ); NumberOfItemsWithMetadata = new NumberOfStatuses(statusReport.NumberOfMareanoDatasetsWithMetadata(Good), statusReport.NumberOfMareanoDatasetsWithMetadata(Useable), statusReport.NumberOfMareanoDatasetsWithMetadata(Deficient), statusReport.NumberOfMareanoDatasetsWithMetadata(Notset), statusReport.NumberOfMareanoDatasetsWithMetadata(Satisfactory) ); NumberOfItemsWithProductSpecification = new NumberOfStatuses( statusReport.NumberOfMareanoDatasetsWithProductSpecification(Good), statusReport.NumberOfMareanoDatasetsWithProductSpecification(Useable), statusReport.NumberOfMareanoDatasetsWithProductSpecification(Deficient), statusReport.NumberOfMareanoDatasetsWithProductSpecification(Notset), statusReport.NumberOfMareanoDatasetsWithProductSpecification(Satisfactory)); NumberOfItemsWithProductSheet = new NumberOfStatuses( statusReport.NumberOfMareanoDatasetsWithProductSheet(Good), statusReport.NumberOfMareanoDatasetsWithProductSheet(Useable), statusReport.NumberOfMareanoDatasetsWithProductSheet(Deficient), statusReport.NumberOfMareanoDatasetsWithProductSheet(Notset), statusReport.NumberOfMareanoDatasetsWithProductSheet(Satisfactory)); NumberOfItemsWithPresentationRules = new NumberOfStatuses( statusReport.NumberOfMareanoDatasetsWithPresentationRules(Good), statusReport.NumberOfMareanoDatasetsWithPresentationRules(Useable), statusReport.NumberOfMareanoDatasetsWithPresentationRules(Deficient), statusReport.NumberOfMareanoDatasetsWithPresentationRules(Notset), statusReport.NumberOfMareanoDatasetsWithPresentationRules(Satisfactory)); NumberOfItemsWithSosiRequirements = new NumberOfStatuses( statusReport.NumberOfMareanoDatasetsWithSosiRequirements(Good), statusReport.NumberOfMareanoDatasetsWithSosiRequirements(Useable), statusReport.NumberOfMareanoDatasetsWithSosiRequirements(Deficient), statusReport.NumberOfMareanoDatasetsWithSosiRequirements(Notset), statusReport.NumberOfMareanoDatasetsWithSosiRequirements(Satisfactory)); NumberOfItemsWithGmlRequirements = new NumberOfStatuses( statusReport.NumberOfMareanoDatasetsWithGmlRequirements(Good), statusReport.NumberOfMareanoDatasetsWithGmlRequirements(Useable), statusReport.NumberOfMareanoDatasetsWithGmlRequirements(Deficient), statusReport.NumberOfMareanoDatasetsWithGmlRequirements(Notset), statusReport.NumberOfMareanoDatasetsWithGmlRequirements(Satisfactory)); NumberOfItemsWithWms = new NumberOfStatuses( statusReport.NumberOfMareanoDatasetsWithWms(Good), statusReport.NumberOfMareanoDatasetsWithWms(Useable), statusReport.NumberOfMareanoDatasetsWithWms(Deficient), statusReport.NumberOfMareanoDatasetsWithWms(Notset), statusReport.NumberOfMareanoDatasetsWithWms(Satisfactory)); NumberOfItemsWithWfs = new NumberOfStatuses( statusReport.NumberOfMareanoDatasetsWithWfs(Good), statusReport.NumberOfMareanoDatasetsWithWfs(Useable), statusReport.NumberOfMareanoDatasetsWithWfs(Deficient), statusReport.NumberOfMareanoDatasetsWithWfs(Notset), statusReport.NumberOfMareanoDatasetsWithWfs(Satisfactory)); NumberOfItemsWithAtomFeed = new NumberOfStatuses( statusReport.NumberOfMareanoDatasetsWithAtomFeed(Good), statusReport.NumberOfMareanoDatasetsWithAtomFeed(Useable), statusReport.NumberOfMareanoDatasetsWithAtomFeed(Deficient), statusReport.NumberOfMareanoDatasetsWithAtomFeed(Notset), statusReport.NumberOfMareanoDatasetsWithAtomFeed(Satisfactory) ); NumberOfItemsWithCommon = new NumberOfStatuses( statusReport.NumberOfItemsWithCommon(Good), statusReport.NumberOfItemsWithCommon(Useable), statusReport.NumberOfItemsWithCommon(Deficient), statusReport.NumberOfItemsWithCommon(Notset), statusReport.NumberOfItemsWithCommon(Satisfactory)); }
public GeodatalovDatasetStatusReport(StatusReport statusReport) { Date = statusReport.Date; NumberOfDatasets = statusReport.NumberOfIems(); NumberOfItemsWithMetadata = new NumberOfStatuses(statusReport.NumberOfGeodatalovDatasetsWithMetadata(Good), statusReport.NumberOfGeodatalovDatasetsWithMetadata(Useable), statusReport.NumberOfGeodatalovDatasetsWithMetadata(Deficient), statusReport.NumberOfGeodatalovDatasetsWithMetadata(Notset)); NumberOfItemsWithProductSpecification = new NumberOfStatuses( statusReport.NumberOfGeodatalovDatasetsWithProductSpecification(Good), statusReport.NumberOfGeodatalovDatasetsWithProductSpecification(Useable), statusReport.NumberOfGeodatalovDatasetsWithProductSpecification(Deficient), statusReport.NumberOfGeodatalovDatasetsWithProductSpecification(Notset)); NumberOfItemsWithSosiRequirements = new NumberOfStatuses( statusReport.NumberOfGeodatalovDatasetsWithSosiRequirements(Good), statusReport.NumberOfGeodatalovDatasetsWithSosiRequirements(Useable), statusReport.NumberOfGeodatalovDatasetsWithSosiRequirements(Deficient), statusReport.NumberOfGeodatalovDatasetsWithSosiRequirements(Notset)); NumberOfItemsWithGmlRequirements = new NumberOfStatuses( statusReport.NumberOfGeodatalovDatasetsWithGmlRequirements(Good), statusReport.NumberOfGeodatalovDatasetsWithGmlRequirements(Useable), statusReport.NumberOfGeodatalovDatasetsWithGmlRequirements(Deficient), statusReport.NumberOfGeodatalovDatasetsWithGmlRequirements(Notset)); NumberOfItemsWithWms = new NumberOfStatuses( statusReport.NumberOfGeodatalovDatasetsWithWms(Good), statusReport.NumberOfGeodatalovDatasetsWithWms(Useable), statusReport.NumberOfGeodatalovDatasetsWithWms(Deficient), statusReport.NumberOfGeodatalovDatasetsWithWms(Notset)); NumberOfItemsWithWfs = new NumberOfStatuses( statusReport.NumberOfGeodatalovDatasetsWithWfs(Good), statusReport.NumberOfGeodatalovDatasetsWithWfs(Useable), statusReport.NumberOfGeodatalovDatasetsWithWfs(Deficient), statusReport.NumberOfGeodatalovDatasetsWithWfs(Notset)); NumberOfItemsWithAtomFeed = new NumberOfStatuses( statusReport.NumberOfGeodatalovDatasetsWithAtomFeed(Good), statusReport.NumberOfGeodatalovDatasetsWithAtomFeed(Useable), statusReport.NumberOfGeodatalovDatasetsWithAtomFeed(Deficient), statusReport.NumberOfGeodatalovDatasetsWithAtomFeed(Notset)); NumberOfItemsWithCommon = new NumberOfStatuses( statusReport.NumberOfItemsWithCommon(Good), statusReport.NumberOfItemsWithCommon(Useable), statusReport.NumberOfItemsWithCommon(Deficient), statusReport.NumberOfItemsWithCommon(Notset)); NumberOfItemsWithInspireTheme = statusReport.NumberOfGeodatalovDatasetsWithInspireTheme(); NumberOfItemsWithoutInspireTheme = NumberOfDatasets - NumberOfItemsWithInspireTheme; NumberOfItemsWithDok = statusReport.NumberOfGeodatalovDatasetsWithDok(); NumberOfItemsWithoutDok = NumberOfDatasets - NumberOfItemsWithDok; NumberOfItemsWithNationalDatasets = statusReport.NumberOfGeodatalovDatasetsWithNationalDataset(); NumberOfItemsWithoutNationalDatasets = NumberOfDatasets - NumberOfItemsWithNationalDatasets; NumberOfItemsWithPlan = statusReport.NumberOfGeodatalovDatasetsWithPlan(); NumberOfItemsWithoutPlan = NumberOfDatasets - NumberOfItemsWithPlan; NumberOfItemsWithGeodatalov = statusReport.NumberOfGeodatalovDatasetsWithGeodatalov(); NumberOfItemsWithoutGeodatalov = NumberOfDatasets - NumberOfItemsWithGeodatalov; }
public DokStatusReport(Models.StatusReport statusReport) { if (statusReport != null) { Date = statusReport.Date; NumberOfDatasets = statusReport.NumberOfIems(); NumberOfItemsWithMetadata = new NumberOfStatuses(statusReport.NumberOfItemsWithMetadata(Good), statusReport.NumberOfItemsWithMetadata(Useable), statusReport.NumberOfItemsWithMetadata(Deficient), statusReport.NumberOfItemsWithMetadata(Notset)); NumberOfItemsWithProductsheet = new NumberOfStatuses(statusReport.NumberOfItemsWithProductsheet(Good), statusReport.NumberOfItemsWithProductsheet(Useable), statusReport.NumberOfItemsWithProductsheet(Deficient), statusReport.NumberOfItemsWithProductsheet(Notset)); NumberOfItemsWithPresentationRules = new NumberOfStatuses(statusReport.NumberOfItemsWithPresentationRules(Good), statusReport.NumberOfItemsWithPresentationRules(Useable), statusReport.NumberOfItemsWithPresentationRules(Deficient), statusReport.NumberOfItemsWithPresentationRules(Notset)); NumberOfItemsWithProductSpecification = new NumberOfStatuses( statusReport.NumberOfItemsWithProductSpecification(Good), statusReport.NumberOfItemsWithProductSpecification(Useable), statusReport.NumberOfItemsWithProductSpecification(Deficient), statusReport.NumberOfItemsWithProductSpecification(Notset)); NumberOfItemsWithWms = new NumberOfStatuses(statusReport.NumberOfItemsWithWms(Good), statusReport.NumberOfItemsWithWms(Useable), statusReport.NumberOfItemsWithWms(Deficient), statusReport.NumberOfItemsWithWms(Notset)); NumberOfItemsWithWfs = new NumberOfStatuses(statusReport.NumberOfItemsWithWfs(Good), statusReport.NumberOfItemsWithWfs(Useable), statusReport.NumberOfItemsWithWfs(Deficient), statusReport.NumberOfItemsWithWfs(Notset)); NumberOfItemsWithSosiRequirements = new NumberOfStatuses( statusReport.NumberOfItemsWithSosiRequirements(Good), statusReport.NumberOfItemsWithSosiRequirements(Useable), statusReport.NumberOfItemsWithSosiRequirements(Deficient), statusReport.NumberOfItemsWithSosiRequirements(Notset)); NumberOfItemsWithGmlRequirements = new NumberOfStatuses( statusReport.NumberOfItemsWithGmlRequirements(Good), statusReport.NumberOfItemsWithGmlRequirements(Useable), statusReport.NumberOfItemsWithGmlRequirements(Deficient), statusReport.NumberOfItemsWithGmlRequirements(Notset)); NumberOfItemsWithAtomFeed = new NumberOfStatuses(statusReport.NumberOfItemsWithAtomFeed(Good), statusReport.NumberOfItemsWithAtomFeed(Useable), statusReport.NumberOfItemsWithAtomFeed(Deficient), statusReport.NumberOfItemsWithAtomFeed(Notset)); NumberOfItemsWithDistribution = new NumberOfStatuses(statusReport.NumberOfItemsWithDistribution(Good), statusReport.NumberOfItemsWithDistribution(Useable), statusReport.NumberOfItemsWithDistribution(Deficient), statusReport.NumberOfItemsWithDistribution(Notset)); } }