[PORTAL-16 PORTAL-18] Widget ms; staging
[portal.git] / ecomp-portal-BE-common / src / main / java / org / openecomp / portalapp / portal / ecomp / model / SearchResultItem.java
1 /*-
2  * ================================================================================
3  * ECOMP Portal
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property
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  * ================================================================================
19  */
20 package org.openecomp.portalapp.portal.ecomp.model;
21
22 import javax.persistence.Entity;
23 import javax.persistence.Id;
24
25 import org.openecomp.portalsdk.core.domain.support.DomainVo;
26 import com.fasterxml.jackson.annotation.JsonInclude;
27 import com.fasterxml.jackson.annotation.JsonProperty;
28
29 @Entity
30 @JsonInclude(JsonInclude.Include.NON_NULL)
31 public class SearchResultItem extends DomainVo{
32
33         @Id
34         private String rowId;   
35         
36         @JsonProperty("category")
37         private String category;
38         
39         @JsonProperty("name")
40         private String name;
41         
42         @JsonProperty("target")
43         private String target;
44
45         @JsonProperty("uuid")
46         private String uuid;
47         
48         public String getUuid() {
49                 return uuid;
50         }
51         public void setUuid(String uuid) {
52                 this.uuid = uuid;
53         }
54         public String getRowId() {
55                 return rowId;
56         }
57         public void setRowId(String rowId) {
58                 this.rowId = rowId;
59         }
60         public String getCategory() {
61                 return category;
62         }
63         public void setCategory(String category) {
64                 this.category = category;
65         }
66         public String getName() {
67                 return name;
68         }
69         public void setName(String name) {
70                 this.name = name;
71         }
72         
73         public String getTarget() {
74                 return target;
75         }
76         public void setTarget(String target) {
77                 this.target = target;
78         }
79         @Override
80         public String toString() {
81                 return "SearchResultItem [rowId=" + rowId + ", category=" + category + ", name=" + name + ", target=" + target
82                                 + ", uuid=" + uuid + "]";
83         }
84         
85         
86 }