nexus site path corrected
[portal.git] / ecomp-portal-BE / src / main / java / org / openecomp / portalapp / portal / domain / GetAccessResult.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 import javax.persistence.IdClass;
26
27 @Entity
28 @IdClass(GetAccessResultId.class)
29 public class GetAccessResult {
30         
31         @Id
32         @Column(name="ecomp_function")
33         private String ecompFunction;
34  
35         @Id
36         @Column(name="app_name")
37         private String appName; 
38         
39         @Column(name="app_mots_id",nullable=true)
40         private Integer appMotsId;
41         
42         @Id
43         @Column(name="role_name")
44         private String roleName;
45         
46         public String getEcompFunction() {
47                 return ecompFunction;
48         }
49         public void setEcompFunction(String ecompFunction) {
50                 this.ecompFunction = ecompFunction;
51         }
52         public String getAppName() {
53                 return appName;
54         }
55         public void setAppName(String appName) {
56                 this.appName = appName;
57         }
58         public Integer getAppMotsId() {
59                 return appMotsId;
60         }
61         public void setAppMotsId(Integer appMotsId) {
62                 this.appMotsId = appMotsId;
63         }
64         public String getRoleName() {
65                 return roleName;
66         }
67         public void setRoleName(String roleName) {
68                 this.roleName = roleName;
69         }
70 }