Upload the ESR server seed code.
[aai/esr-server.git] / esr-core / esr-mgr / src / main / java / org / onap / aai / esr / entity / rest / BaseRestData.java
1 /**
2  * Copyright 2016 ZTE Corporation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 package org.onap.aai.esr.entity.rest;
17
18 import org.onap.aai.esr.entity.db.BaseData;
19
20 public class BaseRestData {
21
22   private String instanceId;
23
24   private String name;
25
26   private String vendor;
27
28   private String version;
29
30   private String description;
31
32   private String type;
33
34   private String createTime;
35
36   private String category;
37
38   public String getInstanceId() {
39     return instanceId;
40   }
41
42   public void setInstanceId(String instanceId) {
43     this.instanceId = instanceId;
44   }
45
46   public String getName() {
47     return name;
48   }
49
50   public void setName(String name) {
51     this.name = name;
52   }
53
54   public String getVendor() {
55     return vendor;
56   }
57
58   public void setVendor(String vendor) {
59     this.vendor = vendor;
60   }
61
62   public String getVersion() {
63     return version;
64   }
65
66   public void setVersion(String version) {
67     this.version = version;
68   }
69
70   public String getDescription() {
71     return description;
72   }
73
74   public void setDescription(String description) {
75     this.description = description;
76   }
77
78   public String getType() {
79     return type;
80   }
81
82   public void setType(String type) {
83     this.type = type;
84   }
85
86   public String getCreateTime() {
87     return createTime;
88   }
89
90   public void setCreateTime(String createTime) {
91     this.createTime = createTime;
92   }
93
94   public String getCategory() {
95     return category;
96   }
97
98   public void setCategory(String category) {
99     this.category = category;
100   }
101
102   public BaseRestData() {
103
104   }
105
106   /**
107    *  base esr entity.
108    */
109   public BaseRestData(BaseData data) {
110     this.createTime = data.getCreateTime();
111     this.description = data.getDescription();
112     this.name = data.getName();
113     this.type = data.getType();
114     this.vendor = data.getVendor();
115     this.version = data.getVersion();
116     this.instanceId = data.getId();
117     this.category = data.getCategory();
118
119   }
120 }