[PORTAL-7] Rebase
[portal.git] / ecomp-portal-BE-common / src / main / java / org / openecomp / portalapp / portal / domain / PersUserWidgetSelection.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.domain;\r
21 \r
22 import org.openecomp.portalsdk.core.domain.support.DomainVo;\r
23 \r
24 /**\r
25  * Models a row in the table with personalization of user widget selections.\r
26  */\r
27 public class PersUserWidgetSelection extends DomainVo {\r
28 \r
29         /**\r
30          * \r
31          */\r
32         private static final long serialVersionUID = -6547880514779039200L;\r
33 \r
34         private Long userId;\r
35 \r
36         private Long widgetId;\r
37 \r
38         private String statusCode;\r
39 \r
40         public PersUserWidgetSelection() {}\r
41         \r
42         /**\r
43          * Convenience constructor\r
44          * \r
45          * @param id\r
46          * @param userId\r
47          * @param widgetId\r
48          * @param statusCode\r
49          */\r
50         public PersUserWidgetSelection(final Long id, final Long userId, final Long widgetId, final String statusCode) {\r
51                 super.id = id;\r
52                 this.userId = userId;\r
53                 this.widgetId = widgetId;\r
54                 this.statusCode = statusCode;\r
55         }\r
56         \r
57         public Long getWidgetId() {\r
58                 return widgetId;\r
59         }\r
60 \r
61         public void setWidgetId(Long widgetId) {\r
62                 this.widgetId = widgetId;\r
63         }\r
64 \r
65         public Long getUserId() {\r
66                 return userId;\r
67         }\r
68 \r
69         public void setUserId(Long userId) {\r
70                 this.userId = userId;\r
71         }\r
72 \r
73         public String getStatusCode() {\r
74                 return statusCode;\r
75         }\r
76 \r
77         public void setStatusCode(String statusCode) {\r
78                 this.statusCode = statusCode;\r
79         }\r
80         \r
81 }\r