MicroserviceParameter class DB constraints
[portal.git] / ecomp-portal-BE-common / src / main / java / org / onap / portalapp / portal / domain / MicroserviceData.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  * 
37  */
38 package org.onap.portalapp.portal.domain;
39
40 import java.util.List;
41
42 import javax.persistence.Column;
43 import javax.persistence.GeneratedValue;
44 import javax.persistence.GenerationType;
45 import javax.persistence.Id;
46
47 import org.onap.portalsdk.core.domain.support.DomainVo;
48
49 public class MicroserviceData extends DomainVo {
50
51         private static final long serialVersionUID = 1L;
52
53         public MicroserviceData() {
54
55         }
56
57         private Long id;
58
59         private String name;
60
61         private String active;
62
63         private String desc;
64
65         private long appId;
66
67         private String url;
68
69         private String securityType;
70
71         private String username;
72
73         private String password;
74
75         private List<MicroserviceParameter> parameterList;
76
77         public Long getId() {
78                 return id;
79         }
80
81         public void setId(Long id) {
82                 this.id = id;
83         }
84
85         public String getName() {
86                 return name;
87         }
88
89         public void setName(String name) {
90                 this.name = name;
91         }
92
93         public String getActive() {
94                 return active;
95         }
96
97         public void setActive(String active) {
98                 this.active = active;
99         }
100
101         public String getDesc() {
102                 return desc;
103         }
104
105         public void setDesc(String desc) {
106                 this.desc = desc;
107         }
108
109         public long getAppId() {
110                 return appId;
111         }
112
113         public void setAppId(long appId) {
114                 this.appId = appId;
115         }
116
117         public String getUrl() {
118                 return url;
119         }
120
121         public void setUrl(String url) {
122                 this.url = url;
123         }
124
125         public String getSecurityType() {
126                 return securityType;
127         }
128
129         public void setSecurityType(String securityType) {
130                 this.securityType = securityType;
131         }
132
133         public String getUsername() {
134                 return username;
135         }
136
137         public void setUsername(String username) {
138                 this.username = username;
139         }
140
141         public String getPassword() {
142                 return password;
143         }
144
145         public void setPassword(String password) {
146                 this.password = password;
147         }
148
149         public List<MicroserviceParameter> getParameterList() {
150                 return parameterList;
151         }
152
153         public void setParameterList(List<MicroserviceParameter> parameterList) {
154                 this.parameterList = parameterList;
155         }
156
157         @Override
158         public String toString() {
159                 return "MicroserviceData [id=" + id + ", name=" + name + ", desc=" + desc + ", appId=" + appId + ", url=" + url
160                                 + ", securityType=" + securityType + ", username=" + username + ", password=" + password
161                                 + ", parameterList=" + parameterList + "]";
162         }
163
164 }