Forced SDI as service class for all the spatial data services

This commit is contained in:
Luca Frosini 2020-03-17 10:47:25 +01:00
parent 340563dde6
commit 0cdc4aba75
9 changed files with 733 additions and 786 deletions

View File

@ -5,7 +5,7 @@
"calledMethodRegex": "^(?!.*\/(wfs|wms|wcs|wmts)).*$"
},
"replace": {
"serviceClass": "GeoServer",
"serviceClass": "SDI",
"serviceName": "GeoServer",
"calledMethod": "OTHER"
}

View File

@ -5,7 +5,7 @@
"calledMethodRegex": "^.*\/(?<Protocol>(wfs|wms|wcs|wmts)).*$"
},
"replace": {
"serviceClass": "GeoServer",
"serviceClass": "SDI",
"serviceName": "GeoServer",
"calledMethod": "/${Protocol}",
"_comment" : "Do not remove the initial / to avoid that wms is replaced with OTHER"

File diff suppressed because one or more lines are too long

View File

@ -10,8 +10,7 @@
"serviceName": "AuthorizationService",
"calledMethod": "generate"
}
},
{
},{
"match": {
"serviceClassRegex": "Common",
"serviceNameRegex": "AuthorizationService",
@ -22,8 +21,7 @@
"serviceName": "AuthorizationService",
"calledMethod": "retrieve"
}
},
{
},{
"match": {
"serviceClassRegex": "Common",
"serviceNameRegex": "AuthorizationService",
@ -34,8 +32,7 @@
"serviceName": "AuthorizationService",
"calledMethod": "scopes"
}
},
{
},{
"match": {
"serviceClassRegex": "Data-Catalogue",
"serviceNameRegex": "Catalogue-WS",
@ -46,8 +43,7 @@
"serviceName": "Catalogue-WS",
"calledMethod": "/rest/api/licenses/list"
}
},
{
},{
"match": {
"serviceClassRegex": "Data-Catalogue",
"serviceNameRegex": "Catalogue-WS",
@ -58,8 +54,7 @@
"serviceName": "Catalogue-WS",
"calledMethod": "/rest/api/organizations/list"
}
},
{
},{
"match": {
"serviceClassRegex": "Data-Catalogue",
"serviceNameRegex": "Catalogue-WS",
@ -70,8 +65,7 @@
"serviceName": "Catalogue-WS",
"calledMethod": "OTHER"
}
},
{
},{
"match": {
"serviceClassRegex": "DataAccess",
"serviceNameRegex": "CkanConnector",
@ -82,8 +76,7 @@
"serviceName": "CkanConnector",
"calledMethod": "connect"
}
},
{
},{
"match": {
"serviceClassRegex": "DataAccess",
"serviceNameRegex": "CkanConnector",
@ -94,8 +87,7 @@
"serviceName": "CkanConnector",
"calledMethod": "disconnect"
}
},
{
},{
"match": {
"serviceClassRegex": "WPS",
"serviceNameRegex": "DataMiner",
@ -106,8 +98,7 @@
"serviceName": "DataMiner",
"calledMethod": "describeProcess"
}
},
{
},{
"match": {
"serviceClassRegex": "WPS",
"serviceNameRegex": "DataMiner",
@ -118,8 +109,7 @@
"serviceName": "DataMiner",
"calledMethod": "getCapabilities"
}
},
{
},{
"match": {
"serviceClassRegex": "WPS",
"serviceNameRegex": "DataMiner",
@ -130,8 +120,7 @@
"serviceName": "DataMiner",
"calledMethod": "getResult"
}
},
{
},{
"match": {
"serviceClassRegex": "WPS",
"serviceNameRegex": "DataMiner",
@ -142,8 +131,7 @@
"serviceName": "DataMiner",
"calledMethod": "OTHER"
}
},
{
},{
"match": {
"serviceClassRegex": "WPS",
"serviceNameRegex": "DataMiner",
@ -154,8 +142,7 @@
"serviceName": "DataMiner",
"calledMethod": "stop"
}
},
{
},{
"match": {
"serviceClassRegex": "DataTransfer",
"serviceNameRegex": "data-transfer-service",
@ -166,8 +153,7 @@
"serviceName": "data-transfer-service",
"calledMethod": "getCapabilities"
}
},
{
},{
"match": {
"serviceClassRegex": "DataTransfer",
"serviceNameRegex": "data-transfer-service",
@ -178,8 +164,7 @@
"serviceName": "data-transfer-service",
"calledMethod": "upload"
}
},
{
},{
"match": {
"serviceClassRegex": "Index",
"serviceNameRegex": "FullTextIndexNode",
@ -190,8 +175,7 @@
"serviceName": "FullTextIndexNode",
"calledMethod": "delete"
}
},
{
},{
"match": {
"serviceClassRegex": "Index",
"serviceNameRegex": "FullTextIndexNode",
@ -202,8 +186,7 @@
"serviceName": "FullTextIndexNode",
"calledMethod": "dropCollection"
}
},
{
},{
"match": {
"serviceClassRegex": "Index",
"serviceNameRegex": "FullTextIndexNode",
@ -214,8 +197,7 @@
"serviceName": "FullTextIndexNode",
"calledMethod": "insert"
}
},
{
},{
"match": {
"serviceClassRegex": "Index",
"serviceNameRegex": "FullTextIndexNode",
@ -226,8 +208,7 @@
"serviceName": "FullTextIndexNode",
"calledMethod": "listCollections"
}
},
{
},{
"match": {
"serviceClassRegex": "Index",
"serviceNameRegex": "FullTextIndexNode",
@ -238,44 +219,40 @@
"serviceName": "FullTextIndexNode",
"calledMethod": "search"
}
},
{
},{
"match": {
"serviceClassRegex": "geoanalytics",
"serviceNameRegex": "geoanalytics-gos",
"calledMethodRegex": ".*GeoserverManagement.*"
},
"replace": {
"serviceClass": "geoanalytics",
"serviceClass": "SDI",
"serviceName": "geoanalytics-gos",
"calledMethod": "GeoserverManagement"
}
},
{
},{
"match": {
"serviceClassRegex": "geoanalytics",
"serviceNameRegex": "geoanalytics-gos",
"calledMethodRegex": ".*ShapeManagement.*"
},
"replace": {
"serviceClass": "geoanalytics",
"serviceClass": "SDI",
"serviceName": "geoanalytics-gos",
"calledMethod": "ShapeManagement"
}
},
{
},{
"match": {
"serviceClassRegex": "geoanalytics",
"serviceNameRegex": "geoanalytics-main-service",
"calledMethodRegex": ".*"
},
"replace": {
"serviceClass": "geoanalytics",
"serviceClass": "SDI",
"serviceName": "geoanalytics-main-service",
"calledMethod": "OTHER"
}
},
{
},{
"match": {
"serviceClassRegex": "(SDI)|(SpatialData)",
"serviceNameRegex": "GeoNetwork",
@ -286,8 +263,7 @@
"serviceName": "GeoNetwork",
"calledMethod": "create"
}
},
{
},{
"match": {
"serviceClassRegex": "(SDI)|(SpatialData)",
"serviceNameRegex": "GeoNetwork",
@ -298,8 +274,7 @@
"serviceName": "GeoNetwork",
"calledMethod": "delete"
}
},
{
},{
"match": {
"serviceClassRegex": "(SDI)|(SpatialData)",
"serviceNameRegex": "GeoNetwork",
@ -310,8 +285,7 @@
"serviceName": "GeoNetwork",
"calledMethod": "list"
}
},
{
},{
"match": {
"serviceClassRegex": "(SDI)|(SpatialData)",
"serviceNameRegex": "GeoNetwork",
@ -322,8 +296,7 @@
"serviceName": "GeoNetwork",
"calledMethod": "OTHER"
}
},
{
},{
"match": {
"serviceClassRegex": "(SDI)|(SpatialData)",
"serviceNameRegex": "GeoNetwork",
@ -334,8 +307,7 @@
"serviceName": "GeoNetwork",
"calledMethod": "read"
}
},
{
},{
"match": {
"serviceClassRegex": "(SDI)|(SpatialData)",
"serviceNameRegex": "GeoNetwork",
@ -346,8 +318,7 @@
"serviceName": "GeoNetwork",
"calledMethod": "search"
}
},
{
},{
"match": {
"serviceClassRegex": "(SDI)|(SpatialData)",
"serviceNameRegex": "GeoNetwork",
@ -358,33 +329,30 @@
"serviceName": "GeoNetwork",
"calledMethod": "update"
}
},
{
},{
"match": {
"serviceClassRegex": "(GeoServer)|(geoserver)|(SpatialData)",
"serviceNameRegex": "(GeoServer)|(geoserver)",
"calledMethodRegex": "^(?!.*\/(wfs|wms|wcs|wmts)).*$"
},
"replace": {
"serviceClass": "GeoServer",
"serviceClass": "SDI",
"serviceName": "GeoServer",
"calledMethod": "OTHER"
}
},
{
},{
"match": {
"serviceClassRegex": "(GeoServer)|(geoserver)|(SpatialData)",
"serviceNameRegex": "(GeoServer)|(geoserver)",
"calledMethodRegex": "^.*\/(?<Protocol>(wfs|wms|wcs|wmts)).*$"
},
"replace": {
"serviceClass": "GeoServer",
"serviceClass": "SDI",
"serviceName": "GeoServer",
"calledMethod": "/${Protocol}",
"_comment" : "Do not remove the initial / to avoid that wms is replaced with OTHER"
}
},
{
},{
"match": {
"serviceClassRegex": "Data-Catalogue",
"serviceNameRegex": "GRSFPublisher",
@ -395,8 +363,7 @@
"serviceName": "GRSFPublisher",
"calledMethod": "create"
}
},
{
},{
"match": {
"serviceClassRegex": "Data-Catalogue",
"serviceNameRegex": "GRSFPublisher",
@ -407,8 +374,7 @@
"serviceName": "GRSFPublisher",
"calledMethod": "delete"
}
},
{
},{
"match": {
"serviceClassRegex": "Data-Catalogue",
"serviceNameRegex": "GRSFPublisher",
@ -419,8 +385,7 @@
"serviceName": "GRSFPublisher",
"calledMethod": "getURLandIdFromName"
}
},
{
},{
"match": {
"serviceClassRegex": "Data-Catalogue",
"serviceNameRegex": "GRSFPublisher",
@ -431,8 +396,7 @@
"serviceName": "GRSFPublisher",
"calledMethod": "OTHER"
}
},
{
},{
"match": {
"serviceClassRegex": "Data-Catalogue",
"serviceNameRegex": "GRSFPublisher",
@ -443,8 +407,7 @@
"serviceName": "GRSFPublisher",
"calledMethod": "update"
}
},
{
},{
"match": {
"serviceClassRegex": "DataAnalysis",
"serviceNameRegex": "RConnector",
@ -455,8 +418,7 @@
"serviceName": "RConnector",
"calledMethod": "connect"
}
},
{
},{
"match": {
"serviceClassRegex": "DataAnalysis",
"serviceNameRegex": "RConnector",
@ -467,8 +429,7 @@
"serviceName": "RConnector",
"calledMethod": "OTHER"
}
},
{
},{
"match": {
"serviceClassRegex": "InformationSystem",
"serviceNameRegex": "resource-registry",
@ -479,8 +440,7 @@
"serviceName": "resource-registry",
"calledMethod": "OTHER"
}
},
{
},{
"match": {
"serviceClassRegex": "DataAccess",
"serviceNameRegex": "ShareLatex",
@ -491,8 +451,7 @@
"serviceName": "ShareLatex",
"calledMethod": "connect"
}
},
{
},{
"match": {
"serviceClassRegex": "DataAccess",
"serviceNameRegex": "ShareLatex",
@ -503,8 +462,7 @@
"serviceName": "ShareLatex",
"calledMethod": "disconnect"
}
},
{
},{
"match": {
"serviceClassRegex": "Search",
"serviceNameRegex": "SimulFishGrowthData",
@ -515,8 +473,7 @@
"serviceName": "SimulFishGrowthData",
"calledMethod": "BroodstockQuality"
}
},
{
},{
"match": {
"serviceClassRegex": "Search",
"serviceNameRegex": "SimulFishGrowthData",
@ -527,8 +484,7 @@
"serviceName": "SimulFishGrowthData",
"calledMethod": "CurrentRating"
}
},
{
},{
"match": {
"serviceClassRegex": "Search",
"serviceNameRegex": "SimulFishGrowthData",
@ -539,8 +495,7 @@
"serviceName": "SimulFishGrowthData",
"calledMethod": "FeedQuality"
}
},
{
},{
"match": {
"serviceClassRegex": "Search",
"serviceNameRegex": "SimulFishGrowthData",
@ -551,8 +506,7 @@
"serviceName": "SimulFishGrowthData",
"calledMethod": "Modeler"
}
},
{
},{
"match": {
"serviceClassRegex": "Search",
"serviceNameRegex": "SimulFishGrowthData",
@ -563,8 +517,7 @@
"serviceName": "SimulFishGrowthData",
"calledMethod": "OTHER"
}
},
{
},{
"match": {
"serviceClassRegex": "Search",
"serviceNameRegex": "SimulFishGrowthData",
@ -575,8 +528,7 @@
"serviceName": "SimulFishGrowthData",
"calledMethod": "OxygenRating"
}
},
{
},{
"match": {
"serviceClassRegex": "Search",
"serviceNameRegex": "SimulFishGrowthData",
@ -587,8 +539,7 @@
"serviceName": "SimulFishGrowthData",
"calledMethod": "Region"
}
},
{
},{
"match": {
"serviceClassRegex": "Search",
"serviceNameRegex": "SimulFishGrowthData",
@ -599,8 +550,7 @@
"serviceName": "SimulFishGrowthData",
"calledMethod": "Scenario"
}
},
{
},{
"match": {
"serviceClassRegex": "Search",
"serviceNameRegex": "SimulFishGrowthData",
@ -611,8 +561,7 @@
"serviceName": "SimulFishGrowthData",
"calledMethod": "Site"
}
},
{
},{
"match": {
"serviceClassRegex": "Search",
"serviceNameRegex": "SimulFishGrowthData",
@ -623,8 +572,7 @@
"serviceName": "SimulFishGrowthData",
"calledMethod": "Species"
}
},
{
},{
"match": {
"serviceClassRegex": "VREManagement",
"serviceNameRegex": "(SmartExecutor)|(smart-executor)",
@ -635,8 +583,7 @@
"serviceName": "smart-executor",
"calledMethod": "execute"
}
},
{
},{
"match": {
"serviceClassRegex": "VREManagement",
"serviceNameRegex": "(SmartExecutor)|(smart-executor)",
@ -647,8 +594,7 @@
"serviceName": "smart-executor",
"calledMethod": "getAvailablePlugins"
}
},
{
},{
"match": {
"serviceClassRegex": "VREManagement",
"serviceNameRegex": "(SmartExecutor)|(smart-executor)",
@ -659,8 +605,7 @@
"serviceName": "smart-executor",
"calledMethod": "getScheduledExecution"
}
},
{
},{
"match": {
"serviceClassRegex": "VREManagement",
"serviceNameRegex": "(SmartExecutor)|(smart-executor)",
@ -671,8 +616,7 @@
"serviceName": "smart-executor",
"calledMethod": "getState"
}
},
{
},{
"match": {
"serviceClassRegex": "VREManagement",
"serviceNameRegex": "(SmartExecutor)|(smart-executor)",
@ -683,8 +627,7 @@
"serviceName": "smart-executor",
"calledMethod": "OTHER"
}
},
{
},{
"match": {
"serviceClassRegex": "VREManagement",
"serviceNameRegex": "(SmartExecutor)|(smart-executor)",
@ -695,8 +638,7 @@
"serviceName": "smart-executor",
"calledMethod": "stop"
}
},
{
},{
"match": {
"serviceClassRegex": "content-management",
"serviceNameRegex": "storage",
@ -707,8 +649,7 @@
"serviceName": "storage",
"calledMethod": "OTHER"
}
},
{
},{
"match": {
"serviceClassRegex": "Application|DataAnalysis",
"serviceNameRegex": "TagMe",
@ -719,8 +660,7 @@
"serviceName": "TagMe",
"calledMethod": "tag"
}
},
{
},{
"match": {
"serviceClassRegex": "SDI",
"serviceNameRegex": "Thredds",
@ -731,8 +671,7 @@
"serviceName": "Thredds",
"calledMethod": "METADATA::${Collection}"
}
},
{
},{
"match": {
"serviceClassRegex": "SDI",
"serviceNameRegex": "Thredds",
@ -743,8 +682,7 @@
"serviceName": "Thredds",
"calledMethod": "METADATA::OTHER"
}
},
{
},{
"match": {
"serviceClassRegex": "SDI",
"serviceNameRegex": "Thredds",
@ -755,8 +693,7 @@
"serviceName": "Thredds",
"calledMethod": "OTHER"
}
},
{
},{
"match": {
"serviceClassRegex": "SDI",
"serviceNameRegex": "Thredds",
@ -767,8 +704,7 @@
"serviceName": "Thredds",
"calledMethod": "${Protocol}::${Collection}"
}
},
{
},{
"match": {
"serviceClassRegex": "SDI",
"serviceNameRegex": "Thredds",
@ -779,5 +715,4 @@
"serviceName": "Thredds",
"calledMethod": "${Protocol}::OTHER"
}
}
]
}]

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,12 @@
#!/bin/bash
echo "[" > allRules.json
cat **/*.json >> allRules.json
echo "]" >> allRules.json
sed -i 's/}{/},{/g' allRules.json
tr -d '\n' < allRules.json > allRules.min.json
sed -i 's/\t//g' allRules.min.json
sed -i 's/ / /g' allRules.min.json
sed -i 's/": "/":"/g' allRules.min.json
sed -i 's/": {/":{/g' allRules.min.json

View File

@ -5,7 +5,7 @@
"calledMethodRegex": ".*GeoserverManagement.*"
},
"replace": {
"serviceClass": "geoanalytics",
"serviceClass": "SDI",
"serviceName": "geoanalytics-gos",
"calledMethod": "GeoserverManagement"
}

View File

@ -5,7 +5,7 @@
"calledMethodRegex": ".*ShapeManagement.*"
},
"replace": {
"serviceClass": "geoanalytics",
"serviceClass": "SDI",
"serviceName": "geoanalytics-gos",
"calledMethod": "ShapeManagement"
}

View File

@ -5,7 +5,7 @@
"calledMethodRegex": ".*"
},
"replace": {
"serviceClass": "geoanalytics",
"serviceClass": "SDI",
"serviceName": "geoanalytics-main-service",
"calledMethod": "OTHER"
}