3563fc9af0499bc78b86c8ea81c675b1a2b33bd9
[portal/sdk.git] /
1 /*-
2  * ================================================================================
3  * ECOMP Portal SDK
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.portalsdk.analytics.model.base;
21
22 import java.io.*;
23 import java.sql.*;
24 import java.util.*;
25
26 import javax.persistence.Entity;
27 import javax.persistence.GeneratedValue;
28 import javax.persistence.GenerationType;
29 import javax.persistence.Id;
30 import javax.servlet.http.HttpServletRequest;
31 import javax.servlet.http.HttpSession;
32
33 import org.openecomp.portalsdk.analytics.controller.ActionHandler;
34 import org.openecomp.portalsdk.analytics.error.*;
35 import org.openecomp.portalsdk.analytics.model.base.*;
36 import org.openecomp.portalsdk.analytics.model.definition.*;
37 import org.openecomp.portalsdk.analytics.system.*;
38 import org.openecomp.portalsdk.analytics.util.*;
39 import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate;
40
41 @Entity
42 public class ReportUserRole extends org.openecomp.portalsdk.analytics.RaptorObject implements Serializable {
43         
44         /**
45          * 
46          */
47         private static final long serialVersionUID = 1L;
48
49         @Id
50         private Long repId = null;
51
52         @Id
53         @GeneratedValue(strategy=GenerationType.AUTO)
54         private Long orderNo = null;
55
56         private Long roleId = null;
57
58         private Long userId = null;
59
60         private String readOnlyYn = null;
61         
62         public ReportUserRole() {
63                 super();
64         }
65         
66         public ReportUserRole(Long repId, Long orderNo, Long roleId, Long userId, String readOnlyYn) {
67                 super();
68                 this.repId = repId;
69                 this.orderNo = orderNo;
70                 this.roleId = roleId;
71                 this.userId = userId;
72                 this.readOnlyYn = readOnlyYn;
73         }
74         
75         public Long getRepId() {
76                 return repId;
77         }
78
79         public void setRepId(Long repId) {
80                 this.repId = repId;
81         }
82
83         public Long getOrderNo() {
84                 return orderNo;
85         }
86
87         public void setOrderNo(Long orderNo) {
88                 this.orderNo = orderNo;
89         }
90
91         public Long getRoleId() {
92                 return roleId;
93         }
94
95         public void setRoleId(Long roleId) {
96                 this.roleId = roleId;
97         }
98
99         public Long getUserId() {
100                 return userId;
101         }
102
103         public void setUserId(Long userId) {
104                 this.userId = userId;
105         }
106
107         public String getReadOnlyYn() {
108                 return readOnlyYn;
109         }
110
111         public void setReadOnlyYn(String readOnlyYn) {
112                 this.readOnlyYn = readOnlyYn;
113         }
114         
115         
116
117 }