[PORTAL-16 PORTAL-18] Widget ms; staging
[portal.git] / ecomp-portal-BE-common / src / main / java / org / openecomp / portalapp / portal / domain / EPUserAppCatalogRoles.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.domain;
21
22 import javax.persistence.Column;
23 import javax.persistence.Entity;
24 import javax.persistence.Id;
25
26 import org.openecomp.portalsdk.core.domain.support.DomainVo;
27
28 import com.fasterxml.jackson.annotation.JsonInclude;
29
30 @Entity
31 @JsonInclude
32 public class EPUserAppCatalogRoles extends DomainVo {
33
34         private static final long serialVersionUID = -5259869298825093816L;
35
36
37         @Id
38         @Column(name="requested_role_id")
39         public Long requestedRoleId;
40         
41         
42         @Id
43         @Column(name="role_name")
44         public String rolename;
45         
46         @Id
47         @Column(name="request_status")
48         public String requestStatus;
49         
50         @Id
51         @Column(name="app_id")
52         public Long appId;
53
54         public Long getRequestedRoleId() {
55                 return requestedRoleId;
56         }
57
58         public void setRequestedRoleId(Long requestedRoleId) {
59                 this.requestedRoleId = requestedRoleId;
60         }
61
62         public String getRolename() {
63                 return rolename;
64         }
65
66         public void setRolename(String rolename) {
67                 this.rolename = rolename;
68         }
69
70         public String getRequestStatus() {
71                 return requestStatus;
72         }
73
74         public void setRequestStatus(String requestStatus) {
75                 this.requestStatus = requestStatus;
76         }
77
78         public Long getAppId() {
79                 return appId;
80         }
81
82         public void setAppId(Long appId) {
83                 this.appId = appId;
84         }
85
86         public String toString() {
87                 return "EPUserAppCatalogRoles [requestedRoleId=" + requestedRoleId + ", rolename=" + rolename
88                                 + ", requestStatus=" + requestStatus + ", appId=" + appId + "]";
89         }
90
91         
92 }