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)).*$" "calledMethodRegex": "^(?!.*\/(wfs|wms|wcs|wmts)).*$"
}, },
"replace": { "replace": {
"serviceClass": "GeoServer", "serviceClass": "SDI",
"serviceName": "GeoServer", "serviceName": "GeoServer",
"calledMethod": "OTHER" "calledMethod": "OTHER"
} }

View File

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

View File

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

View File

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