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