X-Git-Url: https://gerrit.onap.org/r/gitweb?p=dmaap%2Fdbcapi.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fonap%2Fdmaap%2Fdbcapi%2Fservice%2FAafTopicSetupService.java;fp=src%2Fmain%2Fjava%2Forg%2Fonap%2Fdmaap%2Fdbcapi%2Fservice%2FAafTopicSetupService.java;h=9480b6acfac030cbc5831796590c60f9081b5ee2;hp=d9dd4fd31b9a1234a99e8e8c906b0ea7299b898b;hb=27a9a302a7d7e1894732535a8eb61f3460637b24;hpb=12d3560c7219af8d75ba9bab3b70b283252fe39d diff --git a/src/main/java/org/onap/dmaap/dbcapi/service/AafTopicSetupService.java b/src/main/java/org/onap/dmaap/dbcapi/service/AafTopicSetupService.java index d9dd4fd..9480b6a 100644 --- a/src/main/java/org/onap/dmaap/dbcapi/service/AafTopicSetupService.java +++ b/src/main/java/org/onap/dmaap/dbcapi/service/AafTopicSetupService.java @@ -149,7 +149,7 @@ class AafTopicSetupService extends BaseLoggingClass { private void removePermission(String permission, String instance, String action) throws TopicSetupException { DmaapPerm perm = new DmaapPerm(permission, instance, action); - int rc = aafService.delPerm(perm); + int rc = aafService.delPerm(perm, true); if (rc != 200 && rc != 404) { throw new TopicSetupException(500, format("Unexpected response from AAF: %d permission=%s instance=%s action=%s", @@ -159,7 +159,7 @@ class AafTopicSetupService extends BaseLoggingClass { private void removeNamespace(Topic topic) throws TopicSetupException { AafNamespace ns = new AafNamespace(topic.getFqtn(), aafService.getIdentity()); - int rc = aafService.delNamespace(ns); + int rc = aafService.delNamespace(ns, true); if (rc != 200 && rc != 404) { throw new TopicSetupException(500, format("Unexpected response from AAF: %d namespace=%s identity=%s",