Initial OpenECOMP policy/engine commit
[policy/engine.git] / ecomp-sdk-app / src / main / java / org / openecomp / policy / model / Roles.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ECOMP Policy Engine
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
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  * ============LICENSE_END=========================================================
19  */
20
21 package org.openecomp.policy.model;
22
23
24 import java.io.Serializable;
25
26 import javax.persistence.Column;
27 import javax.persistence.Entity;
28 import javax.persistence.GeneratedValue;
29 import javax.persistence.GenerationType;
30 import javax.persistence.Id;
31 import javax.persistence.Table;
32
33 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
34
35 @Entity
36 @Table(name="Roles")
37 @JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})  
38 public class Roles implements Serializable{
39         private static final long serialVersionUID = 1L;
40
41         @Id
42         @GeneratedValue(strategy = GenerationType.AUTO)
43
44         @Column(name="id")
45         private int id;
46
47         private String loginId;
48         private String name;
49         private String scope;
50         private String role;
51
52         public Roles(){
53                 
54         }
55         
56         public int getId() {
57                 return this.id;
58         }
59
60         public void setId(int id) {
61                 this.id = id;
62         }
63
64         public String getLoginId() {
65                 return this.loginId;
66         }
67
68         public void setLoginId(String loginId) {
69                 this.loginId = loginId;
70                 
71         }
72         public String getScope() {
73                 return this.scope;
74         }
75
76         public void setScope(String scope) {
77                 this.scope = scope;
78                 
79         }
80         
81         public String getName() {
82                 return name;
83         }
84
85         public void setName(String name) {
86                 this.name = name;
87         }
88         public String getRole() {
89                 return this.role;
90         }
91
92         public void setRole(String role) {
93                 this.role = role;
94         }
95 }