Update license to not be javadoc 43/85843/3
authorJerry Flood <jflood@att.com>
Fri, 19 Apr 2019 18:11:27 +0000 (14:11 -0400)
committerJerry Flood <jflood@att.com>
Fri, 19 Apr 2019 19:44:54 +0000 (15:44 -0400)
Issue-ID: OPTFRA-466
Change-Id: Ic3b665edccd81efeaacdb9b032d3bd5fc7a8154c
Signed-off-by: Jerry Flood <jflood@att.com>
77 files changed:
cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/SpringProfiles.java
cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/aaf/AafAuthorizationFilter.java
cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/aaf/AafFilter.java
cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/aaf/AafPerm.java
cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/aaf/AafUserRole.java
cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/aaf/AafUserRoleProperties.java
cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/aaf/FilterPriority.java
cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/aaf/ResponseFormatter.java
cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/clients/common/models/ElementCriteria.java
cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/clients/ticketmgt/models/Availability.java
cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/clients/ticketmgt/models/TicketData.java
cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/clients/topology/models/ConstraintElements.java
cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/clients/topology/models/ElementCriteria.java
cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/clients/topology/models/ReferencedElementInfo.java
cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/clients/topology/models/TopologyElementInfo.java
cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/clients/topology/models/TopologyPolicyInfo.java
cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/common/Availability.java
cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/common/LogMessages.java
cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/filters/CmsoClientFilters.java
cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/observations/MessageHeaders.java
cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/service/rs/OptimizerInterface.java
cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/service/rs/models/ConstraintElements.java
cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/service/rs/models/ElementInfo.java
cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/service/rs/models/OptimizerScheduleInfo.java
cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/service/rs/models/PolicyInfo.java
cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/service/rs/models/ReferencedElementInfo.java
cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/service/rs/models/ScheduledElement.java
cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/service/rs/models/UnScheduledElement.java
cmso-service/extra/src/main/java/org/onap/optf/utilities/OnapInitialCommit.java
cmso-service/src/main/java/org/onap/optf/cmso/Application.java
cmso-service/src/main/java/org/onap/optf/cmso/AutowiringSpringBeanJobFactory.java
cmso-service/src/main/java/org/onap/optf/cmso/CmsoEnvironmentPostProcessor.java
cmso-service/src/main/java/org/onap/optf/cmso/SpringProfiles.java
cmso-service/src/main/java/org/onap/optf/cmso/aaf/AafAuthorizationFilter.java
cmso-service/src/main/java/org/onap/optf/cmso/aaf/AafFilter.java
cmso-service/src/main/java/org/onap/optf/cmso/aaf/AafPerm.java
cmso-service/src/main/java/org/onap/optf/cmso/aaf/AafUserRole.java
cmso-service/src/main/java/org/onap/optf/cmso/aaf/AafUserRoleProperties.java
cmso-service/src/main/java/org/onap/optf/cmso/aaf/FilterPriority.java
cmso-service/src/main/java/org/onap/optf/cmso/aaf/ResponseFormatter.java
cmso-service/src/main/java/org/onap/optf/cmso/common/BasicAuthenticatorFilter.java
cmso-service/src/main/java/org/onap/optf/cmso/optimizer/CmsoOptimizerClient.java
cmso-service/src/main/java/org/onap/optf/cmso/optimizer/CmsoOptimizerHandler.java
cmso-service/src/main/java/org/onap/optf/cmso/optimizer/model/OptimizerElementInfo.java
cmso-service/src/main/java/org/onap/optf/cmso/optimizer/model/OptimizerScheduleInfo.java
cmso-service/src/main/java/org/onap/optf/cmso/optimizer/model/ScheduledElement.java
cmso-service/src/main/java/org/onap/optf/cmso/optimizer/model/UnScheduledElement.java
cmso-service/src/main/java/org/onap/optf/cmso/service/rs/models/v2/ElementInfo.java
cmso-service/src/main/java/org/onap/optf/cmso/service/rs/models/v2/PolicyInfo.java
cmso-sonar/pom.xml
cmso-sonar/src/it/java/org/onap/optf/cmso/it/ItFullIntegrationTest.java [moved from cmso-sonar/src/test/java/org/onap/optf/cmso/it/IT_FullIntegrationTest.java with 92% similarity]
cmso-sonar/src/it/resources/integration.properties [moved from cmso-sonar/src/test/resources/integration.properties with 100% similarity]
cmso-ticketmgt/src/main/java/org/onap/optf/ticketmgt/SpringProfiles.java
cmso-ticketmgt/src/main/java/org/onap/optf/ticketmgt/aaf/AafAuthorizationFilter.java
cmso-ticketmgt/src/main/java/org/onap/optf/ticketmgt/aaf/AafFilter.java
cmso-ticketmgt/src/main/java/org/onap/optf/ticketmgt/aaf/FilterPriority.java
cmso-ticketmgt/src/main/java/org/onap/optf/ticketmgt/aaf/ResponseFormatter.java
cmso-ticketmgt/src/main/java/org/onap/optf/ticketmgt/common/Availability.java
cmso-ticketmgt/src/main/java/org/onap/optf/ticketmgt/common/LogMessages.java
cmso-ticketmgt/src/main/java/org/onap/optf/ticketmgt/service/rs/models/ElementCriteria.java
cmso-ticketmgt/src/main/java/org/onap/optf/ticketmgt/service/rs/models/TicketData.java
cmso-topology/src/main/java/org/onap/optf/cmso/aaf/AafAuthorizationFilter.java
cmso-topology/src/main/java/org/onap/optf/cmso/aaf/AafFilter.java
cmso-topology/src/main/java/org/onap/optf/cmso/aaf/AafPerm.java
cmso-topology/src/main/java/org/onap/optf/cmso/aaf/AafUserRole.java
cmso-topology/src/main/java/org/onap/optf/cmso/aaf/AafUserRoleProperties.java
cmso-topology/src/main/java/org/onap/optf/cmso/aaf/FilterPriority.java
cmso-topology/src/main/java/org/onap/optf/cmso/aaf/ResponseFormatter.java
cmso-topology/src/main/java/org/onap/optf/cmso/topology/SpringProfiles.java
cmso-topology/src/main/java/org/onap/optf/cmso/topology/common/Availability.java
cmso-topology/src/main/java/org/onap/optf/cmso/topology/common/LogMessages.java
cmso-topology/src/main/java/org/onap/optf/cmso/topology/service/rs/models/ConstraintElements.java
cmso-topology/src/main/java/org/onap/optf/cmso/topology/service/rs/models/ElementCriteria.java
cmso-topology/src/main/java/org/onap/optf/cmso/topology/service/rs/models/ElementInfo.java
cmso-topology/src/main/java/org/onap/optf/cmso/topology/service/rs/models/PolicyInfo.java
cmso-topology/src/main/java/org/onap/optf/cmso/topology/service/rs/models/ReferencedElementInfo.java
pom.xml

index 230c0a0..212e9f5 100644 (file)
@@ -1,4 +1,4 @@
-/*******************************************************************************
+/*
  * Copyright © 2019 AT&T Intellectual Property.
  *
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
index 015305a..d853e06 100644 (file)
@@ -1,4 +1,4 @@
-/*******************************************************************************
+/*
  * Copyright © 2019 AT&T Intellectual Property.
  *
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
index f2a95ea..9c9e6c2 100644 (file)
@@ -1,4 +1,4 @@
-/*******************************************************************************
+/*
  * Copyright © 2019 AT&T Intellectual Property.
  *
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
index 859c3ed..4b7fde3 100644 (file)
@@ -1,4 +1,4 @@
-/*******************************************************************************
+/*
  * Copyright © 2019 AT&T Intellectual Property.
  *
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
index 037c54e..1da9f1c 100644 (file)
@@ -1,4 +1,4 @@
-/*******************************************************************************
+/*
  * Copyright © 2019 AT&T Intellectual Property.
  *
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
index 0b22e99..585307d 100644 (file)
@@ -1,4 +1,4 @@
-/*******************************************************************************
+/*
  * Copyright © 2019 AT&T Intellectual Property.
  *
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
index be8656d..28f9215 100644 (file)
@@ -1,4 +1,4 @@
-/*******************************************************************************
+/*
  * Copyright © 2019 AT&T Intellectual Property.
  *
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
index 07bca5b..9aa439c 100644 (file)
@@ -27,6 +27,7 @@
 package org.onap.optf.cmso.optimizer.filters;
 
 import static com.att.eelf.configuration.Configuration.MDC_KEY_REQUEST_ID;
+
 import java.io.IOException;
 import javax.ws.rs.client.ClientRequestContext;
 import javax.ws.rs.client.ClientRequestFilter;
index 1c40196..ef00d72 100644 (file)
@@ -65,7 +65,7 @@ public class MessageHeaders {
     }
 
     /** The Constant supportedMajorVersions. */
-    public static final Map<String, String> supportedMajorVersions = new HashMap<String, String>();
+    private static final Map<String, String> supportedMajorVersions = new HashMap<String, String>();
 
     static {
         supportedMajorVersions.put("v1", "0");
@@ -73,7 +73,7 @@ public class MessageHeaders {
     }
 
     /** The Constant supportedMajorMinorVersions. */
-    public static final Set<String> supportedMajorMinorVersions = new HashSet<String>();
+    private static final Set<String> supportedMajorMinorVersions = new HashSet<String>();
 
     static {
         supportedMajorMinorVersions.add("v1.0");
@@ -81,10 +81,10 @@ public class MessageHeaders {
     }
 
     /** The Constant latestVersion. */
-    public static final String latestVersion = "2.0.0";
+    private static final String latestVersion = "2.0.0";
 
     /** The Constant patchVersion. */
-    public static final String patchVersion = "0";
+    private static final String patchVersion = "0";
 
     /**
      * From string.
index d5cbac4..6cdf062 100644 (file)
 
 package org.onap.optf.cmso.optimizer.service.rs;
 
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import io.swagger.annotations.ApiParam;
+import io.swagger.annotations.ApiResponse;
+import io.swagger.annotations.ApiResponses;
 import javax.ws.rs.DELETE;
 import javax.ws.rs.DefaultValue;
 import javax.ws.rs.GET;
@@ -42,11 +47,6 @@ import org.onap.optf.cmso.optimizer.service.rs.models.PolicyInfo;
 import org.springframework.web.bind.annotation.PathVariable;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RequestMethod;
-import io.swagger.annotations.Api;
-import io.swagger.annotations.ApiOperation;
-import io.swagger.annotations.ApiParam;
-import io.swagger.annotations.ApiResponse;
-import io.swagger.annotations.ApiResponses;
 
 @Api("Optimizer Interface")
 @Path("/{apiVersion}")
index 0abf963..f36a9bd 100644 (file)
@@ -1,4 +1,4 @@
-/*******************************************************************************
+/*
  * Copyright 2019 AT&T Intellectual Property.
  * 
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not
index af1f88d..e92d9dd 100644 (file)
@@ -1,4 +1,4 @@
-/*******************************************************************************\r
+/*\r
  * ============LICENSE_START=======================================================================================\r
  * Copyright (c) 2019 AT&T Intellectual Property.\r
  * ===================================================================\r
index 781febb..71387f4 100644 (file)
@@ -1,4 +1,4 @@
-/*******************************************************************************\r
+/*\r
  * ============LICENSE_START=======================================================================================\r
  * Copyright (c) 2019 AT&T Intellectual Property.\r
  * ===================================================================\r
index c26abec..8b4c44a 100644 (file)
@@ -1,4 +1,4 @@
-/*******************************************************************************\r
+/*\r
  * ============LICENSE_START=======================================================================================\r
  * Copyright (c) 2019 AT&T Intellectual Property.\r
  * ===================================================================\r
index f4cb73e..69a320d 100644 (file)
@@ -1,4 +1,4 @@
-/**
+/*
  * ============LICENSE_START=======================================================
  * org.onap.optf.cmso
  * ================================================================================
index ac4b726..c38a53d 100644 (file)
@@ -1,4 +1,4 @@
-/*******************************************************************************
+/*
  * Copyright © 2019 AT&T Intellectual Property.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
index 5a93481..661510d 100644 (file)
@@ -1,4 +1,4 @@
-/*******************************************************************************
+/*
  * Copyright © 2019 AT&T Intellectual Property.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
index db58156..278f3ab 100644 (file)
@@ -1,4 +1,4 @@
-/*******************************************************************************
+/*
  * Copyright © 2019 AT&T Intellectual Property.
  *
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
index 417f9e2..87938d7 100644 (file)
@@ -1,4 +1,4 @@
-/*******************************************************************************
+/*
  * Copyright © 2019 AT&T Intellectual Property.
  *
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
index d9a419d..624171d 100644 (file)
@@ -1,4 +1,4 @@
-/*******************************************************************************
+/*
  * Copyright © 2019 AT&T Intellectual Property.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
index e973a4f..e861f71 100644 (file)
@@ -1,4 +1,4 @@
-/*******************************************************************************
+/*
  * Copyright © 2019 AT&T Intellectual Property.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
index b9c287f..8ed6df3 100644 (file)
@@ -1,4 +1,4 @@
-/*******************************************************************************
+/*
  * Copyright © 2019 AT&T Intellectual Property.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
index 84644e5..048c44c 100644 (file)
@@ -1,4 +1,4 @@
-/*******************************************************************************\r
+/*\r
  * ============LICENSE_START=======================================================================================\r
  * Copyright (c) 2019 AT&T Intellectual Property.\r
  * ===================================================================\r
index 269c4b5..e3974cd 100644 (file)
@@ -381,7 +381,7 @@ public class CmsoOptimizerClient {
     /**
      * Health check.
      *
-     * @return
+     * @return - health check component status
      */
     public HealthCheckComponent healthCheck() {
         Map<String, String> mdcSave = Mdc.save();
index 7b1dd58..2bbed1f 100644 (file)
@@ -1,4 +1,4 @@
-/*******************************************************************************
+/*
  * Copyright © 2019 AT&T Intellectual Property.
  *
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
index 5811df7..3f0815f 100644 (file)
@@ -27,7 +27,7 @@
                <version>1.0.1-SNAPSHOT</version>\r
        </parent>\r
 \r
-       <groupId>org.onap.optf.cmso</groupId>\r
+       <groupId>org.onap.optf.cmso.sonar</groupId>\r
        <artifactId>cmso-sonar</artifactId>\r
 \r
        <name>cmso-sonar</name>\r
@@ -91,6 +91,7 @@
                                <groupId>org.apache.maven.plugins</groupId>\r
                                <artifactId>maven-failsafe-plugin</artifactId>\r
                                <configuration>\r
+                                       <testSourceDirectory>${project.basedir}/src/it/java</testSourceDirectory>\r
                                        <skipITs>${skipIntegrationTests}</skipITs>\r
                                </configuration>\r
                        </plugin>\r
@@ -24,18 +24,17 @@ import java.nio.file.Paths;
 import java.nio.file.StandardCopyOption;
 import java.util.ArrayList;
 import java.util.List;
-import java.util.Map;
 import java.util.Properties;
 import org.apache.commons.io.IOUtils;
 import org.junit.Test;
 
-public class IT_FullIntegrationTest {
+public class ItFullIntegrationTest {
 
     private Properties env = new Properties();
 
     @Test
     public void runTest() throws IOException {
-        InputStream is = new FileInputStream(new File("src/test/resources/integration.properties"));
+        InputStream is = new FileInputStream(new File("src/it/resources/integration.properties"));
         env.load(is);
         Process process = null;
         try {
@@ -121,13 +120,14 @@ public class IT_FullIntegrationTest {
         try {
             Files.walk(src).forEach(s -> {
                 try {
-                    Path d = dest.resolve(src.relativize(s));
+                    Path dpath = dest.resolve(src.relativize(s));
                     if (Files.isDirectory(s)) {
-                        if (!Files.exists(d))
-                            Files.createDirectory(d);
+                        if (!Files.exists(dpath)) {
+                            Files.createDirectory(dpath);
+                        }
                         return;
                     }
-                    Files.copy(s, d);
+                    Files.copy(s, dpath);
                 } catch (Exception e) {
                     e.printStackTrace();
                 }
@@ -138,14 +138,13 @@ public class IT_FullIntegrationTest {
     }
 
     private ProcessBuilder buildCommand() {
-        ProcessBuilder processBuilder = new ProcessBuilder();
         List<String> command = new ArrayList<>();
         String basepath = env.getProperty("base.path", "./");
-        File workdir = new File(env.getProperty("workdir", "./docker/integration"));
         command.add("/bin/bash");
         command.add("-x");
         command.add(basepath + "ete_test.sh");
-        Map<String, String> environment = processBuilder.environment();
+        File workdir = new File(env.getProperty("workdir", "./docker/integration"));
+        ProcessBuilder processBuilder = new ProcessBuilder();
         processBuilder.directory(workdir);
         processBuilder.command(command);
         return processBuilder;
index 1ca525e..2d7b3e2 100644 (file)
@@ -1,4 +1,4 @@
-/**
+/*
  * ============LICENSE_START=======================================================
  * org.onap.optf.cmso
  * ================================================================================
index ea044a4..3d49b52 100644 (file)
@@ -1,4 +1,4 @@
-/**
+/*
  * ============LICENSE_START=======================================================
  * org.onap.optf.cmso
  * ================================================================================
index 1f27fee..5374221 100644 (file)
@@ -1,4 +1,4 @@
-/**
+/*
  * ============LICENSE_START=======================================================
  * org.onap.optf.cmso
  * ================================================================================
index f1dff2c..8cd0d6b 100644 (file)
@@ -1,4 +1,4 @@
-/**
+/*
  * ============LICENSE_START=======================================================
  * org.onap.optf.cmso
  * ================================================================================
index 156b3ce..f8cdced 100644 (file)
@@ -1,4 +1,4 @@
-/**
+/*
  * ============LICENSE_START=======================================================
  * org.onap.optf.cmso
  * ================================================================================
index e2602d0..36e36f9 100644 (file)
@@ -1,4 +1,4 @@
-/*******************************************************************************
+/*
  * Copyright © 2019 AT&T Intellectual Property.
  *
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
index e396264..a72a979 100644 (file)
@@ -1,4 +1,4 @@
-/*******************************************************************************
+/*
  * Copyright © 2019 AT&T Intellectual Property.
  *
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
index db58156..278f3ab 100644 (file)
@@ -1,4 +1,4 @@
-/*******************************************************************************
+/*
  * Copyright © 2019 AT&T Intellectual Property.
  *
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
index 65decec..17e3c22 100644 (file)
@@ -1,4 +1,4 @@
-/*******************************************************************************
+/*
  * Copyright © 2019 AT&T Intellectual Property.
  *
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
index 2d252f8..7c39fc9 100644 (file)
@@ -1,4 +1,4 @@
-/*******************************************************************************
+/*
  * Copyright © 2019 AT&T Intellectual Property.
  *
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
index bfafbd8..2521ef7 100644 (file)
@@ -1,4 +1,4 @@
-/*******************************************************************************
+/*
  * Copyright © 2019 AT&T Intellectual Property.
  *
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
index 518814e..b1a01bc 100644 (file)
@@ -1,4 +1,4 @@
-/*******************************************************************************
+/*
  * Copyright © 2019 AT&T Intellectual Property.
  *
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
index 4e6455c..5a8171d 100644 (file)
@@ -1,4 +1,4 @@
-/*******************************************************************************
+/*
  * Copyright © 2019 AT&T Intellectual Property.
  *
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
diff --git a/pom.xml b/pom.xml
index d1a50cd..c9cae2c 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -38,7 +38,7 @@
        <parent>\r
                <groupId>org.onap.oparent</groupId>\r
                <artifactId>oparent</artifactId>\r
-               <version>1.2.1</version>\r
+               <version>1.2.3</version>\r
        </parent>\r
 \r
        <groupId>org.onap.optf.cmso</groupId>\r