[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / openecomp-be / lib / openecomp-sdc-vendor-software-product-lib / openecomp-sdc-vendor-software-product-api / src / main / java / org / openecomp / sdc / vendorsoftwareproduct / dao / type / UploadData.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
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
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
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=========================================================
19  */
20
21 package org.openecomp.sdc.vendorsoftwareproduct.dao.type;
22
23 import org.openecomp.core.utilities.json.JsonUtil;
24 import org.openecomp.sdc.heat.datatypes.structure.ValidationStructureList;
25
26 import java.nio.ByteBuffer;
27
28
29 public class UploadData {
30
31   private String id;
32
33   private String packageName;
34
35   private String packageVersion;
36
37   private String validationData;
38
39   private ByteBuffer contentData;
40
41   public String getId() {
42     return id;
43   }
44
45   public void setId(String id) {
46     this.id = id;
47   }
48
49   public String getPackageName() {
50     return packageName;
51   }
52
53   public void setPackageName(String packageName) {
54     this.packageName = packageName;
55   }
56
57   public String getPackageVersion() {
58     return packageVersion;
59   }
60
61   public void setPackageVersion(String packageVersion) {
62     this.packageVersion = packageVersion;
63   }
64
65   public String getValidationData() {
66     return validationData;
67   }
68
69   public void setValidationData(String validationData) {
70     this.validationData = validationData;
71   }
72
73   public ValidationStructureList getValidationDataStructure() {
74     return validationData == null ? null
75         : JsonUtil.json2Object(validationData, ValidationStructureList.class);
76   }
77
78   public void setValidationDataStructure(ValidationStructureList validationData) {
79     this.validationData = validationData == null ? null
80         : JsonUtil.object2Json(validationData);
81   }
82
83   public ByteBuffer getContentData() {
84     return contentData;
85   }
86
87   public void setContentData(ByteBuffer contentData) {
88     this.contentData = contentData;
89   }
90 }