2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.openecomp.sdc.vendorsoftwareproduct.dao.type;
23 import org.openecomp.core.utilities.json.JsonUtil;
24 import org.openecomp.sdc.heat.datatypes.structure.ValidationStructureList;
26 import java.nio.ByteBuffer;
29 public class UploadData {
33 private String packageName;
35 private String packageVersion;
37 private String validationData;
39 private ByteBuffer contentData;
41 public String getId() {
45 public void setId(String id) {
49 public String getPackageName() {
53 public void setPackageName(String packageName) {
54 this.packageName = packageName;
57 public String getPackageVersion() {
58 return packageVersion;
61 public void setPackageVersion(String packageVersion) {
62 this.packageVersion = packageVersion;
65 public String getValidationData() {
66 return validationData;
69 public void setValidationData(String validationData) {
70 this.validationData = validationData;
73 public ValidationStructureList getValidationDataStructure() {
74 return validationData == null ? null
75 : JsonUtil.json2Object(validationData, ValidationStructureList.class);
78 public void setValidationDataStructure(ValidationStructureList validationData) {
79 this.validationData = validationData == null ? null
80 : JsonUtil.object2Json(validationData);
83 public ByteBuffer getContentData() {
87 public void setContentData(ByteBuffer contentData) {
88 this.contentData = contentData;