831b1e65d8a5e334a046a6281cb8ebc0ddcc2c84
[portal.git] / ecomp-portal-widget-ms / src / main / java / org / openecomp / portalapp / widget / domain / MicroserviceData.java
1 package org.openecomp.portalapp.widget.domain;
2
3 import javax.persistence.Column;
4 import javax.persistence.Entity;
5 import javax.persistence.GeneratedValue;
6 import javax.persistence.GenerationType;
7 import javax.persistence.Id;
8 import javax.persistence.Table;
9
10 /**
11  * TODO: moved all microservice-related code (domain, controller, service)
12  * from ecomp portal Backend to widget microservice
13  */
14 @Entity
15 @Table(name="EP_MICROSERVICE")
16 public class MicroserviceData {
17         
18         @Id
19         @Column(name = "id")
20         @GeneratedValue(strategy=GenerationType.AUTO)
21         private Long id;
22
23         @Column(name = "name")
24         private String name;
25
26         @Column(name = "description")
27         private String desc;
28         
29         @Column(name = "appId")
30         private long appId;
31
32         @Column(name = "endpoint_url")
33         private String url;
34
35         @Column(name = "security_type")
36         private String securityType;
37
38         @Column(name = "username")
39         private String username;
40
41         @Column(name = "password")
42         private String password;
43         
44         @Column(name = "active")
45         private String active;
46
47         public Long getId() {
48                 return id;
49         }
50
51         public void setId(Long id) {
52                 this.id = id;
53         }
54
55         public String getName() {
56                 return name;
57         }
58
59         public void setName(String name) {
60                 this.name = name;
61         }
62
63         public String getDesc() {
64                 return desc;
65         }
66
67         public void setDesc(String desc) {
68                 this.desc = desc;
69         }
70
71         public long getAppId() {
72                 return appId;
73         }
74
75         public void setAppId(long appId) {
76                 this.appId = appId;
77         }
78
79         public String getUrl() {
80                 return url;
81         }
82
83         public void setUrl(String url) {
84                 this.url = url;
85         }
86
87         public String getSecurityType() {
88                 return securityType;
89         }
90
91         public void setSecurityType(String securityType) {
92                 this.securityType = securityType;
93         }
94
95         public String getUsername() {
96                 return username;
97         }
98
99         public void setUsername(String username) {
100                 this.username = username;
101         }
102
103         public String getPassword() {
104                 return password;
105         }
106
107         public void setPassword(String password) {
108                 this.password = password;
109         }
110
111         public String getActive() {
112                 return active;
113         }
114
115         public void setActive(String active) {
116                 this.active = active;
117         }
118
119         @Override
120         public String toString() {
121                 return "MicroserviceData [name=" + name + ", desc=" + desc + ", appId=" + appId + ", url=" + url
122                                 + ", securityType=" + securityType + ", username=" + username + ", password=" + password + ", active="
123                                 + active + "]";
124         }
125         
126 }