Adding and fixing rules
This commit is contained in:
parent
ead2ad393b
commit
34935414ea
|
@ -84,7 +84,11 @@ public class RegexRulesAggregator implements Runnable {
|
||||||
return matcherReplace;
|
return matcherReplace;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void vacumRules() {
|
||||||
|
synchronized(matcherReplaceList) {
|
||||||
|
matcherReplaceList = new ArrayList<>();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public void readConfiguration() {
|
public void readConfiguration() {
|
||||||
|
|
|
@ -56,6 +56,7 @@ public class TestRules extends ContextTest {
|
||||||
}
|
}
|
||||||
rulesFiles.addAll(Arrays.asList(dir.listFiles(filenameFilter)));
|
rulesFiles.addAll(Arrays.asList(dir.listFiles(filenameFilter)));
|
||||||
RegexRulesAggregator regexRulesAggregator = RegexRulesAggregator.getInstance();
|
RegexRulesAggregator regexRulesAggregator = RegexRulesAggregator.getInstance();
|
||||||
|
regexRulesAggregator.vacumRules();
|
||||||
for(File rulesFile : rulesFiles) {
|
for(File rulesFile : rulesFiles) {
|
||||||
ObjectMapper mapper = DSMapper.getObjectMapper();
|
ObjectMapper mapper = DSMapper.getObjectMapper();
|
||||||
MatcherReplace matcherReplace = mapper.readValue(rulesFile, MatcherReplace.class);
|
MatcherReplace matcherReplace = mapper.readValue(rulesFile, MatcherReplace.class);
|
||||||
|
@ -123,6 +124,7 @@ public class TestRules extends ContextTest {
|
||||||
sur.setServiceName(serviceName);
|
sur.setServiceName(serviceName);
|
||||||
sur.setCalledMethod(calledMethod);
|
sur.setCalledMethod(calledMethod);
|
||||||
sur.validate();
|
sur.validate();
|
||||||
|
sur.validate();
|
||||||
// logger.trace("To Be aggregated ServiceUsageRecord {}", sur);
|
// logger.trace("To Be aggregated ServiceUsageRecord {}", sur);
|
||||||
|
|
||||||
long oldMinInvocationTime = aggregated.getMinInvocationTime();
|
long oldMinInvocationTime = aggregated.getMinInvocationTime();
|
||||||
|
@ -212,12 +214,13 @@ public class TestRules extends ContextTest {
|
||||||
"-----------------------------------------------------------------------------------------------------\n\n\n");
|
"-----------------------------------------------------------------------------------------------------\n\n\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testSingleRule() throws Exception {
|
public void testSingleRule() throws Exception {
|
||||||
allRules();
|
allRules();
|
||||||
File rulesDirectory = getRulesDirectory();
|
File rulesDirectory = getRulesDirectory();
|
||||||
File rulesDirFile = new File(rulesDirectory, "data-transfer-service");
|
File rulesDirFile = new File(rulesDirectory, "dataminer-pool-manager");
|
||||||
File rulesFile = new File(rulesDirFile, "data-transfer-service-transfer.json");
|
File rulesFile = new File(rulesDirFile, "dataminer-pool-manager-OTHER.json");
|
||||||
testRule(rulesFile);
|
testRule(rulesFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
Data-Catalogue,Catalogue-WS,/rest/api/groups/create
|
||||||
|
Data-Catalogue,Catalogue-WS,/rest/api/groups/show
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
"match": {
|
||||||
|
"serviceClassRegex": "(Data-Catalogue)|(DataPublishing)",
|
||||||
|
"serviceNameRegex": "Catalogue-WS",
|
||||||
|
"calledMethodRegex": "(\/rest\/(api\/){0,1})group(s){0,1}\/(?<Action>(create|show|purge|delete))(\/{0,1})"
|
||||||
|
},
|
||||||
|
"replace": {
|
||||||
|
"serviceClass": "DataPublishing",
|
||||||
|
"serviceName": "Catalogue-WS",
|
||||||
|
"calledMethod": "${Action}Group"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1 @@
|
||||||
|
Data-Catalogue,Catalogue-WS,/rest/api/groups/list
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
"match": {
|
||||||
|
"serviceClassRegex": "(Data-Catalogue)|(DataPublishing)",
|
||||||
|
"serviceNameRegex": "Catalogue-WS",
|
||||||
|
"calledMethodRegex": "(\/rest\/(api\/){0,1})group(s){0,1}\/(?<Action>list)(\/{0,1})"
|
||||||
|
},
|
||||||
|
"replace": {
|
||||||
|
"serviceClass": "DataPublishing",
|
||||||
|
"serviceName": "Catalogue-WS",
|
||||||
|
"calledMethod": "${Action}Groups"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,4 @@
|
||||||
|
Data-Catalogue,Catalogue-WS,/rest/api/items/create
|
||||||
|
Data-Catalogue,Catalogue-WS,/rest/api/items/delete
|
||||||
|
Data-Catalogue,Catalogue-WS,/rest/api/items/purge
|
||||||
|
Data-Catalogue,Catalogue-WS,/rest/api/items/show
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
"match": {
|
||||||
|
"serviceClassRegex": "(Data-Catalogue)|(DataPublishing)",
|
||||||
|
"serviceNameRegex": "Catalogue-WS",
|
||||||
|
"calledMethodRegex": "(\/rest\/(api\/){0,1})item(s){0,1}\/(?<Action>(create|show|purge|delete))(\/{0,1})"
|
||||||
|
},
|
||||||
|
"replace": {
|
||||||
|
"serviceClass": "DataPublishing",
|
||||||
|
"serviceName": "Catalogue-WS",
|
||||||
|
"calledMethod": "${Action}Item"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1 @@
|
||||||
|
Data-Catalogue,Catalogue-WS,/rest/api/items/list
|
|
|
@ -2,11 +2,11 @@
|
||||||
"match": {
|
"match": {
|
||||||
"serviceClassRegex": "(Data-Catalogue)|(DataPublishing)",
|
"serviceClassRegex": "(Data-Catalogue)|(DataPublishing)",
|
||||||
"serviceNameRegex": "Catalogue-WS",
|
"serviceNameRegex": "Catalogue-WS",
|
||||||
"calledMethodRegex": "^\/rest\/api\/organi(s|z)ation(s){0,1}\/show.*"
|
"calledMethodRegex": "(\/rest\/(api\/){0,1})item(s){0,1}\/(?<Action>list)(\/{0,1})"
|
||||||
},
|
},
|
||||||
"replace": {
|
"replace": {
|
||||||
"serviceClass": "DataPublishing",
|
"serviceClass": "DataPublishing",
|
||||||
"serviceName": "Catalogue-WS",
|
"serviceName": "Catalogue-WS",
|
||||||
"calledMethod": "showOrganizations"
|
"calledMethod": "${Action}Items"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,2 +1,6 @@
|
||||||
Data-Catalogue,Catalogue-WS,/rest/licenses/list
|
Data-Catalogue,Catalogue-WS,/rest/licenses/list
|
||||||
Data-Catalogue,Catalogue-WS,/rest/api/licenses/list
|
Data-Catalogue,Catalogue-WS,/rest/api/licenses/list
|
||||||
|
Data-Catalogue,Catalogue-WS,/rest/api/licences/list
|
||||||
|
Data-Catalogue,Catalogue-WS,/rest/api/licenses/list/
|
||||||
|
Data-Catalogue,Catalogue-WS,/rest/api/licences/list
|
||||||
|
Data-Catalogue,Catalogue-WS,/rest/api/licenses/list/
|
|
|
@ -2,11 +2,11 @@
|
||||||
"match": {
|
"match": {
|
||||||
"serviceClassRegex": "(Data-Catalogue)|(DataPublishing)",
|
"serviceClassRegex": "(Data-Catalogue)|(DataPublishing)",
|
||||||
"serviceNameRegex": "Catalogue-WS",
|
"serviceNameRegex": "Catalogue-WS",
|
||||||
"calledMethodRegex": "(^\/rest\/(api\/){0,1}licenses\/list)|(listLicenses)"
|
"calledMethodRegex": "^\/rest\/(api\/){0,1}licen(c|s)es\/(?<Action>list)(\/{0,1})"
|
||||||
},
|
},
|
||||||
"replace": {
|
"replace": {
|
||||||
"serviceClass": "DataPublishing",
|
"serviceClass": "DataPublishing",
|
||||||
"serviceName": "Catalogue-WS",
|
"serviceName": "Catalogue-WS",
|
||||||
"calledMethod": "listLicenses"
|
"calledMethod": "${Action}Licenses"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -0,0 +1 @@
|
||||||
|
Data-Catalogue,Catalogue-WS,/rest/api/organizations/create
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
"match": {
|
||||||
|
"serviceClassRegex": "(Data-Catalogue)|(DataPublishing)",
|
||||||
|
"serviceNameRegex": "Catalogue-WS",
|
||||||
|
"calledMethodRegex": "\/rest\/(api\/){0,1}organi(s|z)ation(s){0,1}\/(?<Action>(create|show|purge|delete))(\/{0,1})"
|
||||||
|
},
|
||||||
|
"replace": {
|
||||||
|
"serviceClass": "DataPublishing",
|
||||||
|
"serviceName": "Catalogue-WS",
|
||||||
|
"calledMethod": "${Action}Organization"
|
||||||
|
}
|
||||||
|
}
|
|
@ -10,4 +10,8 @@ Data-Catalogue,Catalogue-WS,/rest/api/organizations/list%3finclude_dataset_count
|
||||||
Data-Catalogue,Catalogue-WS,/rest/api/organizations/list%3flimit=2
|
Data-Catalogue,Catalogue-WS,/rest/api/organizations/list%3flimit=2
|
||||||
Data-Catalogue,Catalogue-WS,/rest/api/organizations/list%3foffset=2
|
Data-Catalogue,Catalogue-WS,/rest/api/organizations/list%3foffset=2
|
||||||
Data-Catalogue,Catalogue-WS,/rest/api/organizations/list%3forder_by=name
|
Data-Catalogue,Catalogue-WS,/rest/api/organizations/list%3forder_by=name
|
||||||
Data-Catalogue,Catalogue-WS,/rest/api/organizations/list/%3finclude_dataset_count=true
|
Data-Catalogue,Catalogue-WS,/rest/api/organizations/list/%3finclude_dataset_count=true
|
||||||
|
Data-Catalogue,Catalogue-WS,listOrganizations
|
||||||
|
Data-Catalogue,Catalogue-WS,listOrganization
|
||||||
|
Data-Catalogue,Catalogue-WS,listOrganisations
|
||||||
|
Data-Catalogue,Catalogue-WS,listOrganisation
|
|
|
@ -2,7 +2,7 @@
|
||||||
"match": {
|
"match": {
|
||||||
"serviceClassRegex": "(Data-Catalogue)|(DataPublishing)",
|
"serviceClassRegex": "(Data-Catalogue)|(DataPublishing)",
|
||||||
"serviceNameRegex": "Catalogue-WS",
|
"serviceNameRegex": "Catalogue-WS",
|
||||||
"calledMethodRegex": "^\/rest\/api\/organi(s|z)ation(s){0,1}\/list.*"
|
"calledMethodRegex": "(\/rest\/(api\/){0,1}organi(s|z)ation(s){0,1}\/(?<Action>list)\/{0,1}.*)|(listOrgani(s|z)ation(s{0,1}))"
|
||||||
},
|
},
|
||||||
"replace": {
|
"replace": {
|
||||||
"serviceClass": "DataPublishing",
|
"serviceClass": "DataPublishing",
|
|
@ -0,0 +1 @@
|
||||||
|
Data-Catalogue,Catalogue-WS,/rest/api/profiles/profile
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
"match": {
|
||||||
|
"serviceClassRegex": "(Data-Catalogue)|(DataPublishing)",
|
||||||
|
"serviceNameRegex": "Catalogue-WS",
|
||||||
|
"calledMethodRegex": "(\/rest\/(api\/){0,1})profile(s){0,1}\/(?<Action>(show|profile))(\/{0,1})"
|
||||||
|
},
|
||||||
|
"replace": {
|
||||||
|
"serviceClass": "DataPublishing",
|
||||||
|
"serviceName": "Catalogue-WS",
|
||||||
|
"calledMethod": "showProfile"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,4 @@
|
||||||
|
Data-Catalogue,Catalogue-WS,/rest/api/profiles/profile_names
|
||||||
|
Data-Catalogue,Catalogue-WS,/rest/api/profiles/profile_names/
|
||||||
|
Data-Catalogue,Catalogue-WS,/rest/api/profile/list
|
||||||
|
Data-Catalogue,Catalogue-WS,/rest/api/profiles/list
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
"match": {
|
||||||
|
"serviceClassRegex": "(Data-Catalogue)|(DataPublishing)",
|
||||||
|
"serviceNameRegex": "Catalogue-WS",
|
||||||
|
"calledMethodRegex": "(\/rest\/(api\/){0,1})profile(s){0,1}\/(?<Action>(list|profile_names))(\/{0,1})"
|
||||||
|
},
|
||||||
|
"replace": {
|
||||||
|
"serviceClass": "DataPublishing",
|
||||||
|
"serviceName": "Catalogue-WS",
|
||||||
|
"calledMethod": "listProfile"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,3 @@
|
||||||
|
Data-Catalogue,Catalogue-WS,/rest/api/resources/create
|
||||||
|
Data-Catalogue,Catalogue-WS,/rest/api/resources/delete
|
||||||
|
Data-Catalogue,Catalogue-WS,/rest/api/resources/show
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
"match": {
|
||||||
|
"serviceClassRegex": "(Data-Catalogue)|(DataPublishing)",
|
||||||
|
"serviceNameRegex": "Catalogue-WS",
|
||||||
|
"calledMethodRegex": "(\/rest\/(api\/){0,1})resource(s){0,1}\/(?<Action>create|show|purge|delete)(\/{0,1})"
|
||||||
|
},
|
||||||
|
"replace": {
|
||||||
|
"serviceClass": "DataPublishing",
|
||||||
|
"serviceName": "Catalogue-WS",
|
||||||
|
"calledMethod": "${Action}Resource"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1 @@
|
||||||
|
Data-Catalogue,Catalogue-WS,/rest/api/resources/list
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
"match": {
|
||||||
|
"serviceClassRegex": "(Data-Catalogue)|(DataPublishing)",
|
||||||
|
"serviceNameRegex": "Catalogue-WS",
|
||||||
|
"calledMethodRegex": "(\/rest\/(api\/){0,1})resource(s){0,1}\/(?<Action>list)(\/{0,1})"
|
||||||
|
},
|
||||||
|
"replace": {
|
||||||
|
"serviceClass": "DataPublishing",
|
||||||
|
"serviceName": "Catalogue-WS",
|
||||||
|
"calledMethod": "${Action}Resource"
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,6 +0,0 @@
|
||||||
Data-Catalogue,Catalogue-WS,/rest/api/organisations/show%3fid=biodiversitylab
|
|
||||||
Data-Catalogue,Catalogue-WS,/rest/api/organizations/show
|
|
||||||
Data-Catalogue,Catalogue-WS,/rest/api/organizations/show%3fid=aquamaps
|
|
||||||
Data-Catalogue,Catalogue-WS,/rest/api/organizations/show%3fid=biodiversitylab
|
|
||||||
Data-Catalogue,Catalogue-WS,/rest/api/organizations/show%3fid=egip
|
|
||||||
Data-Catalogue,Catalogue-WS,/rest/api/organizations/show%3fid=organization_name
|
|
|
|
@ -2,7 +2,7 @@
|
||||||
"match": {
|
"match": {
|
||||||
"serviceClassRegex": "(WPS)|(DataAnalysis)",
|
"serviceClassRegex": "(WPS)|(DataAnalysis)",
|
||||||
"serviceNameRegex": "DataMiner",
|
"serviceNameRegex": "DataMiner",
|
||||||
"calledMethodRegex": "^/{0,1}(WebProcessingService|UNKNOWN|OTHER|gcube\/resource\/scopes).*"
|
"calledMethodRegex": "^\/{0,1}(WebProcessingService|UNKNOWN|OTHER|(gcube\/resource\/scopes)).*"
|
||||||
},
|
},
|
||||||
"replace": {
|
"replace": {
|
||||||
"serviceClass": "DataAnalysis",
|
"serviceClass": "DataAnalysis",
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
Data-Catalogue,GRSFPublisher,UNKNOWN
|
Data-Catalogue,GRSFPublisher,UNKNOWN
|
||||||
Data-Catalogue,GRSFPublisher,OTHER
|
Data-Catalogue,GRSFPublisher,OTHER
|
||||||
Data-Catalogue,GRSFPublisher,/rest/firms/hello
|
Data-Catalogue,GRSFPublisher,/rest/firms/hello
|
||||||
Data-Catalogue,GRSFPublisher,/rest/ram/hello
|
Data-Catalogue,GRSFPublisher,/rest/ram/hello
|
|
|
@ -2,7 +2,7 @@
|
||||||
"match": {
|
"match": {
|
||||||
"serviceClassRegex": "(Data-Catalogue)|(DataPublishing)",
|
"serviceClassRegex": "(Data-Catalogue)|(DataPublishing)",
|
||||||
"serviceNameRegex": "GRSFPublisher",
|
"serviceNameRegex": "GRSFPublisher",
|
||||||
"calledMethodRegex": ".*(hello)|(UNKNOWN)|(OTHER)|(get-licenses).*"
|
"calledMethodRegex": ".*((hello)|(UNKNOWN)|(OTHER)).*"
|
||||||
},
|
},
|
||||||
"replace": {
|
"replace": {
|
||||||
"serviceClass": "DataPublishing",
|
"serviceClass": "DataPublishing",
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
Data-Catalogue,GRSFPublisher,/rest/ram/fishery/get-licenses
|
||||||
|
Data-Catalogue,GRSFPublisher,/rest/ram/stock/get-license
|
||||||
|
Data-Catalogue,GRSFPublisher,/rest/ram/stock/get-licenses
|
||||||
|
Data-Catalogue,GRSFPublisher,/rest/stock/fishery/get-licenses
|
||||||
|
Data-Catalogue,GRSFPublisher,/rest/stock/get-licenses
|
||||||
|
Data-Catalogue,GRSFPublisher,/rest/stock/ram/get-licenses
|
||||||
|
Data-Catalogue,GRSFPublisher,/rest/stock/rams/get-licenses
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
"match": {
|
||||||
|
"serviceClassRegex": "(Data-Catalogue)|(DataPublishing)",
|
||||||
|
"serviceNameRegex": "GRSFPublisher",
|
||||||
|
"calledMethodRegex": ".*get-license(s{0,1}).*"
|
||||||
|
},
|
||||||
|
"replace": {
|
||||||
|
"serviceClass": "DataPublishing",
|
||||||
|
"serviceName": "GRSFPublisher",
|
||||||
|
"calledMethod": "getLicenses"
|
||||||
|
}
|
||||||
|
}
|
|
@ -1 +1,2 @@
|
||||||
Data-Catalogue,GRSFPublisher,/rest/grsf/stock/update-product
|
Data-Catalogue,GRSFPublisher,/rest/grsf/stock/update-product
|
||||||
|
Data-Catalogue,GRSFPublisher,update
|
||||||
|
|
|
|
@ -2,7 +2,7 @@
|
||||||
"match": {
|
"match": {
|
||||||
"serviceClassRegex": "(Data-Catalogue)|(DataPublishing)",
|
"serviceClassRegex": "(Data-Catalogue)|(DataPublishing)",
|
||||||
"serviceNameRegex": "GRSFPublisher",
|
"serviceNameRegex": "GRSFPublisher",
|
||||||
"calledMethodRegex": ".*update-product.*"
|
"calledMethodRegex": "(.*update-product.*)|(update)"
|
||||||
},
|
},
|
||||||
"replace": {
|
"replace": {
|
||||||
"serviceClass": "DataPublishing",
|
"serviceClass": "DataPublishing",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"match": {
|
"match": {
|
||||||
"serviceClassRegex": "(SDI)|(SpatialData)",
|
"serviceClassRegex": "(SDI)|(SpatialData)",
|
||||||
"serviceNameRegex": "GeoNetwork",
|
"serviceNameRegex": "GeoNetwork",
|
||||||
"calledMethodRegex": ".*(\\.get(\\..*|\/.*|$)|\\.show(\\..*|$)|((\\.|/)info(?!edit).*))"
|
"calledMethodRegex": "(.*(\\.get(\\..*|\/.*|$)|\\.show(\\..*|$)|((\\.|/)info(?!edit).*)))|(read@json)"
|
||||||
},
|
},
|
||||||
"replace": {
|
"replace": {
|
||||||
"serviceClass": "SDI",
|
"serviceClass": "SDI",
|
||||||
|
|
|
@ -0,0 +1,99 @@
|
||||||
|
DataAccess,HomeLibraryWebapp,/CanAddChildren
|
||||||
|
DataAccess,HomeLibraryWebapp,/CanDelete
|
||||||
|
DataAccess,HomeLibraryWebapp,/CanModifyProperties
|
||||||
|
DataAccess,HomeLibraryWebapp,/CanReadNode
|
||||||
|
DataAccess,HomeLibraryWebapp,/ChangePass
|
||||||
|
DataAccess,HomeLibraryWebapp,/CreateCostumePrivilegeServlet
|
||||||
|
DataAccess,HomeLibraryWebapp,/CreateGroupServlet
|
||||||
|
DataAccess,HomeLibraryWebapp,/CreateSession
|
||||||
|
DataAccess,HomeLibraryWebapp,/CreateUserServlet
|
||||||
|
DataAccess,HomeLibraryWebapp,/DeleteAcesServlet
|
||||||
|
DataAccess,HomeLibraryWebapp,/DeleteAuthorizableServlet
|
||||||
|
DataAccess,HomeLibraryWebapp,/GetAccountingById
|
||||||
|
DataAccess,HomeLibraryWebapp,/GetDisplayNameServlet
|
||||||
|
DataAccess,HomeLibraryWebapp,/GetRegisteredPrivileges
|
||||||
|
DataAccess,HomeLibraryWebapp,/GetVersionServlet
|
||||||
|
DataAccess,HomeLibraryWebapp,/GroupMembershipServlet
|
||||||
|
DataAccess,HomeLibraryWebapp,/IsGroupServlet
|
||||||
|
DataAccess,HomeLibraryWebapp,/ListGroupsServlet
|
||||||
|
DataAccess,HomeLibraryWebapp,/ListUsersServlet
|
||||||
|
DataAccess,HomeLibraryWebapp,/ModifyAceServlet
|
||||||
|
DataAccess,HomeLibraryWebapp,/ReleaseSession
|
||||||
|
DataAccess,HomeLibraryWebapp,/SetVersionServlet
|
||||||
|
DataAccess,HomeLibraryWebapp,/UpdateGroupServlet
|
||||||
|
DataAccess,HomeLibraryWebapp,/acl/CanAddChildren
|
||||||
|
DataAccess,HomeLibraryWebapp,/acl/CanModifyProperties
|
||||||
|
DataAccess,HomeLibraryWebapp,/acl/CanReadNode
|
||||||
|
DataAccess,HomeLibraryWebapp,/acl/GetACL
|
||||||
|
DataAccess,HomeLibraryWebapp,/acl/GetACLByUser
|
||||||
|
DataAccess,HomeLibraryWebapp,/acl/GetEACL
|
||||||
|
DataAccess,HomeLibraryWebapp,/get/Clone
|
||||||
|
DataAccess,HomeLibraryWebapp,/get/Copy
|
||||||
|
DataAccess,HomeLibraryWebapp,/get/ExecuteQuery
|
||||||
|
DataAccess,HomeLibraryWebapp,/get/GetChildrenById
|
||||||
|
DataAccess,HomeLibraryWebapp,/get/GetChildrenCount
|
||||||
|
DataAccess,HomeLibraryWebapp,/get/GetItemById
|
||||||
|
DataAccess,HomeLibraryWebapp,/get/GetItemByPath
|
||||||
|
DataAccess,HomeLibraryWebapp,/get/GetParentsById
|
||||||
|
DataAccess,HomeLibraryWebapp,/get/GetReferences
|
||||||
|
DataAccess,HomeLibraryWebapp,/get/IsLocked
|
||||||
|
DataAccess,HomeLibraryWebapp,/get/LockSession
|
||||||
|
DataAccess,HomeLibraryWebapp,/get/Move
|
||||||
|
DataAccess,HomeLibraryWebapp,/get/SearchItems
|
||||||
|
DataAccess,HomeLibraryWebapp,/get/UnlockSession
|
||||||
|
DataAccess,HomeLibraryWebapp,/post/ChangePrimaryType
|
||||||
|
DataAccess,HomeLibraryWebapp,/post/MoveToTrashIds
|
||||||
|
DataAccess,HomeLibraryWebapp,/post/RemoveItem
|
||||||
|
DataAccess,HomeLibraryWebapp,/post/SaveAccountingItem
|
||||||
|
DataAccess,HomeLibraryWebapp,/post/SaveItem
|
||||||
|
DataAccess,HomeLibraryWebapp,/rest/CreateFolder
|
||||||
|
DataAccess,HomeLibraryWebapp,/rest/Delete
|
||||||
|
DataAccess,HomeLibraryWebapp,/rest/Download
|
||||||
|
DataAccess,HomeLibraryWebapp,/rest/List
|
||||||
|
DataAccess,HomeLibraryWebapp,/rest/Upload
|
||||||
|
DataAccess,HomeLibraryWebapp,/trash/DeleteFromTrash
|
||||||
|
DataAccess,HomeLibraryWebapp,/trash/EmptyTrash
|
||||||
|
DataAccess,HomeLibraryWebapp,/versioning/GetCurrentVersion
|
||||||
|
DataAccess,HomeLibraryWebapp,/versioning/GetVersion
|
||||||
|
DataAccess,HomeLibraryWebapp,/versioning/RemoveVersion
|
||||||
|
DataAccess,HomeLibraryWebapp,/versioning/RestoreVersion
|
||||||
|
DataAccess,HomeLibraryWebapp,/versioning/SaveCurrentVersion
|
||||||
|
DataAccess,HomeLibraryWebapp,/versioning/VersionHistory
|
||||||
|
DataAccess,HomeLibraryWebapp,CanAddChildren
|
||||||
|
DataAccess,HomeLibraryWebapp,CanDelete
|
||||||
|
DataAccess,HomeLibraryWebapp,CanModifyProperties
|
||||||
|
DataAccess,HomeLibraryWebapp,CanReadNode
|
||||||
|
DataAccess,HomeLibraryWebapp,CreateSession
|
||||||
|
DataAccess,HomeLibraryWebapp,CreateUserServlet
|
||||||
|
DataAccess,HomeLibraryWebapp,DeleteAcesServlet
|
||||||
|
DataAccess,HomeLibraryWebapp,GetAccountingById
|
||||||
|
DataAccess,HomeLibraryWebapp,GetDisplayNameServlet
|
||||||
|
DataAccess,HomeLibraryWebapp,GetVersionServlet
|
||||||
|
DataAccess,HomeLibraryWebapp,GroupMembershipServlet
|
||||||
|
DataAccess,HomeLibraryWebapp,IsGroupServlet
|
||||||
|
DataAccess,HomeLibraryWebapp,ListGroupsServlet
|
||||||
|
DataAccess,HomeLibraryWebapp,ModifyAceServlet
|
||||||
|
DataAccess,HomeLibraryWebapp,OTHER
|
||||||
|
DataAccess,HomeLibraryWebapp,ReleaseSession
|
||||||
|
DataAccess,HomeLibraryWebapp,SetVersionServlet
|
||||||
|
DataAccess,HomeLibraryWebapp,UpdateGroupServlet
|
||||||
|
DataAccess,HomeLibraryWebapp,acl/GetACL
|
||||||
|
DataAccess,HomeLibraryWebapp,acl/GetACLByUser
|
||||||
|
DataAccess,HomeLibraryWebapp,acl/GetEACL
|
||||||
|
DataAccess,HomeLibraryWebapp,get/Clone
|
||||||
|
DataAccess,HomeLibraryWebapp,get/Copy
|
||||||
|
DataAccess,HomeLibraryWebapp,get/ExecuteQuery
|
||||||
|
DataAccess,HomeLibraryWebapp,get/GetChildrenById
|
||||||
|
DataAccess,HomeLibraryWebapp,get/GetItemById
|
||||||
|
DataAccess,HomeLibraryWebapp,get/GetItemByPath
|
||||||
|
DataAccess,HomeLibraryWebapp,get/GetParentsById
|
||||||
|
DataAccess,HomeLibraryWebapp,get/GetReferences
|
||||||
|
DataAccess,HomeLibraryWebapp,get/IsLocked
|
||||||
|
DataAccess,HomeLibraryWebapp,get/LockSession
|
||||||
|
DataAccess,HomeLibraryWebapp,get/Move
|
||||||
|
DataAccess,HomeLibraryWebapp,get/UnlockSession
|
||||||
|
DataAccess,HomeLibraryWebapp,post/ChangePrimaryType
|
||||||
|
DataAccess,HomeLibraryWebapp,post/MoveToTrashIds
|
||||||
|
DataAccess,HomeLibraryWebapp,post/RemoveItem
|
||||||
|
DataAccess,HomeLibraryWebapp,post/SaveAccountingItem
|
||||||
|
DataAccess,HomeLibraryWebapp,post/SaveItem
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
"match": {
|
||||||
|
"serviceClassRegex": "DataAccess",
|
||||||
|
"serviceNameRegex": "HomeLibraryWebapp",
|
||||||
|
"calledMethodRegex": "\/{0,1}((acl|get|rest|post|trash|versioning)\/){0,1}(?<Method>[a-zA-Z]*)"
|
||||||
|
},
|
||||||
|
"replace": {
|
||||||
|
"serviceClass": "DataAccess",
|
||||||
|
"serviceName": "HomeLibraryWebapp",
|
||||||
|
"calledMethod": "${Method}"
|
||||||
|
}
|
||||||
|
}
|
|
@ -58,18 +58,73 @@
|
||||||
"match": {
|
"match": {
|
||||||
"serviceClassRegex": "(Data-Catalogue)|(DataPublishing)",
|
"serviceClassRegex": "(Data-Catalogue)|(DataPublishing)",
|
||||||
"serviceNameRegex": "Catalogue-WS",
|
"serviceNameRegex": "Catalogue-WS",
|
||||||
"calledMethodRegex": "(^\/rest\/(api\/){0,1}licenses\/list)|(listLicenses)"
|
"calledMethodRegex": "(\/rest\/(api\/){0,1})group(s){0,1}\/(?<Action>(create|show|purge|delete))(\/{0,1})"
|
||||||
},
|
},
|
||||||
"replace": {
|
"replace": {
|
||||||
"serviceClass": "DataPublishing",
|
"serviceClass": "DataPublishing",
|
||||||
"serviceName": "Catalogue-WS",
|
"serviceName": "Catalogue-WS",
|
||||||
"calledMethod": "listLicenses"
|
"calledMethod": "${Action}Group"
|
||||||
}
|
}
|
||||||
},{
|
},{
|
||||||
"match": {
|
"match": {
|
||||||
"serviceClassRegex": "(Data-Catalogue)|(DataPublishing)",
|
"serviceClassRegex": "(Data-Catalogue)|(DataPublishing)",
|
||||||
"serviceNameRegex": "Catalogue-WS",
|
"serviceNameRegex": "Catalogue-WS",
|
||||||
"calledMethodRegex": "^\/rest\/api\/organi(s|z)ation(s){0,1}\/list.*"
|
"calledMethodRegex": "(\/rest\/(api\/){0,1})group(s){0,1}\/(?<Action>list)(\/{0,1})"
|
||||||
|
},
|
||||||
|
"replace": {
|
||||||
|
"serviceClass": "DataPublishing",
|
||||||
|
"serviceName": "Catalogue-WS",
|
||||||
|
"calledMethod": "${Action}Groups"
|
||||||
|
}
|
||||||
|
},{
|
||||||
|
"match": {
|
||||||
|
"serviceClassRegex": "(Data-Catalogue)|(DataPublishing)",
|
||||||
|
"serviceNameRegex": "Catalogue-WS",
|
||||||
|
"calledMethodRegex": "(\/rest\/(api\/){0,1})item(s){0,1}\/(?<Action>(create|show|purge|delete))(\/{0,1})"
|
||||||
|
},
|
||||||
|
"replace": {
|
||||||
|
"serviceClass": "DataPublishing",
|
||||||
|
"serviceName": "Catalogue-WS",
|
||||||
|
"calledMethod": "${Action}Item"
|
||||||
|
}
|
||||||
|
},{
|
||||||
|
"match": {
|
||||||
|
"serviceClassRegex": "(Data-Catalogue)|(DataPublishing)",
|
||||||
|
"serviceNameRegex": "Catalogue-WS",
|
||||||
|
"calledMethodRegex": "(\/rest\/(api\/){0,1})item(s){0,1}\/(?<Action>list)(\/{0,1})"
|
||||||
|
},
|
||||||
|
"replace": {
|
||||||
|
"serviceClass": "DataPublishing",
|
||||||
|
"serviceName": "Catalogue-WS",
|
||||||
|
"calledMethod": "${Action}Items"
|
||||||
|
}
|
||||||
|
},{
|
||||||
|
"match": {
|
||||||
|
"serviceClassRegex": "(Data-Catalogue)|(DataPublishing)",
|
||||||
|
"serviceNameRegex": "Catalogue-WS",
|
||||||
|
"calledMethodRegex": "^\/rest\/(api\/){0,1}licen(c|s)es\/(?<Action>list)(\/{0,1})"
|
||||||
|
},
|
||||||
|
"replace": {
|
||||||
|
"serviceClass": "DataPublishing",
|
||||||
|
"serviceName": "Catalogue-WS",
|
||||||
|
"calledMethod": "${Action}Licenses"
|
||||||
|
}
|
||||||
|
},{
|
||||||
|
"match": {
|
||||||
|
"serviceClassRegex": "(Data-Catalogue)|(DataPublishing)",
|
||||||
|
"serviceNameRegex": "Catalogue-WS",
|
||||||
|
"calledMethodRegex": "\/rest\/(api\/){0,1}organi(s|z)ation(s){0,1}\/(?<Action>(create|show|purge|delete))(\/{0,1})"
|
||||||
|
},
|
||||||
|
"replace": {
|
||||||
|
"serviceClass": "DataPublishing",
|
||||||
|
"serviceName": "Catalogue-WS",
|
||||||
|
"calledMethod": "${Action}Organization"
|
||||||
|
}
|
||||||
|
},{
|
||||||
|
"match": {
|
||||||
|
"serviceClassRegex": "(Data-Catalogue)|(DataPublishing)",
|
||||||
|
"serviceNameRegex": "Catalogue-WS",
|
||||||
|
"calledMethodRegex": "(\/rest\/(api\/){0,1}organi(s|z)ation(s){0,1}\/(?<Action>list)\/{0,1}.*)|(listOrgani(s|z)ation(s{0,1}))"
|
||||||
},
|
},
|
||||||
"replace": {
|
"replace": {
|
||||||
"serviceClass": "DataPublishing",
|
"serviceClass": "DataPublishing",
|
||||||
|
@ -91,12 +146,45 @@
|
||||||
"match": {
|
"match": {
|
||||||
"serviceClassRegex": "(Data-Catalogue)|(DataPublishing)",
|
"serviceClassRegex": "(Data-Catalogue)|(DataPublishing)",
|
||||||
"serviceNameRegex": "Catalogue-WS",
|
"serviceNameRegex": "Catalogue-WS",
|
||||||
"calledMethodRegex": "^\/rest\/api\/organi(s|z)ation(s){0,1}\/show.*"
|
"calledMethodRegex": "(\/rest\/(api\/){0,1})profile(s){0,1}\/(?<Action>(show|profile))(\/{0,1})"
|
||||||
},
|
},
|
||||||
"replace": {
|
"replace": {
|
||||||
"serviceClass": "DataPublishing",
|
"serviceClass": "DataPublishing",
|
||||||
"serviceName": "Catalogue-WS",
|
"serviceName": "Catalogue-WS",
|
||||||
"calledMethod": "showOrganizations"
|
"calledMethod": "showProfile"
|
||||||
|
}
|
||||||
|
},{
|
||||||
|
"match": {
|
||||||
|
"serviceClassRegex": "(Data-Catalogue)|(DataPublishing)",
|
||||||
|
"serviceNameRegex": "Catalogue-WS",
|
||||||
|
"calledMethodRegex": "(\/rest\/(api\/){0,1})profile(s){0,1}\/(?<Action>(list|profile_names))(\/{0,1})"
|
||||||
|
},
|
||||||
|
"replace": {
|
||||||
|
"serviceClass": "DataPublishing",
|
||||||
|
"serviceName": "Catalogue-WS",
|
||||||
|
"calledMethod": "listProfile"
|
||||||
|
}
|
||||||
|
},{
|
||||||
|
"match": {
|
||||||
|
"serviceClassRegex": "(Data-Catalogue)|(DataPublishing)",
|
||||||
|
"serviceNameRegex": "Catalogue-WS",
|
||||||
|
"calledMethodRegex": "(\/rest\/(api\/){0,1})resource(s){0,1}\/(?<Action>create|show|purge|delete)(\/{0,1})"
|
||||||
|
},
|
||||||
|
"replace": {
|
||||||
|
"serviceClass": "DataPublishing",
|
||||||
|
"serviceName": "Catalogue-WS",
|
||||||
|
"calledMethod": "${Action}Resource"
|
||||||
|
}
|
||||||
|
},{
|
||||||
|
"match": {
|
||||||
|
"serviceClassRegex": "(Data-Catalogue)|(DataPublishing)",
|
||||||
|
"serviceNameRegex": "Catalogue-WS",
|
||||||
|
"calledMethodRegex": "(\/rest\/(api\/){0,1})resource(s){0,1}\/(?<Action>list)(\/{0,1})"
|
||||||
|
},
|
||||||
|
"replace": {
|
||||||
|
"serviceClass": "DataPublishing",
|
||||||
|
"serviceName": "Catalogue-WS",
|
||||||
|
"calledMethod": "${Action}Resource"
|
||||||
}
|
}
|
||||||
},{
|
},{
|
||||||
"match": {
|
"match": {
|
||||||
|
@ -157,7 +245,7 @@
|
||||||
"match": {
|
"match": {
|
||||||
"serviceClassRegex": "(WPS)|(DataAnalysis)",
|
"serviceClassRegex": "(WPS)|(DataAnalysis)",
|
||||||
"serviceNameRegex": "DataMiner",
|
"serviceNameRegex": "DataMiner",
|
||||||
"calledMethodRegex": "^/{0,1}(WebProcessingService|UNKNOWN|OTHER|gcube\/resource\/scopes).*"
|
"calledMethodRegex": "^\/{0,1}(WebProcessingService|UNKNOWN|OTHER|(gcube\/resource\/scopes)).*"
|
||||||
},
|
},
|
||||||
"replace": {
|
"replace": {
|
||||||
"serviceClass": "DataAnalysis",
|
"serviceClass": "DataAnalysis",
|
||||||
|
@ -300,7 +388,7 @@
|
||||||
"match": {
|
"match": {
|
||||||
"serviceClassRegex": "(SDI)|(SpatialData)",
|
"serviceClassRegex": "(SDI)|(SpatialData)",
|
||||||
"serviceNameRegex": "GeoNetwork",
|
"serviceNameRegex": "GeoNetwork",
|
||||||
"calledMethodRegex": ".*(\\.get(\\..*|\/.*|$)|\\.show(\\..*|$)|((\\.|/)info(?!edit).*))"
|
"calledMethodRegex": "(.*(\\.get(\\..*|\/.*|$)|\\.show(\\..*|$)|((\\.|/)info(?!edit).*)))|(read@json)"
|
||||||
},
|
},
|
||||||
"replace": {
|
"replace": {
|
||||||
"serviceClass": "SDI",
|
"serviceClass": "SDI",
|
||||||
|
@ -374,6 +462,17 @@
|
||||||
"serviceName": "GRSFPublisher",
|
"serviceName": "GRSFPublisher",
|
||||||
"calledMethod": "delete"
|
"calledMethod": "delete"
|
||||||
}
|
}
|
||||||
|
},{
|
||||||
|
"match": {
|
||||||
|
"serviceClassRegex": "(Data-Catalogue)|(DataPublishing)",
|
||||||
|
"serviceNameRegex": "GRSFPublisher",
|
||||||
|
"calledMethodRegex": ".*get-license(s{0,1}).*"
|
||||||
|
},
|
||||||
|
"replace": {
|
||||||
|
"serviceClass": "DataPublishing",
|
||||||
|
"serviceName": "GRSFPublisher",
|
||||||
|
"calledMethod": "getLicenses"
|
||||||
|
}
|
||||||
},{
|
},{
|
||||||
"match": {
|
"match": {
|
||||||
"serviceClassRegex": "(Data-Catalogue)|(DataPublishing)",
|
"serviceClassRegex": "(Data-Catalogue)|(DataPublishing)",
|
||||||
|
@ -389,7 +488,7 @@
|
||||||
"match": {
|
"match": {
|
||||||
"serviceClassRegex": "(Data-Catalogue)|(DataPublishing)",
|
"serviceClassRegex": "(Data-Catalogue)|(DataPublishing)",
|
||||||
"serviceNameRegex": "GRSFPublisher",
|
"serviceNameRegex": "GRSFPublisher",
|
||||||
"calledMethodRegex": ".*(hello)|(UNKNOWN)|(OTHER)|(get-licenses).*"
|
"calledMethodRegex": ".*((hello)|(UNKNOWN)|(OTHER)).*"
|
||||||
},
|
},
|
||||||
"replace": {
|
"replace": {
|
||||||
"serviceClass": "DataPublishing",
|
"serviceClass": "DataPublishing",
|
||||||
|
@ -400,7 +499,7 @@
|
||||||
"match": {
|
"match": {
|
||||||
"serviceClassRegex": "(Data-Catalogue)|(DataPublishing)",
|
"serviceClassRegex": "(Data-Catalogue)|(DataPublishing)",
|
||||||
"serviceNameRegex": "GRSFPublisher",
|
"serviceNameRegex": "GRSFPublisher",
|
||||||
"calledMethodRegex": ".*update-product.*"
|
"calledMethodRegex": "(.*update-product.*)|(update)"
|
||||||
},
|
},
|
||||||
"replace": {
|
"replace": {
|
||||||
"serviceClass": "DataPublishing",
|
"serviceClass": "DataPublishing",
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,3 @@
|
||||||
|
DataAnalysis,dataminer-pool-manager,api
|
||||||
|
DataAnalysis,dataminer-pool-manager,gcube/resource
|
||||||
|
dataanalysis,dataminer-pool-manager,OTHER
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
"match": {
|
||||||
|
"serviceClassRegex": "(DataAnalysis)|(data-analysis)|dataanalysis",
|
||||||
|
"serviceNameRegex": "dataminer-pool-manager",
|
||||||
|
"calledMethodRegex": "\/{0,1}(api|OTHER|(gcube\/resource))"
|
||||||
|
},
|
||||||
|
"replace": {
|
||||||
|
"serviceClass": "DataAnalysis",
|
||||||
|
"serviceName": "dataminer-pool-manager",
|
||||||
|
"calledMethod": "OTHER"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
DataAnalysis,dataminer-pool-manager,/api/algorithm/add
|
||||||
|
DataAnalysis,dataminer-pool-manager,/api/algorithm/stage
|
||||||
|
DataAnalysis,dataminer-pool-manager,/api/log
|
||||||
|
DataAnalysis,dataminer-pool-manager,/api/monitor
|
||||||
|
DataAnalysis,dataminer-pool-manager,api/algorithm/add
|
||||||
|
DataAnalysis,dataminer-pool-manager,api/algorithm/stage
|
||||||
|
DataAnalysis,dataminer-pool-manager,api/log
|
||||||
|
DataAnalysis,dataminer-pool-manager,api/monitor
|
||||||
|
dataanalysis,dataminer-pool-manager,api/algorithm/stage
|
||||||
|
dataanalysis,dataminer-pool-manager,api/log
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
"match": {
|
||||||
|
"serviceClassRegex": "(DataAnalysis)|(data-analysis)|dataanalysis",
|
||||||
|
"serviceNameRegex": "dataminer-pool-manager",
|
||||||
|
"calledMethodRegex": "\/{0,1}api\/(algorithm\/){0,1}(?<Method>[a-zA-Z]*)"
|
||||||
|
},
|
||||||
|
"replace": {
|
||||||
|
"serviceClass": "DataAnalysis",
|
||||||
|
"serviceName": "dataminer-pool-manager",
|
||||||
|
"calledMethod": "${Method}"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue