diff options
author | 2018-04-20 15:45:40 -0400 | |
---|---|---|
committer | 2018-04-20 15:45:54 -0400 | |
commit | 1bc5db9215e0dc314d49e4e11a112e272bbc23ca (patch) | |
tree | 13bd1b4c967a34537e59892f5b4f6455669e9fe3 /src/main/java/com/att/nsa/cambria/service | |
parent | 6155c5b0c43bc3033a85e34224852fe7f02983e5 (diff) |
Changes for AAF authentication
Issue-ID: DMAAP-245
Change-Id: I92076166f38ff948a4d2719fe983a2ef64514849
Signed-off-by: su622b <sunil.unnava@att.com>
Diffstat (limited to 'src/main/java/com/att/nsa/cambria/service')
-rw-r--r-- | src/main/java/com/att/nsa/cambria/service/impl/TopicServiceImpl.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/com/att/nsa/cambria/service/impl/TopicServiceImpl.java b/src/main/java/com/att/nsa/cambria/service/impl/TopicServiceImpl.java index f539199..7875b90 100644 --- a/src/main/java/com/att/nsa/cambria/service/impl/TopicServiceImpl.java +++ b/src/main/java/com/att/nsa/cambria/service/impl/TopicServiceImpl.java @@ -314,7 +314,9 @@ public class TopicServiceImpl implements TopicService { // String permission = "com.att.dmaap.mr.topic"+"|"+topicName+"|"+"manage"; String permission = ""; String nameSpace=""; + if(topicName.indexOf(".")>1){ nameSpace = topicName.substring(0,topicName.lastIndexOf(".")); + } String mrFactoryVal=AJSCPropertiesMap.getProperty(CambriaConstants.msgRtr_prop,"msgRtr.topicfactory.aaf"); // String tokens[] = topicName.split(".mr.topic."); permission = mrFactoryVal+nameSpace+"|destroy"; |