554aebb5321870a9843b7369097cf81f173a32ef
[portal.git] / ecomp-portal-BE-common / src / main / java / org / openecomp / portalapp / portal / transport / ExternalAccessPermsDetail.java
1 /*-
2  * ============LICENSE_START==========================================
3  * ONAP Portal
4  * ===================================================================
5  * Copyright © 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.openecomp.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         public ExternalAccessPermsDetail() {
56                 super();
57         }
58
59         /**
60          * @param type
61          * @param instance
62          * @param action
63          * @param roles
64          * @param description
65          */
66         public ExternalAccessPermsDetail(String type, String instance, String action, List<String> roles,
67                         String description) {
68                 super();
69                 this.type = type;
70                 this.instance = instance;
71                 this.action = action;
72                 this.roles = roles;
73                 this.description = description;
74         }
75
76         /**
77          * @param type
78          * @param instance
79          * @param action
80          * @param description
81          */
82         public ExternalAccessPermsDetail(String type, String instance, String action, String description) {
83                 super();
84                 this.type = type;
85                 this.instance = instance;
86                 this.action = action;
87                 this.description = description;
88         }
89
90         public String getType() {
91                 return type;
92         }
93
94         public void setType(String type) {
95                 this.type = type;
96         }
97
98         public String getInstance() {
99                 return instance;
100         }
101
102         public void setInstance(String instance) {
103                 this.instance = instance;
104         }
105
106         public String getAction() {
107                 return action;
108         }
109
110         public void setAction(String action) {
111                 this.action = action;
112         }
113
114         public List<String> getRoles() {
115                 return roles;
116         }
117
118         public void setRoles(List<String> roles) {
119                 this.roles = roles;
120         }
121
122         public String getDescription() {
123                 return description;
124         }
125
126         public void setDescription(String description) {
127                 this.description = description;
128         }
129
130 }