Security/ Package Name changes
[portal.git] / ecomp-portal-BE-common / src / main / java / org / onap / portalapp / portal / transport / ExternalAccessPermsDetail.java
1 /*-
2  * ============LICENSE_START==========================================
3  * ONAP Portal
4  * ===================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ===================================================================
7  *
8  * Unless otherwise specified, all software contained herein is licensed
9  * under the Apache License, Version 2.0 (the "License");
10  * you may not use this software except in compliance with the License.
11  * You may obtain a copy of the License at
12  *
13  *             http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  *
21  * Unless otherwise specified, all documentation contained herein is licensed
22  * under the Creative Commons License, Attribution 4.0 Intl. (the "License");
23  * you may not use this documentation except in compliance with the License.
24  * You may obtain a copy of the License at
25  *
26  *             https://creativecommons.org/licenses/by/4.0/
27  *
28  * Unless required by applicable law or agreed to in writing, documentation
29  * distributed under the License is distributed on an "AS IS" BASIS,
30  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31  * See the License for the specific language governing permissions and
32  * limitations under the License.
33  *
34  * ============LICENSE_END============================================
35  *
36  * ECOMP is a trademark and service mark of AT&T Intellectual Property.
37  */
38 package org.onap.portalapp.portal.transport;
39
40 import java.util.List;
41
42 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
43 import com.fasterxml.jackson.annotation.JsonRootName;
44
45 @JsonIgnoreProperties(ignoreUnknown = true)
46 @JsonRootName(value="perm")
47 public class ExternalAccessPermsDetail {
48
49         private String type;
50         private String instance;
51         private String action;
52         private List<String> roles;
53         private String description;
54         
55         
56         
57         public ExternalAccessPermsDetail() {
58                 super();
59         }
60
61         /**
62          * @param type
63          * @param instance
64          * @param action
65          * @param roles
66          * @param description
67          */
68         public ExternalAccessPermsDetail(String type, String instance, String action, List<String> roles,
69                         String description) {
70                 super();
71                 this.type = type;
72                 this.instance = instance;
73                 this.action = action;
74                 this.roles = roles;
75                 this.description = description;
76         }
77         
78         /**
79          * @param type
80          * @param instance
81          * @param action
82          * @param description
83          */
84         public ExternalAccessPermsDetail(String type, String instance, String action,
85                         String description) {
86                 super();
87                 this.type = type;
88                 this.instance = instance;
89                 this.action = action;
90                 this.description = description;
91         }
92         
93         public String getType() {
94                 return type;
95         }
96         public void setType(String type) {
97                 this.type = type;
98         }
99         public String getInstance() {
100                 return instance;
101         }
102         public void setInstance(String instance) {
103                 this.instance = instance;
104         }
105         public String getAction() {
106                 return action;
107         }
108         public void setAction(String action) {
109                 this.action = action;
110         }
111         public List<String> getRoles() {
112                 return roles;
113         }
114
115         public void setRoles(List<String> roles) {
116                 this.roles = roles;
117         }
118
119         public String getDescription() {
120                 return description;
121         }
122         public void setDescription(String description) {
123                 this.description = description;
124         }
125         
126         
127 }