From 3feb5521d49d3ca29870c168064897f28b72b444 Mon Sep 17 00:00:00 2001 From: sunil unnava Date: Wed, 12 Sep 2018 16:08:08 -0400 Subject: update the topic name pattern Issue-ID: DMAAP-772 Change-Id: I485c54ce6375ea0ab1f069f130351c5a3ef05615 Signed-off-by: sunil unnava --- .../java/com/att/dmf/mr/security/DMaaPAAFAuthenticatorImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/main/java/com/att/dmf/mr/security/DMaaPAAFAuthenticatorImpl.java b/src/main/java/com/att/dmf/mr/security/DMaaPAAFAuthenticatorImpl.java index ed0893d..e4e24cd 100644 --- a/src/main/java/com/att/dmf/mr/security/DMaaPAAFAuthenticatorImpl.java +++ b/src/main/java/com/att/dmf/mr/security/DMaaPAAFAuthenticatorImpl.java @@ -56,7 +56,7 @@ public class DMaaPAAFAuthenticatorImpl implements DMaaPAAFAuthenticator { String permission = ""; String nameSpace =""; - if(topicName.contains(".") && topicName.contains("com.att")) { + if(topicName.contains(".") && topicName.contains("org.onap")) { nameSpace = topicName.substring(0,topicName.lastIndexOf(".")); } @@ -64,13 +64,13 @@ public class DMaaPAAFAuthenticatorImpl implements DMaaPAAFAuthenticator { nameSpace = null; nameSpace= com.att.ajsc.filemonitor.AJSCPropertiesMap.getProperty(CambriaConstants.msgRtr_prop,"defaultNSforUEB"); - if(null==nameSpace)nameSpace="com.att.dmaap.mr.ueb"; + if(null==nameSpace)nameSpace="org.onap.dmaap.mr"; } - permission = nameSpace+".mr.topic|:topic."+topicName+"|"+action; + permission = nameSpace+".topic|:topic."+topicName+"|"+action; return permission; } -- cgit 1.2.3-korg