1 package org.onap.portalapp.widget.domain;
 
   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;
 
  11  * TODO: moved all microservice-related code (domain, controller, service)
 
  12  * from ecomp portal Backend to widget microservice
 
  15 @Table(name="EP_MICROSERVICE")
 
  16 public class MicroserviceData {
 
  20         @GeneratedValue(strategy=GenerationType.AUTO)
 
  23         @Column(name = "name")
 
  26         @Column(name = "description")
 
  29         @Column(name = "appId")
 
  32         @Column(name = "endpoint_url")
 
  35         @Column(name = "security_type")
 
  36         private String securityType;
 
  38         @Column(name = "username")
 
  39         private String username;
 
  41         @Column(name = "password")
 
  42         private String password;
 
  44         @Column(name = "active")
 
  45         private String active;
 
  51         public void setId(Long id) {
 
  55         public String getName() {
 
  59         public void setName(String name) {
 
  63         public String getDesc() {
 
  67         public void setDesc(String desc) {
 
  71         public long getAppId() {
 
  75         public void setAppId(long appId) {
 
  79         public String getUrl() {
 
  83         public void setUrl(String url) {
 
  87         public String getSecurityType() {
 
  91         public void setSecurityType(String securityType) {
 
  92                 this.securityType = securityType;
 
  95         public String getUsername() {
 
  99         public void setUsername(String username) {
 
 100                 this.username = username;
 
 103         public String getPassword() {
 
 107         public void setPassword(String password) {
 
 108                 this.password = password;
 
 111         public String getActive() {
 
 115         public void setActive(String active) {
 
 116                 this.active = active;
 
 120         public String toString() {
 
 121                 return "MicroserviceData [name=" + name + ", desc=" + desc + ", appId=" + appId + ", url=" + url
 
 122                                 + ", securityType=" + securityType + ", username=" + username + ", password=" + password + ", active="