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