[PORTAL-16 PORTAL-18] Widget ms; staging
[portal.git] / ecomp-portal-BE-os / src / main / java / org / openecomp / portalapp / portal / service / EPAppServiceImpl.java
index 074821f..1f82938 100644 (file)
@@ -20,7 +20,9 @@
 package org.openecomp.portalapp.portal.service;
 
 
+import java.security.GeneralSecurityException;
 import java.util.ArrayList;
+import java.util.LinkedList;
 import java.util.List;
 import java.util.TreeSet;
 
@@ -33,6 +35,9 @@ import org.springframework.context.annotation.EnableAspectJAutoProxy;
 import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Transactional;
 
+import com.att.nsa.cambria.client.CambriaClientFactory;
+import com.att.nsa.cambria.client.CambriaTopicManager;
+
 @Service("epAppService")
 @Transactional
 @org.springframework.context.annotation.Configuration
@@ -68,4 +73,9 @@ public class EPAppServiceImpl extends EPAppCommonServiceImpl implements EPAppSer
                        return userApps;
        
        }
+       
+       public CambriaTopicManager getTopicManager(LinkedList<String> urlList, String key, String secret) throws GeneralSecurityException, Exception{
+               return CambriaClientFactory.createTopicManager( null, urlList, key, secret);
+       }
+
 }
\ No newline at end of file