Adding Lombok to avoid boilerplate code 95/33395/2
authornoahs <noah.shogan@gmail.com>
Wed, 28 Feb 2018 09:58:07 +0000 (11:58 +0200)
committernoahs <noah.shogan@amdocs.com>
Sun, 25 Mar 2018 14:15:18 +0000 (17:15 +0300)
simple use og @Data annotation

Change-Id: I6475f0aad25b3cad99052e7acfaf01c17139ce28
Issue-ID: SDC-1067
Signed-off-by: noahs <noah.shogan@amdocs.com>
51 files changed:
onboarding/pom.xml
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/pom.xml
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/ComponentCreationDto.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/ComponentDependencyCreationDto.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/ComponentDependencyModel.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/ComponentDependencyModelRequestDto.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/ComponentDependencyResponseDto.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/ComponentDto.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/ComponentRelationType.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/ComponentRequestDto.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/ComponentValidationResultDto.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/CompositionDataEntityDto.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/CompositionEntityResponseDto.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/CompositionEntityValidationDataDto.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/ComputeCreationDto.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/ComputeDescription.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/ComputeDetailsDto.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/ComputeDto.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/DeploymentFlavorCreationDto.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/DeploymentFlavorDto.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/DeploymentFlavorListResponseDto.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/DeploymentFlavorRequestDto.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/DeploymentFlavorValidationResultDto.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/FileDataStructureDto.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/ImageCreationDto.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/ImageDto.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/ImageRequestDto.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/MonitoringUploadStatusDto.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/NetworkDto.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/NetworkRequestDto.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/NicCreationResponseDto.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/NicDto.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/NicRequestDto.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/OrchestrationTemplateAction.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/OrchestrationTemplateActionResponseDto.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/PackageInfoDto.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/ProcessEntityDto.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/ProcessRequestDto.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/QuestionnaireDto.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/QuestionnaireResponseDto.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/QuestionnaireValidationResultDto.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/TranslatedFileDataDto.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/UploadFileResponseDto.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/ValidationResponseDto.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/VendorSoftwareProductAction.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/VersionSoftwareProductActionRequestDto.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/VmSizing.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/VspComputeDto.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/VspDescriptionDto.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/VspDetailsDto.java
openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-types/src/main/java/org/openecomp/sdcrests/vendorsoftwareproducts/types/VspRequestDto.java

index bd867fd..f2569a0 100644 (file)
         <pmd.version>5.8.1</pmd.version>
         <build.tools.version>${project.version}</build.tools.version>
         <togglz.version>2.4.1.Final</togglz.version>
+
     </properties>
 
+    <dependencyManagement>
+        <dependencies>
+            <dependency>
+                <groupId>org.projectlombok</groupId>
+                <artifactId>lombok</artifactId>
+                <version>1.16.20</version>
+                <scope>provided</scope>
+            </dependency>
+        </dependencies>
+    </dependencyManagement>
+
     <build>
         <plugins>
             <plugin>
index fca77a8..b724283 100644 (file)
             <artifactId>openecomp-sdc-vendor-software-product-manager</artifactId>
             <version>${project.version}</version>
         </dependency>
+        <dependency>
+            <groupId>org.projectlombok</groupId>
+            <artifactId>lombok</artifactId>
+        </dependency>
     </dependencies>
 
 </project>
index a4ec05c..f633e2c 100644 (file)
@@ -1,13 +1,24 @@
-package org.openecomp.sdcrests.vendorsoftwareproducts.types;
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
 
-public class ComponentCreationDto {
-  private String vfcId;
+package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
-  public String getVfcId() {
-    return vfcId;
-  }
+import lombok.Data;
 
-  public void setVfcId(String vfcId) {
-    this.vfcId = vfcId;
-  }
+@Data
+public class ComponentCreationDto {
+    private String vfcId;
 }
index d9f8354..50bd66f 100644 (file)
@@ -1,13 +1,24 @@
-package org.openecomp.sdcrests.vendorsoftwareproducts.types;
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
 
-public class ComponentDependencyCreationDto {
-  private String id;
+package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
-  public String getId() {
-    return id;
-  }
+import lombok.Data;
 
-  public void setId(String id) {
-    this.id = id;
-  }
+@Data
+public class ComponentDependencyCreationDto {
+    private String id;
 }
index 097a00d..b3a0620 100644 (file)
@@ -1,33 +1,27 @@
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
+import lombok.Data;
 
+@Data
 public class ComponentDependencyModel {
 
-  private String sourceId;
-  private String targetId;
-  private String relationType;
-
-  public String getSourceId() {
-    return sourceId;
-  }
-
-  public void setSourceId(String sourceId) {
-    this.sourceId = sourceId;
-  }
-
-  public String getTargetId() {
-    return targetId;
-  }
-
-  public void setTargetId(String targetId) {
-    this.targetId = targetId;
-  }
-
-  public String getRelationType() {
-    return relationType;
-  }
-
-  public void setRelationType(String relationType) {
-    this.relationType = relationType;
-  }
+    private String sourceId;
+    private String targetId;
+    private String relationType;
 }
index 12fed3e..7a1d154 100644 (file)
@@ -1,18 +1,29 @@
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
 
+import lombok.Data;
+
 import java.util.List;
 
+@Data
 public class ComponentDependencyModelRequestDto {
 
-  private List<ComponentDependencyModel> componentDependencyModels;
-
-  public List<ComponentDependencyModel> getComponentDependencyModels() {
-    return componentDependencyModels;
-  }
+    private List<ComponentDependencyModel> componentDependencyModels;
 
-  public void setComponentDependencyModels(
-      List<ComponentDependencyModel> componentDependencyModels) {
-    this.componentDependencyModels = componentDependencyModels;
-  }
 }
index 91f89a1..4874efb 100644 (file)
@@ -1,41 +1,27 @@
-package org.openecomp.sdcrests.vendorsoftwareproducts.types;
-
-public class ComponentDependencyResponseDto {
-
-  private String sourceId;
-  private String targetId;
-  private String relationType;
-  private String id;
-
-  public String getSourceId() {
-    return sourceId;
-  }
-
-  public void setSourceId(String sourceId) {
-    this.sourceId = sourceId;
-  }
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
 
-  public String getTargetId() {
-    return targetId;
-  }
-
-  public void setTargetId(String targetId) {
-    this.targetId = targetId;
-  }
-
-  public String getRelationType() {
-    return relationType;
-  }
-
-  public void setRelationType(String relationType) {
-    this.relationType = relationType;
-  }
+package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
-  public String getId() {
-    return id;
-  }
+import lombok.Data;
 
-  public void setId(String id) {
-    this.id = id;
-  }
+@Data
+public class ComponentDependencyResponseDto {
+    private String sourceId;
+    private String targetId;
+    private String relationType;
+    private String id;
 }
index 63b7e6e..f9651e6 100644 (file)
@@ -1,35 +1,24 @@
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *      http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
 
 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
-public class ComponentDto extends ComponentRequestDto implements CompositionDataEntityDto {
-
-  private String id;
-
-  public String getId() {
-    return id;
-  }
-
-  public void setId(String id) {
-    this.id = id;
-  }
+import lombok.Data;
 
+@Data
+public class ComponentDto extends ComponentRequestDto implements CompositionDataEntityDto {
+    private String id;
 }
index 12bb02c..bf9e3f3 100644 (file)
@@ -1,6 +1,22 @@
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
 public enum ComponentRelationType {
-  dependsOn,
-  other
+    dependsOn,
+    other
 }
index 364e119..8f4a51e 100644 (file)
@@ -1,85 +1,37 @@
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
 
 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
+import lombok.Data;
+
 import javax.validation.constraints.NotNull;
 import javax.validation.constraints.Size;
 
+@Data
 public class ComponentRequestDto {
 
-  private String name;
-  @NotNull(message = "VFC displayName is mandatory.")
-  @Size(min = 1, max = 30,message = "VFC displayName length should be between 1 and 30.")
-  private String displayName;
-  @Size(min = 0, max = 1000,message = "description length should not exceed 1000.")
-  private String vfcCode;
-  private String nfcCode;
-  private String nfcFunction;
-  private String description;
-
-  public String getName() {
-    return name;
-  }
-
-  public void setName(String name) {
-    this.name = name;
-  }
-
-  public String getDisplayName() {
-    return displayName;
-  }
-
-  public void setDisplayName(String displayName) {
-    this.displayName = displayName;
-  }
-
-  public String getDescription() {
-    return description;
-  }
-
-  public void setDescription(String description) {
-    this.description = description;
-  }
-
-  public String getVfcCode() {
-    return vfcCode;
-  }
-
-  public void setVfcCode(String vfcCode) {
-    this.vfcCode = vfcCode;
-  }
-
-  public String getNfcCode() {
-    return nfcCode;
-  }
-
-  public void setNfcCode(String nfcCode) {
-    this.nfcCode = nfcCode;
-  }
-
-  public String getNfcFunction() {
-    return nfcFunction;
-  }
+    private String name;
+    @NotNull(message = "VFC displayName is mandatory.")
+    @Size(min = 1, max = 30, message = "VFC displayName length should be between 1 and 30.")
+    private String displayName;
+    @Size(min = 0, max = 1000, message = "description length should not exceed 1000.")
+    private String vfcCode;
+    private String nfcCode;
+    private String nfcFunction;
+    private String description;
 
-  public void setNfcFunction(String nfcFunction) {
-    this.nfcFunction = nfcFunction;
-  }
 }
index b5456b7..1270212 100644 (file)
@@ -1,25 +1,28 @@
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
 
+import lombok.Data;
+
 import java.util.Set;
 
+@Data
 public class ComponentValidationResultDto {
-  private boolean valid;
-  private Set<CompositionEntityValidationDataDto> validationData;
-
-  public boolean isValid() {
-    return valid;
-  }
-
-  public void setValid(boolean valid) {
-    this.valid = valid;
-  }
-
-  public Set<CompositionEntityValidationDataDto> getValidationData() {
-    return validationData;
-  }
-
-  public void setValidationData(Set<CompositionEntityValidationDataDto> validationData) {
-    this.validationData = validationData;
-  }
+    private boolean valid;
+    private Set<CompositionEntityValidationDataDto> validationData;
 }
index 8eb1c65..3e6607e 100644 (file)
@@ -1,21 +1,17 @@
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
+/*
+ * Copyright © 2016-2018 European Support Limited
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- * ============LICENSE_END=========================================================
  */
 
 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
index 6e25e35..31bbfc2 100644 (file)
@@ -1,51 +1,26 @@
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *      http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
 
 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
-public class CompositionEntityResponseDto<T extends CompositionDataEntityDto> {
-  private String id;
-  private String schema;
-  private T data;
-
-  public String getId() {
-    return id;
-  }
-
-  public void setId(String id) {
-    this.id = id;
-  }
-
-  public String getSchema() {
-    return schema;
-  }
+import lombok.Data;
 
-  public void setSchema(String schema) {
-    this.schema = schema;
-  }
-
-  public T getData() {
-    return data;
-  }
-
-  public void setData(T data) {
-    this.data = data;
-  }
+@Data
+public class CompositionEntityResponseDto<T extends CompositionDataEntityDto> {
+    private String id;
+    private String schema;
+    private T data;
 }
index 696ac45..1848276 100644 (file)
@@ -1,74 +1,31 @@
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *      http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
 
 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
+import lombok.Data;
 import org.openecomp.sdc.vendorsoftwareproduct.types.composition.CompositionEntityType;
 
 import java.util.Collection;
 
+@Data
 public class CompositionEntityValidationDataDto {
-  private CompositionEntityType entityType;
-  private String entityId;
-  private String entityName;
-  private Collection<String> errors;
-  private Collection<CompositionEntityValidationDataDto> subEntitiesValidationData;
-
-  public CompositionEntityType getEntityType() {
-    return entityType;
-  }
-
-  public void setEntityType(CompositionEntityType entityType) {
-    this.entityType = entityType;
-  }
-
-  public String getEntityId() {
-    return entityId;
-  }
-
-  public void setEntityId(String entityId) {
-    this.entityId = entityId;
-  }
-
-  public String getEntityName() {
-    return entityName;
-  }
-
-  public void setEntityName(String entityName) {
-    this.entityName = entityName;
-  }
-
-  public Collection<String> getErrors() {
-    return errors;
-  }
-
-  public void setErrors(Collection<String> errors) {
-    this.errors = errors;
-  }
-
-  public Collection<CompositionEntityValidationDataDto> getSubEntitiesValidationData() {
-    return subEntitiesValidationData;
-  }
-
-  public void setSubEntitiesValidationData(
-      Collection<CompositionEntityValidationDataDto> subEntitiesValidationData) {
-    this.subEntitiesValidationData = subEntitiesValidationData;
-  }
+    private CompositionEntityType entityType;
+    private String entityId;
+    private String entityName;
+    private Collection<String> errors;
+    private Collection<CompositionEntityValidationDataDto> subEntitiesValidationData;
 }
index f2b0689..3601d54 100644 (file)
@@ -1,13 +1,24 @@
-package org.openecomp.sdcrests.vendorsoftwareproducts.types;
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
 
-public class ComputeCreationDto {
-  private String id;
+package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
-  public String getId() {
-    return id;
-  }
+import lombok.Data;
 
-  public void setId(String id) {
-    this.id = id;
-  }
+@Data
+public class ComputeCreationDto {
+    private String id;
 }
index 1c4283a..2bc2731 100644 (file)
@@ -1,31 +1,34 @@
-package org.openecomp.sdcrests.vendorsoftwareproducts.types;
-
-public class ComputeDescription {
-  private String name;
-  private String description;
-
-  public String getName() {
-    return name;
-  }
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
 
-  public void setName(String name) {
-    this.name = name;
-  }
-
-  public String getDescription() {
-    return description;
-  }
+package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
-  public void setDescription(String description) {
-    this.description = description;
-  }
+import lombok.Data;
 
-  public ComputeDescription() {
+@Data
+public class ComputeDescription {
+    private String name;
+    private String description;
 
-  }
+    public ComputeDescription() {
+        // needs a default constructor for reflection
+    }
 
-  public ComputeDescription(String name, String description) {
-    this.name = name;
-    this.description = description;
-  }
+    public ComputeDescription(String name, String description) {
+        this.name = name;
+        this.description = description;
+    }
 }
index d3e68b8..5e0de75 100644 (file)
@@ -1,32 +1,32 @@
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
+import lombok.Data;
 import org.hibernate.validator.constraints.NotBlank;
 
 import javax.validation.constraints.Size;
 
+@Data
 public class ComputeDetailsDto implements CompositionDataEntityDto {
-  @NotBlank(message = "is mandatory and should not be empty")
-  @Size(min = 0, max = 30, message = "length should not exceed 30 characters.")
-  private String name;
-  @Size(min = 0, max = 300, message = "length should not exceed 300 characters.")
-  private String description;
-
-  public ComputeDetailsDto() {
-  }
-
-  public String getName() {
-    return name;
-  }
-
-  public void setName(String name) {
-    this.name = name;
-  }
-
-  public String getDescription() {
-    return description;
-  }
+    @NotBlank(message = "is mandatory and should not be empty")
+    @Size(min = 0, max = 30, message = "length should not exceed 30 characters.")
+    private String name;
+    @Size(min = 0, max = 300, message = "length should not exceed 300 characters.")
+    private String description;
 
-  public void setDescription(String description) {
-    this.description = description;
-  }
 }
index 829e2c5..6f9aaa1 100644 (file)
@@ -1,40 +1,27 @@
-package org.openecomp.sdcrests.vendorsoftwareproducts.types;
-
-public class ComputeDto {
-  private String name;
-  private String id;
-  private String description;
-  private boolean associatedToDeploymentFlavor;
-
-  public boolean isAssociatedToDeploymentFlavor() {
-    return associatedToDeploymentFlavor;
-  }
-
-  public void setAssociatedToDeploymentFlavor(boolean associatedToDeploymentFlavor) {
-    this.associatedToDeploymentFlavor = associatedToDeploymentFlavor;
-  }
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
 
-  public String getName() {
-    return name;
-  }
-
-  public void setName(String name) {
-    this.name = name;
-  }
-
-  public String getId() {
-    return id;
-  }
-
-  public void setId(String id) {
-    this.id = id;
-  }
+package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
-  public String getDescription() {
-    return description;
-  }
+import lombok.Data;
 
-  public void setDescription(String description) {
-    this.description = description;
-  }
+@Data
+public class ComputeDto {
+    private String name;
+    private String id;
+    private String description;
+    private boolean associatedToDeploymentFlavor;
 }
index d4c3443..1fb65c4 100644 (file)
@@ -1,14 +1,24 @@
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
+import lombok.Data;
 
+@Data
 public class DeploymentFlavorCreationDto {
-  private String deploymentFlavorId;
-
-  public String getDeploymentFlavorId() {
-    return deploymentFlavorId;
-  }
-
-  public void setDeploymentFlavorId(String deploymentFlavorId) {
-    this.deploymentFlavorId = deploymentFlavorId;
-  }
+    private String deploymentFlavorId;
 }
index 1748603..e4eb4af 100644 (file)
@@ -1,14 +1,24 @@
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
-public class DeploymentFlavorDto extends DeploymentFlavorRequestDto implements CompositionDataEntityDto {
+import lombok.Data;
 
+@Data
+public class DeploymentFlavorDto extends DeploymentFlavorRequestDto implements CompositionDataEntityDto {
     private String id;
-
-    public String getId() {
-        return id;
-    }
-
-    public void setId(String id) {
-        this.id = id;
-    }
 }
index fe51c9e..db6850a 100644 (file)
@@ -1,34 +1,26 @@
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
+import lombok.Data;
 
+@Data
 public class DeploymentFlavorListResponseDto {
-  public String getModel() {
-    return model;
-  }
-
-  public void setModel(String model) {
-    this.model = model;
-  }
-
-  private String model;
-
-  public String getDescription() {
-    return description;
-  }
-
-  public void setDescription(String description) {
-    this.description = description;
-  }
-
-  private String description;
-
-  public String getId() {
-    return id;
-  }
-
-  public void setId(String id) {
-    this.id = id;
-  }
-
-  private String id;
+    private String model;
+    private String description;
+    private String id;
 }
index a24d01a..2b34858 100644 (file)
@@ -1,51 +1,37 @@
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
 
+import lombok.Data;
 import org.hibernate.validator.constraints.NotBlank;
 import org.openecomp.sdc.vendorsoftwareproduct.types.composition.ComponentComputeAssociation;
 
 import javax.validation.constraints.Size;
 import java.util.List;
 
+@Data
 public class DeploymentFlavorRequestDto {
     @NotBlank(message = "is mandatory and should not be empty")
-    @Size(min = 0, max = 30,message = "length should not exceed 30 characters.")
+    @Size(min = 0, max = 30, message = "length should not exceed 30 characters.")
     private String model;
-    @Size(min = 0, max = 300,message = "length should not exceed 300 characters.")
+    @Size(min = 0, max = 300, message = "length should not exceed 300 characters.")
     private String description;
     private String featureGroupId;
     private List<ComponentComputeAssociation> componentComputeAssociations;
 
-    public String getModel() {
-        return model;
-    }
-
-    public void setModel(String model) {
-        this.model = model;
-    }
-
-    public String getDescription() {
-        return description;
-    }
-
-    public void setDescription(String description) {
-        this.description = description;
-    }
-
-    public String getFeatureGroupId() {
-        return featureGroupId;
-    }
-
-    public void setFeatureGroupId(String featureGroupId) {
-        this.featureGroupId = featureGroupId;
-    }
-
-    public List<ComponentComputeAssociation> getComponentComputeAssociations() {
-        return componentComputeAssociations;
-    }
-
-    public void setComponentComputeAssociations(List<ComponentComputeAssociation> componentComputeAssociations) {
-        this.componentComputeAssociations = componentComputeAssociations;
-    }
-
 }
index d6f557c..7029bfc 100644 (file)
@@ -1,25 +1,28 @@
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
 
+import lombok.Data;
+
 import java.util.Set;
 
+@Data
 public class DeploymentFlavorValidationResultDto {
-  private boolean valid;
-  private Set<CompositionEntityValidationDataDto> validationData;
-
-  public boolean isValid() {
-    return valid;
-  }
-
-  public void setValid(boolean valid) {
-    this.valid = valid;
-  }
-
-  public Set<CompositionEntityValidationDataDto> getValidationData() {
-    return validationData;
-  }
-
-  public void setValidationData(Set<CompositionEntityValidationDataDto> validationData) {
-    this.validationData = validationData;
-  }
+    private boolean valid;
+    private Set<CompositionEntityValidationDataDto> validationData;
 }
index 5d1191c..166efec 100644 (file)
@@ -1,69 +1,35 @@
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
 
 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
+import lombok.Data;
 import org.openecomp.sdc.vendorsoftwareproduct.types.candidateheat.Module;
 
-import java.util.ArrayList;
 import java.util.List;
 
 /**
  * @author Avrahamg
  * @since November 07, 2016
  */
-public class FileDataStructureDto {
-    private List<Module> modules = new ArrayList<>();
-    private List<String> unassigned = new ArrayList<>();
-    private List<String> artifacts = new ArrayList<>();
-    private List<String> nested = new ArrayList<>();
-
-    public List<Module> getModules() {
-        return modules;
-    }
-
-    public void setModules(List<Module> modules) {
-        this.modules = modules;
-    }
-
-    public List<String> getUnassigned() {
-        return unassigned;
-    }
 
-    public void setUnassigned(List<String> unassigned) {
-        this.unassigned = unassigned;
-    }
-
-    public List<String> getArtifacts() {
-        return artifacts;
-    }
-
-    public void setArtifacts(List<String> artifacts) {
-        this.artifacts = artifacts;
-    }
-
-    public List<String> getNested() {
-        return nested;
-    }
-
-    public void setNested(List<String> nested) {
-        this.nested = nested;
-    }
+@Data
+public class FileDataStructureDto {
+    private List<Module> modules;
+    private List<String> unassigned;
+    private List<String> artifacts;
+    private List<String> nested;
 }
index 7e1987e..96775a6 100644 (file)
@@ -1,14 +1,24 @@
-package org.openecomp.sdcrests.vendorsoftwareproducts.types;
-
-public class ImageCreationDto {
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
 
-  private String id;
+package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
-  public String getId() {
-    return id;
-  }
+import lombok.Data;
 
-  public void setId(String id) {
-    this.id = id;
-  }
+@Data
+public class ImageCreationDto {
+    private String id;
 }
index 7b30022..40105a6 100644 (file)
@@ -1,14 +1,24 @@
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
+import lombok.Data;
 
+@Data
 public class ImageDto extends ImageRequestDto implements CompositionDataEntityDto {
-  private String id;
-
-  public String getId() {
-    return id;
-  }
-
-  public void setId(String id) {
-    this.id = id;
-  }
+    private String id;
 }
index 3210104..6081a32 100644 (file)
@@ -1,71 +1,29 @@
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
+import lombok.Data;
 import org.hibernate.validator.constraints.NotBlank;
 
+@Data
 public class ImageRequestDto implements CompositionDataEntityDto {
 
-  @NotBlank(message = "is mandatory and should not be empty")
-  private String fileName;
-  private String description;
-  /*private String version;
-  private String format;
-  private String md5;
-  //private String providedBy;*/
-
-  public String getDescription() {
-    return description;
-  }
-
-  public void setDescription(String description) {
-    this.description = description;
-  }
-
-   public String getFileName() {
-    return fileName;
-  }
-
-  public void setFileName(String fileName) {
-    this.fileName = fileName;
-  }
-
-  /*public String getMd5() {
-    return md5;
-  }
-
-  public void setMd5(String md5) {
-    this.md5 = md5;
-  }
-
-  public String getFormat() {
-    return format;
-  }
-
-  public void setFormat(String format) {
-    this.format = format;
-  }
-
-  public String getVersion() {
-    return version;
-  }
-
-  public void setVersion(String version) {
-    this.version = version;
-  }
-
-  public String getFileName() {
-    return fileName;
-  }
-
-  public void setFileName(String fileName) {
-    this.fileName = fileName;
-  }
-
-  /*public String getProvidedBy() {
-    return providedBy;
-  }
-
-  public void setProvidedBy(String providedBy) {
-    this.providedBy = providedBy;
-  }*/
+    @NotBlank(message = "is mandatory and should not be empty")
+    private String fileName;
+    private String description;
 
 }
index 38cd631..a8c1c58 100644 (file)
@@ -1,56 +1,27 @@
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *      http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
 
 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
-public class MonitoringUploadStatusDto {
-  private String snmpTrap;
-  private String snmpPoll;
-  private String vesEvent;
-
-
-  public MonitoringUploadStatusDto() {
-  }
-
-  public String getSnmpTrap() {
-    return snmpTrap;
-  }
-
-  public void setSnmpTrap(String snmpTrap) {
-    this.snmpTrap = snmpTrap;
-  }
+import lombok.Data;
 
-  public String getSnmpPoll() {
-    return snmpPoll;
-  }
-
-  public String getVesEvent() {
-    return vesEvent;
-  }
-
-  public void setVesEvent(String vesEvent) {
-    this.vesEvent = vesEvent;
-  }
-
-  public void setSnmpPoll(String snmpPoll) {
-    this.snmpPoll = snmpPoll;
+@Data
+public class MonitoringUploadStatusDto {
+    private String snmpTrap;
+    private String snmpPoll;
+    private String vesEvent;
 
-  }
 }
index 09ff449..b944970 100644 (file)
@@ -1,34 +1,24 @@
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *      http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
 
 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
-public class NetworkDto extends NetworkRequestDto implements CompositionDataEntityDto {
-
-  private String id;
+import lombok.Data;
 
-  public String getId() {
-    return id;
-  }
-
-  public void setId(String id) {
-    this.id = id;
-  }
+@Data
+public class NetworkDto extends NetworkRequestDto implements CompositionDataEntityDto {
+    private String id;
 }
index 896ea22..28cfbaa 100644 (file)
@@ -1,47 +1,31 @@
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *      http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
 
 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
+import lombok.Data;
+
 import javax.validation.constraints.NotNull;
 
+@Data
 public class NetworkRequestDto {
 
-  @NotNull
-  private String name;
-  @NotNull
-  private boolean dhcp;
-
-  public String getName() {
-    return name;
-  }
-
-  public void setName(String name) {
-    this.name = name;
-  }
-
-  public boolean isDhcp() {
-    return dhcp;
-  }
+    @NotNull
+    private String name;
+    @NotNull
+    private boolean dhcp;
 
-  public void setDhcp(boolean dhcp) {
-    this.dhcp = dhcp;
-  }
 }
index 469e444..47b57e8 100644 (file)
@@ -1,14 +1,24 @@
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
+import lombok.Data;
 
+@Data
 public class NicCreationResponseDto {
-  private String nicId;
-
-  public String getNicId() {
-    return nicId;
-  }
-
-  public void setNicId(String nicId) {
-    this.nicId = nicId;
-  }
+    private String nicId;
 }
index 05cd9a3..025e494 100644 (file)
@@ -1,43 +1,25 @@
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *      http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
 
 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
-public class NicDto extends NicRequestDto implements CompositionDataEntityDto {
-
-  private String id;
-  private String networkName;
-
-  public String getId() {
-    return id;
-  }
+import lombok.Data;
 
-  public void setId(String id) {
-    this.id = id;
-  }
-
-  public String getNetworkName() {
-    return networkName;
-  }
-
-  public void setNetworkName(String networkName) {
-    this.networkName = networkName;
-  }
+@Data
+public class NicDto extends NicRequestDto implements CompositionDataEntityDto {
+    private String id;
+    private String networkName;
 }
index f4663fb..73246fd 100644 (file)
@@ -1,80 +1,38 @@
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *      http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
 
 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
+import lombok.Data;
 import org.hibernate.validator.constraints.NotBlank;
 import org.openecomp.sdcrests.vendorsoftwareproducts.types.validation.ValidateString;
 
 import javax.validation.constraints.NotNull;
 
+@Data
 public class NicRequestDto {
 
-  @NotBlank(message = "is mandatory and should not be empty")
-  private String name;
-  private String description;
-  private String networkId;
-  @NotNull
-  @ValidateString(acceptedValues = {"External", "Internal"}, message =   "doesn't "
-       "meet the expected attribute value.", isCaseSensitive = true)
-  private String networkType;
+    @NotBlank(message = "is mandatory and should not be empty")
+    private String name;
+    private String description;
+    private String networkId;
+    @NotNull
+    @ValidateString(acceptedValues = {"External", "Internal"}, message = "doesn't "
+            + "meet the expected attribute value.", isCaseSensitive = true)
+    private String networkType;
 
-  private String networkDescription;
-
-  public String getName() {
-    return name;
-  }
-
-  public void setName(String name) {
-    this.name = name;
-  }
-
-  public String getDescription() {
-    return description;
-  }
-
-  public void setDescription(String description) {
-    this.description = description;
-  }
-
-  public String getNetworkId() {
-    return networkId;
-  }
-
-  public void setNetworkId(String networkId) {
-    this.networkId = networkId;
-  }
-
-  public String getNetworkType(){
-    return networkType;
-  }
-
-  public void setNetworkType(String networkType){
-    this.networkType = networkType;
-  }
-
-  public String getNetworkDescription(){
-    return networkDescription;
-  }
-
-  public void setNetworkDescription(String networkDescription){
-    this.networkDescription = networkDescription;
-  }
+    private String networkDescription;
 }
index e31a8aa..e883913 100644 (file)
@@ -1,22 +1,18 @@
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *      http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
 
 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
@@ -24,5 +20,5 @@ package org.openecomp.sdcrests.vendorsoftwareproducts.types;
  * Created by Talio on 11/13/2016.
  */
 public enum OrchestrationTemplateAction {
-  Process
+    Process
 }
index d650bfb..36588e0 100644 (file)
@@ -1,25 +1,22 @@
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *      http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
 
 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
+import lombok.Data;
 import org.openecomp.sdc.datatypes.error.ErrorMessage;
 import org.openecomp.sdc.vendorsoftwareproduct.types.UploadFileStatus;
 
@@ -29,37 +26,9 @@ import java.util.Map;
 /**
  * Created by TALIO on 4/27/2016.
  */
+@Data
 public class OrchestrationTemplateActionResponseDto {
-  private List<String> fileNames;
-  private Map<String, List<ErrorMessage>> errors;
-  private UploadFileStatus status;
-
-  public Map<String, List<ErrorMessage>> getErrors() {
-    return errors;
-  }
-
-  public void setErrors(Map<String, List<ErrorMessage>> errors) {
-    this.errors = errors;
-  }
-
-  public UploadFileStatus getStatus() {
-    return status;
-  }
-
-  public void setStatus(UploadFileStatus status) {
-    this.status = status;
-  }
-
-  public List<String> getFileNames() {
-    return fileNames;
-  }
-
-  public void setFileNames(List<String> fileNames) {
-    this.fileNames = fileNames;
-  }
-
-  public void addNewFileToList(String filename) {
-    this.fileNames.add(filename);
-  }
-
+    private List<String> fileNames;
+    private Map<String, List<ErrorMessage>> errors;
+    private UploadFileStatus status;
 }
index 30bf8fe..de02a25 100644 (file)
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *      http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
 
 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
+import lombok.Data;
+
 /**
  * Created by TALIO on 4/25/2016.
  */
+@Data
 public class PackageInfoDto {
 
-  private String displayName;
-  private String description;
-  private String vspName;
-  private String version;
-  private String packageId;
-  private String category;
-  private String subCategory;
-  private String vendorName;
-  private String vendorRelease;
-  private String packageChecksum;
-  private String packageType;
-
-  public String getDisplayName() {
-    return displayName;
-  }
-
-  public void setDisplayName(String displayName) {
-    this.displayName = displayName;
-  }
-
-  public String getDescription() {
-    return description;
-  }
-
-  public void setDescription(String description) {
-    this.description = description;
-  }
-
-  public String getVersion() {
-    return version;
-  }
-
-  public void setVersion(String version) {
-    this.version = version;
-  }
-
-  public String getPackageId() {
-    return packageId;
-  }
-
-  public void setPackageId(String packageId) {
-    this.packageId = packageId;
-  }
-
-  public String getCategory() {
-    return category;
-  }
-
-  public void setCategory(String category) {
-    this.category = category;
-  }
-
-  public String getSubCategory() {
-    return subCategory;
-  }
-
-  public void setSubCategory(String subCategory) {
-    this.subCategory = subCategory;
-  }
-
-  public String getVendorName() {
-    return vendorName;
-  }
-
-  public void setVendorName(String vendorName) {
-    this.vendorName = vendorName;
-  }
-
-  public String getVendorRelease() {
-    return vendorRelease;
-  }
-
-  public void setVendorRelease(String vendorRelease) {
-    this.vendorRelease = vendorRelease;
-  }
-
-  public String getPackageChecksum() {
-    return packageChecksum;
-  }
-
-  public void setPackageChecksum(String packageChecksum) {
-    this.packageChecksum = packageChecksum;
-  }
-
-  public String getPackageType() {
-    return packageType;
-  }
-
-  public void setPackageType(String packageType) {
-    this.packageType = packageType;
-  }
-
-  public String getVspName() {
-    return vspName;
-  }
+    private String displayName;
+    private String description;
+    private String vspName;
+    private String version;
+    private String packageId;
+    private String category;
+    private String subCategory;
+    private String vendorName;
+    private String vendorRelease;
+    private String packageChecksum;
+    private String packageType;
 
-  public void setVspName(String vendorName) {
-    this.vspName = vendorName;
-  }
 }
index 50923ff..fcea252 100644 (file)
@@ -1,42 +1,25 @@
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *      http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
 
 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
-public class ProcessEntityDto extends ProcessRequestDto {
-  private String id;
-  private String artifactName;
-
-  public String getId() {
-    return id;
-  }
-
-  public void setId(String id) {
-    this.id = id;
-  }
+import lombok.Data;
 
-  public String getArtifactName() {
-    return artifactName;
-  }
-
-  public void setArtifactName(String artifactName) {
-    this.artifactName = artifactName;
-  }
+@Data
+public class ProcessEntityDto extends ProcessRequestDto {
+    private String id;
+    private String artifactName;
 }
index 9e09503..3379dee 100644 (file)
@@ -1,55 +1,32 @@
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *      http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
 
 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
+import lombok.Data;
 import org.openecomp.sdc.vendorsoftwareproduct.dao.type.ProcessType;
 
 import javax.validation.constraints.NotNull;
 
+@Data
 public class ProcessRequestDto {
 
-  @NotNull
-  private String name;
+    @NotNull
+    private String name;
+    private String description;
+    private ProcessType type;
 
-  private String description;
-
-  private ProcessType type;
-
-  public String getName() {
-    return name;
-  }
-
-  public void setName(String name) {
-    this.name = name;
-  }
-
-  public String getDescription() {
-    return description;
-  }
-
-  public void setDescription(String description) {
-    this.description = description;
-  }
-
-  public ProcessType getType() { return type; }
-
-  public void setType(ProcessType type) { this.type = type; }
 }
index cb30b50..763ff71 100644 (file)
@@ -1,30 +1,37 @@
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
+import lombok.Data;
+
 import java.util.HashMap;
 
 /**
  * Created by ayalaben on 9/26/2017
  */
+@Data
 public class QuestionnaireDto {
 
-  private String id;
-
-  public HashMap<String, String> getQuestionareData() {
-    return questionareData;
-  }
-
-  public void setQuestionareData(HashMap<String, String> questionareData) {
-    this.questionareData = questionareData;
-  }
-
-  private HashMap<String,String> questionareData;
+    private String id;
+    private HashMap<String, String> questionareData;
 
-  public String getId() {
-    return id;
-  }
+    public HashMap<String, String> getQuestionareData() {
+        return questionareData;
+    }
 
-  public void setId(String id) {
-    this.id = id;
-  }
 
 }
index 5828feb..763737f 100644 (file)
@@ -1,53 +1,28 @@
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *      http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
 
 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
+import lombok.Data;
 import org.openecomp.sdc.datatypes.error.ErrorMessage;
 
+@Data
 public class QuestionnaireResponseDto {
-  private String schema;
-  private String data;
-  private ErrorMessage errorMessage;
+    private String schema;
+    private String data;
+    private ErrorMessage errorMessage;
 
-  public String getSchema() {
-    return schema;
-  }
-
-  public void setSchema(String schema) {
-    this.schema = schema;
-  }
-
-  public String getData() {
-    return data;
-  }
-
-  public void setData(String data) {
-    this.data = data;
-  }
-
-  public ErrorMessage getErrorMessage() {
-    return errorMessage;
-  }
-
-  public void setErrorMessage(ErrorMessage errorMessage) {
-    this.errorMessage = errorMessage;
-  }
 }
index 00f4569..f431d18 100644 (file)
@@ -1,44 +1,28 @@
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *      http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
 
 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
+import lombok.Data;
+
 import java.util.Set;
 
+@Data
 public class QuestionnaireValidationResultDto {
-  private boolean valid;
-  private Set<CompositionEntityValidationDataDto> validationData;
-
-  public boolean isValid() {
-    return valid;
-  }
-
-  public void setValid(boolean valid) {
-    this.valid = valid;
-  }
-
-  public Set<CompositionEntityValidationDataDto> getValidationData() {
-    return validationData;
-  }
+    private boolean valid;
+    private Set<CompositionEntityValidationDataDto> validationData;
 
-  public void setValidationData(Set<CompositionEntityValidationDataDto> validationData) {
-    this.validationData = validationData;
-  }
 }
index 20a9472..23c4f75 100644 (file)
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *      http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
 
 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
+import lombok.Data;
+
 /**
  * Created by TALIO on 4/20/2016.
  */
+@Data
 public class TranslatedFileDataDto {
 
-  private String displayName;
-  private String version;
-  private String category;
-  private String subcategory;
-  private String vendorName;
-  private String vendorRelease;
-  private String packageChecksum;
-  private String packageType;
-
-  public String getDisplayName() {
-    return displayName;
-  }
-
-  public void setDisplayName(String displayName) {
-    this.displayName = displayName;
-  }
-
-  public String getVersion() {
-    return version;
-  }
-
-  public void setVersion(String version) {
-    this.version = version;
-  }
-
-  public String getCategory() {
-    return category;
-  }
-
-  public void setCategory(String category) {
-    this.category = category;
-  }
-
-  public String getSubcategory() {
-    return subcategory;
-  }
-
-  public void setSubcategory(String subcategory) {
-    this.subcategory = subcategory;
-  }
-
-  public String getVandorName() {
-    return vendorName;
-  }
-
-  public void setVandorName(String vandorName) {
-    this.vendorName = vandorName;
-  }
-
-  public String getVendorRelease() {
-    return vendorRelease;
-  }
-
-  public void setVendorRelease(String vendorRelease) {
-    this.vendorRelease = vendorRelease;
-  }
-
-  public String getPackageChecksum() {
-    return packageChecksum;
-  }
-
-  public void setPackageChecksum(String packageChecksum) {
-    this.packageChecksum = packageChecksum;
-  }
-
-  public String getPackageType() {
-    return packageType;
-  }
+    private String displayName;
+    private String version;
+    private String category;
+    private String subcategory;
+    private String vendorName;
+    private String vendorRelease;
+    private String packageChecksum;
+    private String packageType;
 
-  public void setPackageType(String packageType) {
-    this.packageType = packageType;
-  }
 }
index 3bf2e8c..7ff8af3 100644 (file)
@@ -1,25 +1,22 @@
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *      http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
 
 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
+import lombok.Data;
 import org.openecomp.sdc.datatypes.error.ErrorMessage;
 import org.openecomp.sdc.vendorsoftwareproduct.types.UploadFileStatus;
 
@@ -29,41 +26,11 @@ import java.util.Map;
 /**
  * Created by TALIO on 4/27/2016.
  */
+@Data
 public class UploadFileResponseDto {
-  private Map<String, List<ErrorMessage>> errors;
-  private UploadFileStatus status;
-  private String onboardingOrigin;
-  private String networkPackageName;
-
-  public Map<String, List<ErrorMessage>> getErrors() {
-    return errors;
-  }
-
-  public void setErrors(Map<String, List<ErrorMessage>> errors) {
-    this.errors = errors;
-  }
-
-  public UploadFileStatus getStatus() {
-    return status;
-  }
-
-  public void setStatus(UploadFileStatus status) {
-    this.status = status;
-  }
-
-  public String getOnboardingOrigin() {
-    return onboardingOrigin;
-  }
-
-  public void setOnboardingOrigin(String onboardingOrigin) {
-    this.onboardingOrigin = onboardingOrigin;
-  }
-
-  public String getNetworkPackageName() {
-    return networkPackageName;
-  }
+    private Map<String, List<ErrorMessage>> errors;
+    private UploadFileStatus status;
+    private String onboardingOrigin;
+    private String networkPackageName;
 
-  public void setNetworkPackageName(String networkPackageName) {
-    this.networkPackageName = networkPackageName;
-  }
 }
index bc03ec9..6122e43 100644 (file)
@@ -1,25 +1,22 @@
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *      http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
 
 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
+import lombok.Data;
 import org.openecomp.sdcrests.common.types.ErrorCodeDto;
 import org.openecomp.sdcrests.common.types.ErrorMessageDto;
 
@@ -27,72 +24,14 @@ import java.util.Collection;
 import java.util.List;
 import java.util.Map;
 
+@Data
 public class ValidationResponseDto {
-  private boolean valid;
-  private Collection<ErrorCodeDto> vspErrors;
-  private Collection<ErrorCodeDto> licensingDataErrors;
-  private Map<String, List<ErrorMessageDto>> uploadDataErrors;
-  private QuestionnaireValidationResultDto questionnaireValidationResult;
-  private ComponentValidationResultDto componentValidationResult;
-  private DeploymentFlavorValidationResultDto deploymentFlavorValidationResult;
-
-  public boolean isValid() {
-    return valid;
-  }
-
-  public void setValid(boolean valid) {
-    this.valid = valid;
-  }
-
-  public Collection<ErrorCodeDto> getVspErrors() {
-    return vspErrors;
-  }
-
-  public void setVspErrors(Collection<ErrorCodeDto> vspErrors) {
-    this.vspErrors = vspErrors;
-  }
-
-  public Collection<ErrorCodeDto> getLicensingDataErrors() {
-    return licensingDataErrors;
-  }
-
-  public void setLicensingDataErrors(Collection<ErrorCodeDto> licensingDataErrors) {
-    this.licensingDataErrors = licensingDataErrors;
-  }
-
-  public Map<String, List<ErrorMessageDto>> getUploadDataErrors() {
-    return uploadDataErrors;
-  }
-
-  public void setUploadDataErrors(Map<String, List<ErrorMessageDto>> uploadDataErrors) {
-    this.uploadDataErrors = uploadDataErrors;
-  }
-
-  public QuestionnaireValidationResultDto getQuestionnaireValidationResult() {
-    return questionnaireValidationResult;
-  }
-
-  public void setQuestionnaireValidationResult(
-      QuestionnaireValidationResultDto questionnaireValidationResult) {
-    this.questionnaireValidationResult = questionnaireValidationResult;
-  }
-
-  public ComponentValidationResultDto getComponentValidationResult() {
-    return componentValidationResult;
-  }
-
-  public void setComponentValidationResult(
-      ComponentValidationResultDto componentValidationResult) {
-    this.componentValidationResult = componentValidationResult;
-  }
-
-  public DeploymentFlavorValidationResultDto getDeploymentFlavorValidationResult() {
-    return deploymentFlavorValidationResult;
-  }
-
-  public void setDeploymentFlavorValidationResult(
-      DeploymentFlavorValidationResultDto deploymentFlavorValidationResult) {
-    this.deploymentFlavorValidationResult = deploymentFlavorValidationResult;
-  }
+    private boolean valid;
+    private Collection<ErrorCodeDto> vspErrors;
+    private Collection<ErrorCodeDto> licensingDataErrors;
+    private Map<String, List<ErrorMessageDto>> uploadDataErrors;
+    private QuestionnaireValidationResultDto questionnaireValidationResult;
+    private ComponentValidationResultDto componentValidationResult;
+    private DeploymentFlavorValidationResultDto deploymentFlavorValidationResult;
 
 }
index 1ec68e4..eec79aa 100644 (file)
@@ -1,26 +1,22 @@
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *      http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
 
 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
 public enum VendorSoftwareProductAction {
-  Submit,
-  Create_Package;
+    Submit,
+    Create_Package
 }
index f8ea65c..6c5b26e 100644 (file)
@@ -1,47 +1,30 @@
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *      http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
 
 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
+import lombok.Data;
 import org.openecomp.sdcrests.item.types.SubmitRequestDto;
 
 /**
  * Created by TALIO on 4/20/2016.
  */
+@Data
 public class VersionSoftwareProductActionRequestDto {
-  private VendorSoftwareProductAction action;
-  private SubmitRequestDto submitRequest;
-
-  public VendorSoftwareProductAction getAction() {
-    return action;
-  }
-
-  public void setAction(VendorSoftwareProductAction action) {
-    this.action = action;
-  }
-
-  public SubmitRequestDto getSubmitRequest() {
-    return submitRequest;
-  }
+    private VendorSoftwareProductAction action;
+    private SubmitRequestDto submitRequest;
 
-  public void setSubmitRequest(SubmitRequestDto submitRequest) {
-    this.submitRequest = submitRequest;
-  }
 }
index c7f9d12..a4d923d 100644 (file)
@@ -1,72 +1,43 @@
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
+import lombok.Data;
 import org.openecomp.sdcrests.vendorsoftwareproducts.types.validation.ValidateString;
 
 import javax.validation.constraints.Max;
 import javax.validation.constraints.Min;
 
+@Data
 public class VmSizing {
-  @Min(value = 1, message = "should be integer and > 0")
-  @Max(value = 16, message = "should be integer and <= 16")
-  private int numOfCPUs;
-  @Min(value = 1, message = "should be integer and > 0")
-  private int fileSystemSizeGB;
-  @Min(value = 1, message = "should be integer and > 0")
-  private int persistentStorageVolumeSize;
-  @Min(value = 1, message = "should be integer and > 0")
-  private int ioOperationsPerSec;
-  @ValidateString(acceptedValues = {"1:1", "4:1", "16:1"}, message = "doesn't meet the expected "
-      + "attribute value.")
-  private String cpuOverSubscriptionRatio;
-  @ValidateString(acceptedValues = {"1", "2", "4", "8"}, message = "doesn't meet the expected "
-      + "attribute value.")
-  private String memoryRAM;
-
-  public int getNumOfCPUs() {
-    return numOfCPUs;
-  }
-
-  public void setNumOfCPUs(int numOfCPUs) {
-    this.numOfCPUs = numOfCPUs;
-  }
-
-  public int getFileSystemSizeGB() {
-    return fileSystemSizeGB;
-  }
-
-  public void setFileSystemSizeGB(int fileSystemSizeGB) {
-    this.fileSystemSizeGB = fileSystemSizeGB;
-  }
-
-  public int getPersistentStorageVolumeSize() {
-    return persistentStorageVolumeSize;
-  }
-
-  public void setPersistentStorageVolumeSize(int persistentStorageVolumeSize) {
-    this.persistentStorageVolumeSize = persistentStorageVolumeSize;
-  }
-
-  public int getIoOperationsPerSec() {
-    return ioOperationsPerSec;
-  }
-
-  public void setIoOperationsPerSec(int ioOperationsPerSec) {
-    this.ioOperationsPerSec = ioOperationsPerSec;
-  }
-
-  public String getCpuOverSubscriptionRatio() {
-    return cpuOverSubscriptionRatio;
-  }
-
-  public void setCpuOverSubscriptionRatio(String cpuOverSubscriptionRatio) {
-    this.cpuOverSubscriptionRatio = cpuOverSubscriptionRatio;
-  }
-
-  public String getMemoryRAM() {
-    return memoryRAM;
-  }
+    @Min(value = 1, message = "should be integer and > 0")
+    @Max(value = 16, message = "should be integer and <= 16")
+    private int numOfCPUs;
+    @Min(value = 1, message = "should be integer and > 0")
+    private int fileSystemSizeGB;
+    @Min(value = 1, message = "should be integer and > 0")
+    private int persistentStorageVolumeSize;
+    @Min(value = 1, message = "should be integer and > 0")
+    private int ioOperationsPerSec;
+    @ValidateString(acceptedValues = {"1:1", "4:1", "16:1"}, message = "doesn't meet the expected "
+            + "attribute value.")
+    private String cpuOverSubscriptionRatio;
+    @ValidateString(acceptedValues = {"1", "2", "4", "8"}, message = "doesn't meet the expected "
+            + "attribute value.")
+    private String memoryRAM;
 
-  public void setMemoryRAM(String memoryRAM) {
-    this.memoryRAM = memoryRAM;
-  }
 }
index a41ae5f..467f5e9 100644 (file)
@@ -1,31 +1,26 @@
-package org.openecomp.sdcrests.vendorsoftwareproducts.types;
-
-public class VspComputeDto {
-  private String name;
-  private String componentId;
-  private String computeFlavorId;
-
-  public String getName() {
-    return name;
-  }
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
 
-  public void setName(String name) {
-    this.name = name;
-  }
-
-  public String getComponentId() {
-    return componentId;
-  }
-
-  public void setComponentId(String componentId) {
-    this.componentId = componentId;
-  }
+package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
-  public String getComputeFlavorId() {
-    return computeFlavorId;
-  }
+import lombok.Data;
 
-  public void setComputeFlavorId(String computeFlavorId) {
-    this.computeFlavorId = computeFlavorId;
-  }
+@Data
+public class VspComputeDto {
+    private String name;
+    private String componentId;
+    private String computeFlavorId;
 }
index a2358a0..1b64ab7 100644 (file)
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *      http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
 
 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
+import lombok.Data;
 import org.openecomp.sdc.vendorsoftwareproduct.types.LicensingData;
 
 import javax.validation.constraints.NotNull;
 
+@Data
 public class VspDescriptionDto {
-  @NotNull
-  private String name;
-  @NotNull
-  private String description;
-  private String icon;
-  @NotNull
-  private String category;
-  @NotNull
-  private String subCategory;
-  @NotNull
-  private String vendorName;
-  @NotNull
-  private String vendorId;            // this will be populated with vlm id
-  private String licensingVersion;    // this will be populated with vlm version
-  private LicensingData licensingData;
-
-  public String getName() {
-    return name;
-  }
-
-  public void setName(String name) {
-    this.name = name;
-  }
-
-  public String getDescription() {
-    return description;
-  }
-
-  public void setDescription(String description) {
-    this.description = description;
-  }
-
-  public String getIcon() {
-    return this.icon;
-  }
-
-  public void setIcon(String icon) {
-    this.icon = icon;
-  }
-
-  public String getCategory() {
-    return category;
-  }
-
-  public void setCategory(String category) {
-    this.category = category;
-  }
-
-  public String getSubCategory() {
-    return subCategory;
-  }
-
-  public void setSubCategory(String subCategory) {
-    this.subCategory = subCategory;
-  }
-
-  public String getVendorName() {
-    return vendorName;
-  }
-
-  public void setVendorName(String vendorName) {
-    this.vendorName = vendorName;
-  }
-
-  public String getVendorId() {
-    return vendorId;
-  }
-
-  public void setVendorId(String vendorId) {
-    this.vendorId = vendorId;
-  }
-
-  public String getLicensingVersion() {
-    return licensingVersion;
-  }
-
-  public void setLicensingVersion(String licensingVersion) {
-    this.licensingVersion = licensingVersion;
-  }
-
-  public LicensingData getLicensingData() {
-    return licensingData;
-  }
-
-  public void setLicensingData(LicensingData licensingData) {
-    this.licensingData = licensingData;
-  }
+    @NotNull
+    private String name;
+    @NotNull
+    private String description;
+    private String icon;
+    @NotNull
+    private String category;
+    @NotNull
+    private String subCategory;
+    @NotNull
+    private String vendorName;
+    @NotNull
+    private String vendorId;            // this will be populated with vlm id
+    private String licensingVersion;    // this will be populated with vlm version
+    private LicensingData licensingData;
 }
index 38e70a9..cf8ccf9 100644 (file)
@@ -1,31 +1,30 @@
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *      http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
 
 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
 import io.swagger.annotations.ApiModel;
+import lombok.Data;
 import org.openecomp.sdc.heat.datatypes.structure.ValidationStructureList;
 
 /**
  * Created by TALIO on 4/25/2016.
  */
+
+@Data
 @ApiModel(value = "VspDetails")
 public class VspDetailsDto extends VspRequestDto {
 
@@ -37,68 +36,4 @@ public class VspDetailsDto extends VspRequestDto {
   private String networkPackageName;
   private String owner;
   private String status;
-
-  public String getId() {
-    return id;
-  }
-
-  public void setId(String id) {
-    this.id = id;
-  }
-
-  public String getVersion() {
-    return version;
-  }
-
-  public void setVersion(String version) {
-    this.version = version;
-  }
-
-  public ValidationStructureList getValidationData() {
-    return validationData;
-  }
-
-  public void setValidationData(ValidationStructureList validationData) {
-    this.validationData = validationData;
-  }
-
-  public String getCandidateOnboardingOrigin() {
-    return candidateOnboardingOrigin;
-  }
-
-  public void setCandidateOnboardingOrigin(String candidateOnboardingOrigin) {
-    this.candidateOnboardingOrigin = candidateOnboardingOrigin;
-  }
-
-  public String getOnboardingOrigin() {
-    return onboardingOrigin;
-  }
-
-  public void setOnboardingOrigin(String onboardingOrigin) {
-    this.onboardingOrigin = onboardingOrigin;
-  }
-
-  public String getNetworkPackageName() {
-    return networkPackageName;
-  }
-
-  public void setNetworkPackageName(String networkPackageName) {
-    this.networkPackageName = networkPackageName;
-  }
-
-  public String getOwner() {
-    return owner;
-  }
-
-  public void setOwner(String owner) {
-    this.owner = owner;
-  }
-
-  public String getStatus() {
-    return status;
-  }
-
-  public void setStatus(String status) {
-    this.status = status;
-  }
 }
index 19cad86..59b565a 100644 (file)
@@ -1,16 +1,28 @@
+/*
+* Copyright © 2016-2018 European Support Limited
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
 package org.openecomp.sdcrests.vendorsoftwareproducts.types;
 
+import lombok.Data;
+
 import javax.validation.constraints.NotNull;
 
+@Data
 public class VspRequestDto extends VspDescriptionDto {
-  @NotNull
-  private String onboardingMethod;
-
-  public String getOnboardingMethod() {
-    return onboardingMethod;
-  }
+    @NotNull
+    private String onboardingMethod;
 
-  public void setOnboardingMethod(String onboardingMethod) {
-    this.onboardingMethod = onboardingMethod;
-  }
 }