[PORTAL-7] Rebase
[portal.git] / ecomp-portal-BE-common / src / main / java / org / openecomp / portalapp / portal / ecomp / model / SearchResultItem.java
1 /*-\r
2  * ================================================================================\r
3  * ECOMP Portal\r
4  * ================================================================================\r
5  * Copyright (C) 2017 AT&T Intellectual Property\r
6  * ================================================================================\r
7  * Licensed under the Apache License, Version 2.0 (the "License");\r
8  * you may not use this file except in compliance with the License.\r
9  * You may obtain a copy of the License at\r
10  * \r
11  *      http://www.apache.org/licenses/LICENSE-2.0\r
12  * \r
13  * Unless required by applicable law or agreed to in writing, software\r
14  * distributed under the License is distributed on an "AS IS" BASIS,\r
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
16  * See the License for the specific language governing permissions and\r
17  * limitations under the License.\r
18  * ================================================================================\r
19  */\r
20 package org.openecomp.portalapp.portal.ecomp.model;\r
21 \r
22 import javax.persistence.Entity;\r
23 import javax.persistence.Id;\r
24 \r
25 import org.openecomp.portalsdk.core.domain.support.DomainVo;\r
26 import com.fasterxml.jackson.annotation.JsonInclude;\r
27 import com.fasterxml.jackson.annotation.JsonProperty;\r
28 \r
29 @Entity\r
30 @JsonInclude(JsonInclude.Include.NON_NULL)\r
31 public class SearchResultItem extends DomainVo{\r
32 \r
33         @Id\r
34         private String rowId;   \r
35         \r
36         @JsonProperty("category")\r
37         private String category;\r
38         \r
39         @JsonProperty("name")\r
40         private String name;\r
41         \r
42         @JsonProperty("target")\r
43         private String target;\r
44 \r
45         @JsonProperty("uuid")\r
46         private String uuid;\r
47         \r
48         public String getUuid() {\r
49                 return uuid;\r
50         }\r
51         public void setUuid(String uuid) {\r
52                 this.uuid = uuid;\r
53         }\r
54         public String getRowId() {\r
55                 return rowId;\r
56         }\r
57         public void setRowId(String rowId) {\r
58                 this.rowId = rowId;\r
59         }\r
60         public String getCategory() {\r
61                 return category;\r
62         }\r
63         public void setCategory(String category) {\r
64                 this.category = category;\r
65         }\r
66         public String getName() {\r
67                 return name;\r
68         }\r
69         public void setName(String name) {\r
70                 this.name = name;\r
71         }\r
72         \r
73         public String getTarget() {\r
74                 return target;\r
75         }\r
76         public void setTarget(String target) {\r
77                 this.target = target;\r
78         }\r
79         @Override\r
80         public String toString() {\r
81                 return "SearchResultItem [rowId=" + rowId + ", category=" + category + ", name=" + name + ", target=" + target\r
82                                 + ", uuid=" + uuid + "]";\r
83         }\r
84         \r
85         \r
86 }\r