remove unused uuid parameter 15/75915/1
authorLukasz Muszkieta <lukasz.muszkieta@nokia.com>
Thu, 17 Jan 2019 07:49:22 +0000 (08:49 +0100)
committerLukasz Muszkieta <lukasz.muszkieta@nokia.com>
Thu, 17 Jan 2019 07:50:17 +0000 (08:50 +0100)
Change-Id: I0c4d5d6fcbf5d7c48c82b4485980adf2fde809cd
Issue-ID: SO-729
Signed-off-by: Lukasz Muszkieta <lukasz.muszkieta@nokia.com>
bpmn/so-bpmn-infrastructure-common/src/main/java/org/onap/so/bpmn/infrastructure/pnf/aai/AaiConnectionImpl.java
common/src/main/java/org/onap/so/client/aai/AAIRestClientI.java
common/src/main/java/org/onap/so/client/aai/AAIRestClientImpl.java

index 8bba435..d57e487 100644 (file)
@@ -21,7 +21,6 @@
 package org.onap.so.bpmn.infrastructure.pnf.aai;
 
 import java.util.Optional;
-import java.util.UUID;
 import org.onap.aai.domain.yang.Pnf;
 import org.onap.so.bpmn.infrastructure.pnf.implementation.AaiConnection;
 import org.onap.so.client.aai.AAIRestClientImpl;
@@ -33,12 +32,12 @@ public class AaiConnectionImpl implements AaiConnection {
     @Override
     public Optional<Pnf> getEntryFor(String correlationId) {
         AAIRestClientImpl restClient = new AAIRestClientImpl();
-        return restClient.getPnfByName(correlationId, UUID.randomUUID().toString());
+        return restClient.getPnfByName(correlationId);
     }
 
     @Override
     public void createEntry(String correlationId, Pnf entry) {
         AAIRestClientImpl restClient = new AAIRestClientImpl();
-        restClient.createPnf(correlationId, UUID.randomUUID().toString(), entry);
+        restClient.createPnf(correlationId, entry);
     }
 }
index 785c82b..62d7d56 100644 (file)
@@ -31,11 +31,11 @@ public interface AAIRestClientI {
 
        List<Pserver> getPhysicalServerByVnfId(String vnfId) throws IOException;
        
-       void updateMaintenceFlagVnfId(String vnfId, boolean inMaint) throws Exception;
+       void updateMaintenceFlagVnfId(String vnfId, boolean inMaint);
        
        GenericVnf getVnfByName(String vnfId);
 
-       Optional<Pnf> getPnfByName(String pnfId,  String transactionLoggingUuid) throws Exception;
+       Optional<Pnf> getPnfByName(String pnfId);
 
-    void createPnf(String pnfId, String transactionLoggingUuid, Pnf pnf) throws IOException;
+       void createPnf(String pnfId, Pnf pnf);
 }
index 1c02409..b2c7fcc 100644 (file)
@@ -80,7 +80,7 @@ public class AAIRestClientImpl implements AAIRestClientI {
     }
 
     @Override
-    public Optional<Pnf> getPnfByName(String pnfId, String transactionLoggingUuid) {
+    public Optional<Pnf> getPnfByName(String pnfId) {
         Response response = new AAIResourcesClient()
                 .getFullResponse(AAIUriFactory.createResourceUri(AAIObjectType.PNF, pnfId));
         if (response.getStatus() != 200) {
@@ -91,7 +91,7 @@ public class AAIRestClientImpl implements AAIRestClientI {
     }
 
     @Override
-    public void createPnf(String pnfId, String transactionLoggingUuid, Pnf pnf) {
+    public void createPnf(String pnfId, Pnf pnf) {
         new AAIResourcesClient()
                 .createIfNotExists(AAIUriFactory.createResourceUri(AAIObjectType.PNF, pnfId), Optional.of(pnf));
     }