This commit is contained in:
crusader 2018-06-05 19:51:49 +09:00
parent b3b052b5bd
commit 1d3ae7c6a7
116 changed files with 3258 additions and 3168 deletions

View File

@ -13,7 +13,7 @@
<groupId>com.loafle.overflow</groupId> <groupId>com.loafle.overflow</groupId>
<artifactId>commons-java</artifactId> <artifactId>commons-java</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
<version>1.0.1-SNAPSHOT</version> <version>1.0.3-SNAPSHOT</version>
<name>com.loafle.overflow.commons-java</name> <name>com.loafle.overflow.commons-java</name>
<properties> <properties>

View File

@ -5,7 +5,7 @@ import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy; import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target; import java.lang.annotation.Target;
@Target({ElementType.METHOD}) @Target({ ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
public @interface ProbeAPI { public @interface ProbeAPI {
String value() default ""; String value() default "";

View File

@ -8,10 +8,10 @@ import java.lang.annotation.Target;
import org.springframework.core.annotation.AliasFor; import org.springframework.core.annotation.AliasFor;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
@Target({ElementType.TYPE}) @Target({ ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Component @Component
public @interface RPCService { public @interface RPCService {
@AliasFor(annotation = Component.class) @AliasFor(annotation = Component.class)
String value() default ""; String value() default "";
} }

View File

@ -5,7 +5,7 @@ import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy; import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target; import java.lang.annotation.Target;
@Target({ElementType.METHOD}) @Target({ ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
public @interface WebappAPI { public @interface WebappAPI {
String value() default ""; String value() default "";

View File

@ -1,9 +1,13 @@
package com.loafle.overflow.core.exception; package com.loafle.overflow.core.exception;
public class OverflowException extends Exception { public class OverflowException extends Exception {
private static final long serialVersionUID = -2737018677113628699L; private static final long serialVersionUID = -2737018677113628699L;
public OverflowException(String message){ super(message); }
public OverflowException(String message, Throwable throwable) { public OverflowException(String message) {
super(message, throwable); super(message);
} }
public OverflowException(String message, Throwable throwable) {
super(message, throwable);
}
} }

View File

@ -8,103 +8,102 @@ import java.util.Map;
* Created by geek on 18. 1. 3. * Created by geek on 18. 1. 3.
*/ */
public class Mail { public class Mail {
private String mailFrom; private String mailFrom;
private String mailTo; private String mailTo;
private String mailCc; private String mailCc;
private String mailBcc; private String mailBcc;
private String mailSubject; private String mailSubject;
private String mailContent; private String mailContent;
private String contentType; private String contentType;
private List< Object > attachments; private List<Object> attachments;
private Map< String, Object > model; private Map<String, Object> model;
private String templateLoacation; private String templateLoacation;
public Mail() {
contentType = "text/plain";
}
public Mail() { public String getContentType() {
contentType = "text/plain"; return contentType;
} }
public String getContentType() { public void setContentType(String contentType) {
return contentType; this.contentType = contentType;
} }
public void setContentType(String contentType) { public String getMailBcc() {
this.contentType = contentType; return mailBcc;
} }
public String getMailBcc() { public void setMailBcc(String mailBcc) {
return mailBcc; this.mailBcc = mailBcc;
} }
public void setMailBcc(String mailBcc) { public String getMailCc() {
this.mailBcc = mailBcc; return mailCc;
} }
public String getMailCc() { public void setMailCc(String mailCc) {
return mailCc; this.mailCc = mailCc;
} }
public void setMailCc(String mailCc) { public String getMailFrom() {
this.mailCc = mailCc; return mailFrom;
} }
public String getMailFrom() { public void setMailFrom(String mailFrom) {
return mailFrom; this.mailFrom = mailFrom;
} }
public void setMailFrom(String mailFrom) { public String getMailSubject() {
this.mailFrom = mailFrom; return mailSubject;
} }
public String getMailSubject() { public void setMailSubject(String mailSubject) {
return mailSubject; this.mailSubject = mailSubject;
} }
public void setMailSubject(String mailSubject) { public String getMailTo() {
this.mailSubject = mailSubject; return mailTo;
} }
public String getMailTo() { public void setMailTo(String mailTo) {
return mailTo; this.mailTo = mailTo;
} }
public void setMailTo(String mailTo) { public Date getMailSendDate() {
this.mailTo = mailTo; return new Date();
} }
public Date getMailSendDate() { public String getMailContent() {
return new Date(); return mailContent;
} }
public String getMailContent() { public void setMailContent(String mailContent) {
return mailContent; this.mailContent = mailContent;
} }
public void setMailContent(String mailContent) { public List<Object> getAttachments() {
this.mailContent = mailContent; return attachments;
} }
public List< Object > getAttachments() { public void setAttachments(List<Object> attachments) {
return attachments; this.attachments = attachments;
} }
public void setAttachments(List < Object > attachments) { public Map<String, Object> getModel() {
this.attachments = attachments; return model;
} }
public Map< String, Object > getModel() { public void setModel(Map<String, Object> model) {
return model; this.model = model;
} }
public void setModel(Map < String, Object > model) { public String getTemplateLoacation() {
this.model = model; return templateLoacation;
} }
public String getTemplateLoacation() { public void setTemplateLoacation(String templateLoacation) {
return templateLoacation; this.templateLoacation = templateLoacation;
} }
public void setTemplateLoacation(String templateLoacation) {
this.templateLoacation = templateLoacation;
}
} }

View File

@ -11,34 +11,34 @@ public class PageParams {
private String sortDirection; private String sortDirection;
public Integer getPageNo() { public Integer getPageNo() {
return pageNo; return pageNo;
} }
public void setPageNo(Integer pageNo) { public void setPageNo(Integer pageNo) {
this.pageNo = pageNo; this.pageNo = pageNo;
} }
public Integer getCountPerPage() { public Integer getCountPerPage() {
return countPerPage; return countPerPage;
} }
public void setCountPerPage(Integer countPerPage) { public void setCountPerPage(Integer countPerPage) {
this.countPerPage = countPerPage; this.countPerPage = countPerPage;
} }
public String getSortCol() { public String getSortCol() {
return sortCol; return sortCol;
} }
public void setSortCol(String sortCol) { public void setSortCol(String sortCol) {
this.sortCol = sortCol; this.sortCol = sortCol;
} }
public String getSortDirection() { public String getSortDirection() {
return sortDirection; return sortDirection;
} }
public void setSortDirection(String sortDirection) { public void setSortDirection(String sortDirection) {
this.sortDirection = sortDirection; this.sortDirection = sortDirection;
} }
} }

View File

@ -40,9 +40,7 @@ public class PublishMessage {
} }
public static enum TargetType { public static enum TargetType {
MEMBER_SESSION("MEMBER_SESSION"), MEMBER_SESSION("MEMBER_SESSION"), MEMBER("MEMBER"), PROBE("PROBE");
MEMBER("MEMBER"),
PROBE("PROBE");
final private String name; final private String name;

View File

@ -4,14 +4,17 @@ package com.loafle.overflow.core.type;
* Created by snoop on 17. 6. 27. * Created by snoop on 17. 6. 27.
*/ */
public enum CryptoType { public enum CryptoType {
NONE(""), NONE(""),
TLS("TLS"); TLS("TLS");
private String stringValue; private String stringValue;
CryptoType(String string) {stringValue = string;}
@Override CryptoType(String string) {
public String toString() { stringValue = string;
return stringValue; }
}
@Override
public String toString() {
return stringValue;
}
} }

View File

@ -4,15 +4,18 @@ package com.loafle.overflow.core.type;
* Created by snoop on 17. 6. 27. * Created by snoop on 17. 6. 27.
*/ */
public enum PortType { public enum PortType {
TCP("TCP"), TCP("TCP"),
UDP("UDP"), UDP("UDP"),
TLS("TLS"); TLS("TLS");
private String stringValue; private String stringValue;
PortType(String string) {stringValue = string;}
@Override PortType(String string) {
public String toString() { stringValue = string;
return stringValue; }
}
@Override
public String toString() {
return stringValue;
}
} }

View File

@ -8,71 +8,73 @@ import java.util.Date;
@Entity @Entity
@Table(name = "API_KEY", schema = "public") @Table(name = "API_KEY", schema = "public")
public class ApiKey { public class ApiKey {
private Long id; private Long id;
private String apiKey; private String apiKey;
private Date createDate; private Date createDate;
private Domain domain; private Domain domain;
@Id @Id
@GeneratedValue(strategy= GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
@Column(name = "API_KEY", nullable = false, unique = true,length = 50) @Column(name = "API_KEY", nullable = false, unique = true, length = 50)
public String getApiKey() { public String getApiKey() {
return apiKey; return apiKey;
} }
public void setApiKey(String apiKey) { public void setApiKey(String apiKey) {
this.apiKey = apiKey; this.apiKey = apiKey;
} }
@Temporal(TemporalType.TIMESTAMP) @Temporal(TemporalType.TIMESTAMP)
@Column(name="CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) @Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
public Date getCreateDate() { public Date getCreateDate() {
return createDate; return createDate;
} }
public void setCreateDate(Date createDate) { public void setCreateDate(Date createDate) {
this.createDate = createDate; this.createDate = createDate;
} }
@ManyToOne @ManyToOne
@JoinColumn(name = "DOMAIN_ID", nullable=false) @JoinColumn(name = "DOMAIN_ID", nullable = false)
public Domain getDomain() { public Domain getDomain() {
return domain; return domain;
} }
public void setDomain(Domain domain) { public void setDomain(Domain domain) {
this.domain = domain; this.domain = domain;
} }
// //
// @Override // @Override
// public boolean equals(Object o) { // public boolean equals(Object o) {
// if (this == o) return true; // if (this == o) return true;
// if (o == null || getClass() != o.getClass()) return false; // if (o == null || getClass() != o.getClass()) return false;
// //
// TblApiKey tblApiKey = (TblApiKey) o; // TblApiKey tblApiKey = (TblApiKey) o;
// //
// if (id != tblApiKey.id) return false; // if (id != tblApiKey.id) return false;
// if (domainId != tblApiKey.domainId) return false; // if (domainId != tblApiKey.domainId) return false;
// if (apiKey != null ? !apiKey.equals(tblApiKey.apiKey) : tblApiKey.apiKey != null) return false; // if (apiKey != null ? !apiKey.equals(tblApiKey.apiKey) : tblApiKey.apiKey !=
// if (createDate != null ? !createDate.equals(tblApiKey.createDate) : tblApiKey.createDate != null) return false; // null) return false;
// // if (createDate != null ? !createDate.equals(tblApiKey.createDate) :
// return true; // tblApiKey.createDate != null) return false;
// } //
// // return true;
// @Override // }
// public int hashCode() { //
// int result = (int) (id ^ (id >>> 32)); // @Override
// result = 31 * result + (apiKey != null ? apiKey.hashCode() : 0); // public int hashCode() {
// result = 31 * result + (createDate != null ? createDate.hashCode() : 0); // int result = (int) (id ^ (id >>> 32));
// result = 31 * result + (int) (domainId ^ (domainId >>> 32)); // result = 31 * result + (apiKey != null ? apiKey.hashCode() : 0);
// return result; // result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
// } // result = 31 * result + (int) (domainId ^ (domainId >>> 32));
// return result;
// }
} }

View File

@ -14,59 +14,59 @@ import java.util.Date;
@Entity @Entity
@Table(name = "AUTH_CRAWLER", schema = "public") @Table(name = "AUTH_CRAWLER", schema = "public")
public class AuthCrawler { public class AuthCrawler {
private Long id; private Long id;
private MetaCrawler crawler; private MetaCrawler metaCrawler;
private Target target; private Target target;
private String authJson; private String authJson;
private Date createDate; private Date createDate;
@Id @Id
@GeneratedValue(strategy= GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
@ManyToOne @ManyToOne
@JoinColumn(name = "CRAWLER_ID", nullable = false) @JoinColumn(name = "META_CRAWLER_ID", nullable = false)
public MetaCrawler getCrawler() { public MetaCrawler getMetaCrawler() {
return crawler; return metaCrawler;
} }
public void setCrawler(MetaCrawler crawler) { public void setMetaCrawler(MetaCrawler metaCrawler) {
this.crawler = crawler; this.metaCrawler = metaCrawler;
} }
@ManyToOne @ManyToOne
@OnDelete(action = OnDeleteAction.CASCADE) @OnDelete(action = OnDeleteAction.CASCADE)
@JoinColumn(name = "TARGET_ID", nullable = false) @JoinColumn(name = "TARGET_ID", nullable = false)
public Target getTarget() { public Target getTarget() {
return target; return target;
} }
public void setTarget(Target target) { public void setTarget(Target target) {
this.target = target; this.target = target;
} }
@Column(name = "AUTH_JSON", nullable = false) @Column(name = "AUTH_JSON", nullable = false)
public String getAuthJson() { public String getAuthJson() {
return authJson; return authJson;
} }
public void setAuthJson(String authJson) { public void setAuthJson(String authJson) {
this.authJson = authJson; this.authJson = authJson;
} }
@Temporal(TemporalType.TIMESTAMP) @Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) @Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
public Date getCreateDate() { public Date getCreateDate() {
return createDate; return createDate;
} }
public void setCreateDate(Date createDate) { public void setCreateDate(Date createDate) {
this.createDate = createDate; this.createDate = createDate;
} }
} }

View File

@ -27,30 +27,35 @@ public class Metric {
public String getSensorConfigID() { public String getSensorConfigID() {
return sensorConfigID; return sensorConfigID;
} }
/** /**
* @param sensorConfigID the sensorConfigID to set * @param sensorConfigID the sensorConfigID to set
*/ */
public void setSensorConfigID(String sensorConfigID) { public void setSensorConfigID(String sensorConfigID) {
this.sensorConfigID = sensorConfigID; this.sensorConfigID = sensorConfigID;
} }
/** /**
* @return the data * @return the data
*/ */
public Map<String, String> getData() { public Map<String, String> getData() {
return data; return data;
} }
/** /**
* @param data the data to set * @param data the data to set
*/ */
public void setData(Map<String, String> data) { public void setData(Map<String, String> data) {
this.data = data; this.data = data;
} }
/** /**
* @return the collectDate * @return the collectDate
*/ */
public Date getCollectDate() { public Date getCollectDate() {
return collectDate; return collectDate;
} }
/** /**
* @param collectDate the collectDate to set * @param collectDate the collectDate to set
*/ */

View File

@ -6,87 +6,87 @@ import java.util.List;
* Created by snoop on 17. 9. 29. * Created by snoop on 17. 9. 29.
*/ */
public class DiscoveryStartInfo { public class DiscoveryStartInfo {
String startIpv4; String startIpv4;
String endIPv4; String endIPv4;
String excludeIpv4; String excludeIpv4;
String startIpv6; String startIpv6;
String endIPv6; String endIPv6;
String excludeIpv6; String excludeIpv6;
String startPort; String startPort;
String endPort; String endPort;
List<String> services; List<String> services;
public String getStartIpv4() { public String getStartIpv4() {
return startIpv4; return startIpv4;
} }
public void setStartIpv4(String startIpv4) { public void setStartIpv4(String startIpv4) {
this.startIpv4 = startIpv4; this.startIpv4 = startIpv4;
} }
public String getEndIPv4() { public String getEndIPv4() {
return endIPv4; return endIPv4;
} }
public void setEndIPv4(String endIPv4) { public void setEndIPv4(String endIPv4) {
this.endIPv4 = endIPv4; this.endIPv4 = endIPv4;
} }
public String getExcludeIpv4() { public String getExcludeIpv4() {
return excludeIpv4; return excludeIpv4;
} }
public void setExcludeIpv4(String excludeIpv4) { public void setExcludeIpv4(String excludeIpv4) {
this.excludeIpv4 = excludeIpv4; this.excludeIpv4 = excludeIpv4;
} }
public String getStartIpv6() { public String getStartIpv6() {
return startIpv6; return startIpv6;
} }
public void setStartIpv6(String startIpv6) { public void setStartIpv6(String startIpv6) {
this.startIpv6 = startIpv6; this.startIpv6 = startIpv6;
} }
public String getEndIPv6() { public String getEndIPv6() {
return endIPv6; return endIPv6;
} }
public void setEndIPv6(String endIPv6) { public void setEndIPv6(String endIPv6) {
this.endIPv6 = endIPv6; this.endIPv6 = endIPv6;
} }
public String getExcludeIpv6() { public String getExcludeIpv6() {
return excludeIpv6; return excludeIpv6;
} }
public void setExcludeIpv6(String excludeIpv6) { public void setExcludeIpv6(String excludeIpv6) {
this.excludeIpv6 = excludeIpv6; this.excludeIpv6 = excludeIpv6;
} }
public String getStartPort() { public String getStartPort() {
return startPort; return startPort;
} }
public void setStartPort(String startPort) { public void setStartPort(String startPort) {
this.startPort = startPort; this.startPort = startPort;
} }
public String getEndPort() { public String getEndPort() {
return endPort; return endPort;
} }
public void setEndPort(String endPort) { public void setEndPort(String endPort) {
this.endPort = endPort; this.endPort = endPort;
} }
public List<String> getServices() { public List<String> getServices() {
return services; return services;
} }
public void setServices(List<String> services) { public void setServices(List<String> services) {
this.services = services; this.services = services;
} }
} }

View File

@ -1,6 +1,5 @@
package com.loafle.overflow.model.discovery; package com.loafle.overflow.model.discovery;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
@ -9,89 +8,89 @@ import java.util.List;
*/ */
public class Host { public class Host {
private Long id; private Long id;
private String ipv4; private String ipv4;
private String ipv6; private String ipv6;
private String mac; private String mac;
private String os; private String os;
private Date discoveredDate; private Date discoveredDate;
private Zone zone; private Zone zone;
private boolean target; private boolean target;
private List<Port> portList; private List<Port> portList;
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
public String getIpv4() { public String getIpv4() {
return ipv4; return ipv4;
} }
public void setIpv4(String ipv4) { public void setIpv4(String ipv4) {
this.ipv4 = ipv4; this.ipv4 = ipv4;
} }
public String getIpv6() { public String getIpv6() {
return ipv6; return ipv6;
} }
public void setIpv6(String ipv6) { public void setIpv6(String ipv6) {
this.ipv6 = ipv6; this.ipv6 = ipv6;
} }
public String getMac() { public String getMac() {
return mac; return mac;
} }
public void setMac(String mac) { public void setMac(String mac) {
this.mac = mac; this.mac = mac;
} }
public String getOs() { public String getOs() {
return os; return os;
} }
public void setOs(String os) { public void setOs(String os) {
this.os = os; this.os = os;
} }
public Date getDiscoveredDate() { public Date getDiscoveredDate() {
return discoveredDate; return discoveredDate;
} }
public void setDiscoveredDate(Date discoveredDate) { public void setDiscoveredDate(Date discoveredDate) {
this.discoveredDate = discoveredDate; this.discoveredDate = discoveredDate;
} }
public Zone getZone() { public Zone getZone() {
return zone; return zone;
} }
public void setZone(Zone zone) { public void setZone(Zone zone) {
this.zone = zone; this.zone = zone;
} }
public boolean isTarget() { public boolean isTarget() {
return target; return target;
} }
public void setTarget(boolean target) { public void setTarget(boolean target) {
this.target = target; this.target = target;
} }
public List<Port> getPortList() { public List<Port> getPortList() {
return portList; return portList;
} }
public void setPortList(List<Port> portList) { public void setPortList(List<Port> portList) {
this.portList = portList; this.portList = portList;
} }
} }

View File

@ -10,71 +10,71 @@ import java.util.List;
*/ */
public class Port { public class Port {
private Long id; private Long id;
private PortType portType; private PortType portType;
private Integer portNumber; private Integer portNumber;
private Date discoveredDate; private Date discoveredDate;
private Host host; private Host host;
private Boolean target; private Boolean target;
private List<Service> serviceList; private List<Service> serviceList;
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
public PortType getPortType() { public PortType getPortType() {
return portType; return portType;
} }
public void setPortType(PortType portType) { public void setPortType(PortType portType) {
this.portType = portType; this.portType = portType;
} }
public Integer getPortNumber() { public Integer getPortNumber() {
return portNumber; return portNumber;
} }
public void setPortNumber(Integer portNumber) { public void setPortNumber(Integer portNumber) {
this.portNumber = portNumber; this.portNumber = portNumber;
} }
public Date getDiscoveredDate() { public Date getDiscoveredDate() {
return discoveredDate; return discoveredDate;
} }
public void setDiscoveredDate(Date discoveredDate) { public void setDiscoveredDate(Date discoveredDate) {
this.discoveredDate = discoveredDate; this.discoveredDate = discoveredDate;
} }
public Host getHost() { public Host getHost() {
return host; return host;
} }
public void setHost(Host host) { public void setHost(Host host) {
this.host = host; this.host = host;
} }
public Boolean isTarget() { public Boolean isTarget() {
return target; return target;
} }
public void setTarget(Boolean target) { public void setTarget(Boolean target) {
this.target = target; this.target = target;
} }
public List<Service> getServiceList() { public List<Service> getServiceList() {
return serviceList; return serviceList;
} }
public void setServiceList(List<Service> serviceList) { public void setServiceList(List<Service> serviceList) {
this.serviceList = serviceList; this.serviceList = serviceList;
} }
} }

View File

@ -1,6 +1,5 @@
package com.loafle.overflow.model.discovery; package com.loafle.overflow.model.discovery;
import java.util.Date; import java.util.Date;
import com.loafle.overflow.core.type.CryptoType; import com.loafle.overflow.core.type.CryptoType;
@ -10,61 +9,61 @@ import com.loafle.overflow.core.type.CryptoType;
*/ */
public class Service { public class Service {
private Long id; private Long id;
private CryptoType cryptoType; private CryptoType cryptoType;
private String serviceName; private String serviceName;
private Date discoveredDate; private Date discoveredDate;
private Port port; private Port port;
private Boolean target; private Boolean target;
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
public CryptoType getCryptoType() { public CryptoType getCryptoType() {
return cryptoType; return cryptoType;
} }
public void setCryptoType(CryptoType cryptoType) { public void setCryptoType(CryptoType cryptoType) {
this.cryptoType = cryptoType; this.cryptoType = cryptoType;
} }
public String getServiceName() { public String getServiceName() {
return serviceName; return serviceName;
} }
public void setServiceName(String serviceName) { public void setServiceName(String serviceName) {
this.serviceName = serviceName; this.serviceName = serviceName;
} }
public Date getDiscoveredDate() { public Date getDiscoveredDate() {
return discoveredDate; return discoveredDate;
} }
public void setDiscoveredDate(Date discoveredDate) { public void setDiscoveredDate(Date discoveredDate) {
this.discoveredDate = discoveredDate; this.discoveredDate = discoveredDate;
} }
public Port getPort() { public Port getPort() {
return port; return port;
} }
public void setPort(Port port) { public void setPort(Port port) {
this.port = port; this.port = port;
} }
public Boolean isTarget() { public Boolean isTarget() {
return target; return target;
} }
public void setTarget(Boolean target) { public void setTarget(Boolean target) {
this.target = target; this.target = target;
} }
} }

View File

@ -9,44 +9,45 @@ import java.util.Date;
@Entity @Entity
@Table(name = "DOMAIN", schema = "public") @Table(name = "DOMAIN", schema = "public")
public class Domain { public class Domain {
private Long id; private Long id;
private String name; private String name;
private Date createDate; private Date createDate;
public Domain() { public Domain() {
} }
public Domain(Long id) {
this.id = id;
}
@Id public Domain(Long id) {
@GeneratedValue(strategy= GenerationType.IDENTITY) this.id = id;
public Long getId() { }
return id;
}
public void setId(Long id) { @Id
this.id = id; @GeneratedValue(strategy = GenerationType.IDENTITY)
} public Long getId() {
return id;
}
@Basic public void setId(Long id) {
@Column(name = "NAME", nullable = true, length = 50) this.id = id;
public String getName() { }
return name;
}
public void setName(String name) { @Basic
this.name = name; @Column(name = "NAME", nullable = true, length = 50)
} public String getName() {
return name;
}
@Temporal(TemporalType.TIMESTAMP) public void setName(String name) {
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) this.name = name;
public Date getCreateDate() { }
return createDate;
}
public void setCreateDate(Date createDate) { @Temporal(TemporalType.TIMESTAMP)
this.createDate = createDate; @Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
} public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
} }

View File

@ -11,49 +11,48 @@ import java.sql.Timestamp;
@Entity @Entity
@Table(name = "DOMAIN_MEMBER", schema = "public") @Table(name = "DOMAIN_MEMBER", schema = "public")
public class DomainMember { public class DomainMember {
private Long id; private Long id;
private Timestamp createDate; private Timestamp createDate;
private Member member; private Member member;
private Domain domain; private Domain domain;
@Id @Id
@GeneratedValue(strategy= GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
@Basic @Basic
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) @Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
public Timestamp getCreateDate() { public Timestamp getCreateDate() {
return createDate; return createDate;
} }
public void setCreateDate(Timestamp createDate) { public void setCreateDate(Timestamp createDate) {
this.createDate = createDate; this.createDate = createDate;
} }
@ManyToOne
@JoinColumn(name = "MEMBER_ID", nullable = false)
public Member getMember() {
return member;
}
@ManyToOne public void setMember(Member member) {
@JoinColumn(name = "MEMBER_ID", nullable = false) this.member = member;
public Member getMember() { }
return member;
}
public void setMember(Member member) { @ManyToOne
this.member = member; @JoinColumn(name = "DOMAIN_ID", nullable = false)
} public Domain getDomain() {
return domain;
}
@ManyToOne public void setDomain(Domain domain) {
@JoinColumn(name = "DOMAIN_ID", nullable = false) this.domain = domain;
public Domain getDomain() { }
return domain;
}
public void setDomain(Domain domain) {
this.domain = domain;
}
} }

View File

@ -12,70 +12,70 @@ import java.util.Date;
@Entity @Entity
@Table(name = "EMAIL_AUTH", schema = "public") @Table(name = "EMAIL_AUTH", schema = "public")
public class EmailAuth { public class EmailAuth {
private Long id; private Long id;
private String emailAuthKey; private String emailAuthKey;
private Date createDate; private Date createDate;
private Date authConfirmDate; private Date authConfirmDate;
private Member member; private Member member;
private MetaEmailStatus emailStatus; private MetaEmailStatus metaEmailStatus;
@Id @Id
@GeneratedValue(strategy= GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
@Basic @Basic
@Column(name = "EMAIL_AUTH_KEY", nullable = true, length = 50) @Column(name = "EMAIL_AUTH_KEY", nullable = true, length = 50)
public String getEmailAuthKey() { public String getEmailAuthKey() {
return emailAuthKey; return emailAuthKey;
} }
public void setEmailAuthKey(String emailAuthKey) { public void setEmailAuthKey(String emailAuthKey) {
this.emailAuthKey = emailAuthKey; this.emailAuthKey = emailAuthKey;
} }
@Basic @Basic
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) @Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
public Date getCreateDate() { public Date getCreateDate() {
return createDate; return createDate;
} }
public void setCreateDate(Date createDate) { public void setCreateDate(Date createDate) {
this.createDate = createDate; this.createDate = createDate;
} }
@Basic @Basic
@Column(name = "AUTH_CONFIRM_DATE", nullable = true, insertable = true, updatable = true) @Column(name = "AUTH_CONFIRM_DATE", nullable = true, insertable = true, updatable = true)
public Date getAuthConfirmDate() { public Date getAuthConfirmDate() {
return authConfirmDate; return authConfirmDate;
} }
public void setAuthConfirmDate(Date authConfirmDate) { public void setAuthConfirmDate(Date authConfirmDate) {
this.authConfirmDate = authConfirmDate; this.authConfirmDate = authConfirmDate;
} }
@ManyToOne @ManyToOne
@JoinColumn(name = "MEMBER_ID", nullable = false) @JoinColumn(name = "MEMBER_ID", nullable = false)
public Member getMember() { public Member getMember() {
return member; return member;
} }
public void setMember(Member member) { public void setMember(Member member) {
this.member = member; this.member = member;
} }
@ManyToOne @ManyToOne
@JoinColumn(name = "STATUS", nullable = false) @JoinColumn(name = "META_EMAIL_STATUS_ID", nullable = false)
public MetaEmailStatus getEmailStatus() { public MetaEmailStatus getMetaEmailStatus() {
return emailStatus; return metaEmailStatus;
} }
public void setEmailStatus(MetaEmailStatus emailStatus) { public void setMetaEmailStatus(MetaEmailStatus metaEmailStatus) {
this.emailStatus = emailStatus; this.metaEmailStatus = metaEmailStatus;
} }
} }

View File

@ -14,103 +14,106 @@ import java.util.Date;
@Entity @Entity
@Table(name = "HISTORY", schema = "public") @Table(name = "HISTORY", schema = "public")
public class History { public class History {
private Long id; private Long id;
private Date createDate; private Date createDate;
private MetaHistoryType type; private MetaHistoryType metaHistoryType;
private String message; private String message;
private Probe probe; private Probe probe;
private Member member; private Member member;
private Domain domain; private Domain domain;
//private MetaResultType resultType; // i'm not sure this is necessary // private MetaResultType resultType; // i'm not sure this is necessary
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
public Long getId() {
return id;
}
@Id public void setId(Long id) {
@GeneratedValue(strategy= GenerationType.IDENTITY) this.id = id;
public Long getId() { }
return id;
}
public void setId(Long id) { @Temporal(TemporalType.TIMESTAMP)
this.id = id; @Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
} public Date getCreateDate() {
return createDate;
}
@Temporal(TemporalType.TIMESTAMP) public void setCreateDate(Date createDate) {
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) this.createDate = createDate;
public Date getCreateDate() { }
return createDate;
}
public void setCreateDate(Date createDate) { @ManyToOne
this.createDate = createDate; @JoinColumn(name = "META_HISTORY_TYPE_ID", nullable = false)
} public MetaHistoryType getMetaHistoryType() {
return metaHistoryType;
}
@ManyToOne public void setMetaHistoryType(MetaHistoryType metaHistoryType) {
@JoinColumn(name = "TYPE_ID", nullable = false) this.metaHistoryType = metaHistoryType;
public MetaHistoryType getType() { }
return type;
}
public void setType(MetaHistoryType type) { @Column(name = "MESSAGE", nullable = false, length = 255)
this.type = type; public String getMessage() {
} return message;
}
@Column(name = "MESSAGE", nullable = false, length = 255) public void setMessage(String message) {
public String getMessage() { this.message = message;
return message; }
}
public void setMessage(String message) { @ManyToOne
this.message = message; @JoinColumn(name = "PROBE_ID", nullable = false)
} public Probe getProbe() {
return probe;
}
@ManyToOne public void setProbe(Probe probe) {
@JoinColumn(name = "PROBE_ID", nullable = false) this.probe = probe;
public Probe getProbe() { }
return probe;
}
public void setProbe(Probe probe) { @ManyToOne
this.probe = probe; @JoinColumn(name = "MEMBER_ID", nullable = false)
} public Member getMember() {
return member;
}
@ManyToOne public void setMember(Member member) {
@JoinColumn(name = "MEMBER_ID", nullable = false) this.member = member;
public Member getMember() { }
return member;
}
public void setMember(Member member) { @ManyToOne
this.member = member; @JoinColumn(name = "DOMAIN_ID", nullable = false)
} public Domain getDomain() {
return domain;
}
@ManyToOne public void setDomain(Domain domain) {
@JoinColumn(name = "DOMAIN_ID", nullable = false) this.domain = domain;
public Domain getDomain() { }
return domain;
}
public void setDomain(Domain domain) { @Override
this.domain = domain; public boolean equals(Object o) {
} if (this == o)
return true;
if (o == null || getClass() != o.getClass())
return false;
@Override History that = (History) o;
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
History that = (History) o; if (id != that.id)
return false;
if (createDate != null ? !createDate.equals(that.createDate) : that.createDate != null)
return false;
if (id != that.id) return false; return true;
if (createDate != null ? !createDate.equals(that.createDate) : that.createDate != null) return false; }
return true; @Override
} public int hashCode() {
int result = (int) (id ^ (id >>> 32));
@Override result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
public int hashCode() { return result;
int result = (int) (id ^ (id >>> 32)); }
result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
return result;
}
} }

View File

@ -1,6 +1,5 @@
package com.loafle.overflow.model.infra; package com.loafle.overflow.model.infra;
import com.loafle.overflow.model.meta.MetaInfraType; import com.loafle.overflow.model.meta.MetaInfraType;
import com.loafle.overflow.model.probe.Probe; import com.loafle.overflow.model.probe.Probe;
import javax.persistence.*; import javax.persistence.*;
@ -14,50 +13,49 @@ import java.util.Date;
@Inheritance(strategy = InheritanceType.JOINED) @Inheritance(strategy = InheritanceType.JOINED)
@DiscriminatorColumn(name = "INFRA_TYPE", discriminatorType = DiscriminatorType.INTEGER) @DiscriminatorColumn(name = "INFRA_TYPE", discriminatorType = DiscriminatorType.INTEGER)
public abstract class Infra { public abstract class Infra {
private Long id; private Long id;
private MetaInfraType infraType; private MetaInfraType metaInfraType;
private Date createDate; private Date createDate;
private Probe probe; private Probe probe;
@Id @Id
@GeneratedValue(strategy= GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
@ManyToOne @ManyToOne
@JoinColumn(name = "TYPE_ID", nullable = false) @JoinColumn(name = "META_INFRA_TYPE_ID", nullable = false)
public MetaInfraType getInfraType() { public MetaInfraType getMetaInfraType() {
return infraType; return metaInfraType;
} }
public void setInfraType(MetaInfraType infraType) { public void setMetaInfraType(MetaInfraType metaInfraType) {
this.infraType = infraType; this.metaInfraType = metaInfraType;
} }
@Temporal(TemporalType.TIMESTAMP) @Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) @Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
public Date getCreateDate() { public Date getCreateDate() {
return createDate; return createDate;
} }
public void setCreateDate(Date createDate) { public void setCreateDate(Date createDate) {
this.createDate = createDate; this.createDate = createDate;
} }
@ManyToOne @ManyToOne
@JoinColumn(name = "PROBE_ID", nullable = true) @JoinColumn(name = "PROBE_ID", nullable = true)
public Probe getProbe() { public Probe getProbe() {
return probe; return probe;
} }
public void setProbe(Probe probe) {
this.probe = probe;
}
public void setProbe(Probe probe) {
this.probe = probe;
}
} }

View File

@ -10,71 +10,71 @@ import java.util.Date;
@Table(name = "INFRA_HOST", schema = "public") @Table(name = "INFRA_HOST", schema = "public")
@DiscriminatorValue("2") @DiscriminatorValue("2")
public class InfraHost extends Infra { public class InfraHost extends Infra {
// private Long id; // private Long id;
private InfraOS os; private InfraOS infraOS;
private String ipv4; private String ipv4;
private String ipv6; private String ipv6;
private String mac; private String mac;
private Date createDate; private Date createDate;
// @Id // @Id
// @GeneratedValue(strategy= GenerationType.IDENTITY) // @GeneratedValue(strategy= GenerationType.IDENTITY)
// public Long getId() { // public Long getId() {
// return id; // return id;
// } // }
// //
// public void setId(Long id) { // public void setId(Long id) {
// this.id = id; // this.id = id;
// } // }
@ManyToOne @ManyToOne
@JoinColumn(name = "OS_ID", nullable = true) @JoinColumn(name = "INFRA_OS_ID", nullable = true)
public InfraOS getOs() { public InfraOS getInfraOS() {
return os; return infraOS;
} }
public void setOs(InfraOS os) { public void setInfraOS(InfraOS infraOS) {
this.os = os; this.infraOS = infraOS;
} }
@Basic @Basic
@Column(name = "IP_V4", nullable = true) @Column(name = "IP_V4", nullable = true)
public String getIpv4() { public String getIpv4() {
return ipv4; return ipv4;
} }
public void setIpv4(String ipv4) { public void setIpv4(String ipv4) {
this.ipv4 = ipv4; this.ipv4 = ipv4;
} }
@Basic @Basic
@Column(name = "IP_V6", nullable = true) @Column(name = "IP_V6", nullable = true)
public String getIpv6() { public String getIpv6() {
return ipv6; return ipv6;
} }
public void setIpv6(String ipv6) { public void setIpv6(String ipv6) {
this.ipv6 = ipv6; this.ipv6 = ipv6;
} }
@Basic @Basic
@Column(name = "MAC", nullable = true) @Column(name = "MAC", nullable = true)
public String getMac() { public String getMac() {
return mac; return mac;
} }
public void setMac(String mac) { public void setMac(String mac) {
this.mac = mac; this.mac = mac;
} }
@Temporal(TemporalType.TIMESTAMP) @Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_DATE", nullable = true, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) @Column(name = "CREATE_DATE", nullable = true, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
public Date getCreateDate() { public Date getCreateDate() {
return createDate; return createDate;
} }
public void setCreateDate(Date createDate) { public void setCreateDate(Date createDate) {
this.createDate = createDate; this.createDate = createDate;
} }
} }

View File

@ -10,46 +10,43 @@ import java.util.Date;
@Table(name = "INFRA_MACHINE", schema = "public") @Table(name = "INFRA_MACHINE", schema = "public")
@DiscriminatorValue("1") @DiscriminatorValue("1")
public class InfraMachine extends Infra { public class InfraMachine extends Infra {
// private Long id; // private Long id;
private String meta; private String meta;
private Date createDate; private Date createDate;
/* /*
private Long id; * private Long id; private String meta; private Date createDate;
private String meta; */
private Date createDate;
*/
// @Id // @Id
// @GeneratedValue(strategy= GenerationType.IDENTITY) // @GeneratedValue(strategy= GenerationType.IDENTITY)
// public Long getId() { // public Long getId() {
// return id; // return id;
// } // }
// //
// public void setId(Long id) { // public void setId(Long id) {
// this.id = id; // this.id = id;
// } // }
@Basic @Basic
@Column(name = "META", nullable = true, length = 1000) @Column(name = "META", nullable = true, length = 1000)
public String getMeta() { public String getMeta() {
return meta; return meta;
} }
public void setMeta(String meta) { public void setMeta(String meta) {
this.meta = meta; this.meta = meta;
} }
@Temporal(TemporalType.TIMESTAMP) @Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) @Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
public Date getCreateDate() { public Date getCreateDate() {
return createDate; return createDate;
} }
public void setCreateDate(Date createDate) { public void setCreateDate(Date createDate) {
this.createDate = createDate; this.createDate = createDate;
} }
} }

View File

@ -1,6 +1,5 @@
package com.loafle.overflow.model.infra; package com.loafle.overflow.model.infra;
import com.loafle.overflow.model.meta.MetaInfraVendor; import com.loafle.overflow.model.meta.MetaInfraVendor;
import javax.persistence.*; import javax.persistence.*;
@ -13,60 +12,60 @@ import java.util.Date;
@Table(name = "INFRA_OS", schema = "public") @Table(name = "INFRA_OS", schema = "public")
@DiscriminatorValue("3") @DiscriminatorValue("3")
public class InfraOS extends Infra { public class InfraOS extends Infra {
// private Long id; // private Long id;
private InfraMachine machine; private InfraMachine infraMachine;
private String meta; private String meta;
private Date createDate; private Date createDate;
private MetaInfraVendor vendor; private MetaInfraVendor metaInfraVendor;
// @Id // @Id
// @GeneratedValue(strategy= GenerationType.IDENTITY) // @GeneratedValue(strategy= GenerationType.IDENTITY)
// public Long getId() { // public Long getId() {
// return id; // return id;
// } // }
// //
// public void setId(Long id) { // public void setId(Long id) {
// this.id = id; // this.id = id;
// } // }
@ManyToOne @ManyToOne
@JoinColumn(name = "MACHINE_ID", nullable = true) @JoinColumn(name = "INFRA_MACHINE_ID", nullable = true)
public InfraMachine getMachine() { public InfraMachine getInfraMachine() {
return machine; return infraMachine;
} }
public void setMachine(InfraMachine machine) { public void setInfraMachine(InfraMachine infraMachine) {
this.machine = machine; this.infraMachine = infraMachine;
} }
@Basic @Basic
@Column(name = "META", nullable = true, length = 255) @Column(name = "META", nullable = true, length = 255)
public String getMeta() { public String getMeta() {
return meta; return meta;
} }
public void setMeta(String meta) { public void setMeta(String meta) {
this.meta = meta; this.meta = meta;
} }
@Temporal(TemporalType.TIMESTAMP) @Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_DATE", nullable = true, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) @Column(name = "CREATE_DATE", nullable = true, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
public Date getCreateDate() { public Date getCreateDate() {
return createDate; return createDate;
} }
public void setCreateDate(Date createDate) { public void setCreateDate(Date createDate) {
this.createDate = createDate; this.createDate = createDate;
} }
@ManyToOne @ManyToOne
@JoinColumn(name = "VENDOR_ID", nullable = true) @JoinColumn(name = "META_INFRA_VENDOR_ID", nullable = true)
public MetaInfraVendor getVendor() { public MetaInfraVendor getMetaInfraVendor() {
return vendor; return metaInfraVendor;
} }
public void setVendor(MetaInfraVendor vendor) { public void setMetaInfraVendor(MetaInfraVendor metaInfraVendor) {
this.vendor = vendor; this.metaInfraVendor = metaInfraVendor;
} }
} }

View File

@ -10,49 +10,49 @@ import java.util.Date;
@Table(name = "INFRA_OS_APPLICATION", schema = "public") @Table(name = "INFRA_OS_APPLICATION", schema = "public")
@DiscriminatorValue("4") @DiscriminatorValue("4")
public class InfraOSApplication extends Infra { public class InfraOSApplication extends Infra {
// private Long id; // private Long id;
private InfraOS os; private InfraOS infraOS;
private String name; private String name;
private Date createDate; private Date createDate;
// @Id // @Id
// @GeneratedValue(strategy= GenerationType.IDENTITY) // @GeneratedValue(strategy= GenerationType.IDENTITY)
// public Long getId() { // public Long getId() {
// return id; // return id;
// } // }
// //
// public void setId(Long id) { // public void setId(Long id) {
// this.id = id; // this.id = id;
// } // }
@ManyToOne @ManyToOne
@JoinColumn(name = "OS_ID", nullable = true) @JoinColumn(name = "INFRA_OS_ID", nullable = true)
public InfraOS getOs() { public InfraOS getInfraOS() {
return os; return infraOS;
} }
public void setOs(InfraOS os) { public void setInfraOS(InfraOS infraOS) {
this.os = os; this.infraOS = infraOS;
} }
@Basic @Basic
@Column(name = "NAME", nullable = true, length = 50) @Column(name = "NAME", nullable = true, length = 50)
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }
@Temporal(TemporalType.TIMESTAMP) @Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_DATE", nullable = true, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) @Column(name = "CREATE_DATE", nullable = true, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
public Date getCreateDate() { public Date getCreateDate() {
return createDate; return createDate;
} }
public void setCreateDate(Date createDate) { public void setCreateDate(Date createDate) {
this.createDate = createDate; this.createDate = createDate;
} }
} }

View File

@ -10,48 +10,48 @@ import java.util.Date;
@Table(name = "INFRA_OS_DAEMON", schema = "public") @Table(name = "INFRA_OS_DAEMON", schema = "public")
@DiscriminatorValue("5") @DiscriminatorValue("5")
public class InfraOSDaemon extends Infra { public class InfraOSDaemon extends Infra {
// private Long id; // private Long id;
private InfraOS os; private InfraOS infraOS;
private String name; private String name;
private Date createDate; private Date createDate;
// @Id // @Id
// @GeneratedValue(strategy= GenerationType.IDENTITY) // @GeneratedValue(strategy= GenerationType.IDENTITY)
// public Long getId() { // public Long getId() {
// return id; // return id;
// } // }
// //
// public void setId(Long id) { // public void setId(Long id) {
// this.id = id; // this.id = id;
// } // }
@ManyToOne @ManyToOne
@JoinColumn(name = "OS_ID", nullable = true) @JoinColumn(name = "INFRA_OS_ID", nullable = true)
public InfraOS getOs() { public InfraOS getInfraOS() {
return os; return infraOS;
} }
public void setOs(InfraOS os) { public void setInfraOS(InfraOS infraOS) {
this.os = os; this.infraOS = infraOS;
} }
@Basic @Basic
@Column(name = "NAME", nullable = true, length = 50) @Column(name = "NAME", nullable = true, length = 50)
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }
@Temporal(TemporalType.TIMESTAMP) @Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_DATE", nullable = true, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) @Column(name = "CREATE_DATE", nullable = true, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
public Date getCreateDate() { public Date getCreateDate() {
return createDate; return createDate;
} }
public void setCreateDate(Date createDate) { public void setCreateDate(Date createDate) {
this.createDate = createDate; this.createDate = createDate;
} }
} }

View File

@ -1,6 +1,5 @@
package com.loafle.overflow.model.infra; package com.loafle.overflow.model.infra;
import com.loafle.overflow.model.meta.MetaInfraVendor; import com.loafle.overflow.model.meta.MetaInfraVendor;
import javax.persistence.*; import javax.persistence.*;
@ -13,82 +12,82 @@ import java.util.Date;
@Table(name = "INFRA_OS_PORT", schema = "public") @Table(name = "INFRA_OS_PORT", schema = "public")
@DiscriminatorValue("6") @DiscriminatorValue("6")
public class InfraOSPort extends Infra { public class InfraOSPort extends Infra {
// private Long id; // private Long id;
private InfraOS os; private InfraOS infraOS;
private Date createDate; private Date createDate;
private Integer port; private Integer port;
private String portType; private String portType;
private MetaInfraVendor vendor; private MetaInfraVendor metaInfraVendor;
private Boolean tlsType; private Boolean tlsType;
// //
// @Id // @Id
// @GeneratedValue(strategy= GenerationType.IDENTITY) // @GeneratedValue(strategy= GenerationType.IDENTITY)
// public Long getId() { // public Long getId() {
// return id; // return id;
// } // }
// //
// public void setId(Long id) { // public void setId(Long id) {
// this.id = id; // this.id = id;
// } // }
@ManyToOne @ManyToOne
@JoinColumn(name = "OS_ID", nullable = true) @JoinColumn(name = "INFRA_OS_ID", nullable = true)
public InfraOS getOs() { public InfraOS getInfraOS() {
return this.os; return infraOS;
} }
public void setOs(InfraOS os) { public void setInfraOS(InfraOS infraOS) {
this.os = os; this.infraOS = infraOS;
} }
@Temporal(TemporalType.TIMESTAMP) @Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_DATE", nullable = true, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) @Column(name = "CREATE_DATE", nullable = true, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
public Date getCreateDate() { public Date getCreateDate() {
return createDate; return createDate;
} }
public void setCreateDate(Date createDate) { public void setCreateDate(Date createDate) {
this.createDate = createDate; this.createDate = createDate;
} }
@Basic @Basic
@Column(name = "PORT", nullable = true) @Column(name = "PORT", nullable = true)
public Integer getPort() { public Integer getPort() {
return port; return port;
} }
public void setPort(Integer port) { public void setPort(Integer port) {
this.port = port; this.port = port;
} }
@Basic @Basic
@Column(name = "PORT_TYPE", nullable = true) @Column(name = "PORT_TYPE", nullable = true)
public String getPortType() { public String getPortType() {
return portType; return portType;
} }
public void setPortType(String portType) { public void setPortType(String portType) {
this.portType = portType; this.portType = portType;
} }
@ManyToOne @ManyToOne
@JoinColumn(name = "VENDOR_ID", nullable = true) @JoinColumn(name = "META_INFRA_VENDOR_ID", nullable = true)
public MetaInfraVendor getVendor() { public MetaInfraVendor getMetaInfraVendor() {
return vendor; return metaInfraVendor;
} }
public void setVendor(MetaInfraVendor vendor) { public void setMetaInfraVendor(MetaInfraVendor metaInfraVendor) {
this.vendor = vendor; this.metaInfraVendor = metaInfraVendor;
} }
@Basic @Basic
@Column(name = "TLS_TYPE", nullable = true) @Column(name = "TLS_TYPE", nullable = true)
public Boolean isTlsType() { public Boolean isTlsType() {
return tlsType; return tlsType;
} }
public void setTlsType(Boolean tlsType) { public void setTlsType(Boolean tlsType) {
this.tlsType = tlsType; this.tlsType = tlsType;
} }
} }

View File

@ -1,6 +1,5 @@
package com.loafle.overflow.model.infra; package com.loafle.overflow.model.infra;
import com.loafle.overflow.model.meta.MetaInfraVendor; import com.loafle.overflow.model.meta.MetaInfraVendor;
import javax.persistence.*; import javax.persistence.*;
@ -12,82 +11,82 @@ import java.util.Date;
@Entity(name = "INFRA_SERVICE") @Entity(name = "INFRA_SERVICE")
@Table(name = "INFRA_SERVICE", schema = "public") @Table(name = "INFRA_SERVICE", schema = "public")
@DiscriminatorValue("7") @DiscriminatorValue("7")
public class InfraService extends Infra{ public class InfraService extends Infra {
// private Long id; // private Long id;
private InfraHost host; private InfraHost infraHost;
private String portType; private String portType;
private Integer port; private Integer port;
private MetaInfraVendor vendor; private MetaInfraVendor metaInfraVendor;
private Date createDate; private Date createDate;
private Boolean tlsType; private Boolean tlsType;
// @Id // @Id
// @GeneratedValue(strategy= GenerationType.IDENTITY) // @GeneratedValue(strategy= GenerationType.IDENTITY)
// public Long getId() { // public Long getId() {
// return id; // return id;
// } // }
// //
// public void setId(Long id) { // public void setId(Long id) {
// this.id = id; // this.id = id;
// } // }
@ManyToOne @ManyToOne
@JoinColumn(name = "HOST_ID", nullable = true) @JoinColumn(name = "INFRA_HOST_ID", nullable = true)
public InfraHost getHost() { public InfraHost getInfraHost() {
return host; return infraHost;
} }
public void setHost(InfraHost host) { public void setInfraHost(InfraHost infraHost) {
this.host = host; this.infraHost = infraHost;
} }
@Basic @Basic
@Column(name = "PORT_TYPE", nullable = true) @Column(name = "PORT_TYPE", nullable = true)
public String getPortType() { public String getPortType() {
return portType; return portType;
} }
public void setPortType(String portType) { public void setPortType(String portType) {
this.portType = portType; this.portType = portType;
} }
@Basic @Basic
@Column(name = "PORT", nullable = true) @Column(name = "PORT", nullable = true)
public Integer getPort() { public Integer getPort() {
return port; return port;
} }
public void setPort(Integer port) { public void setPort(Integer port) {
this.port = port; this.port = port;
} }
@ManyToOne @ManyToOne
@JoinColumn(name = "VENDOR_ID", nullable = true) @JoinColumn(name = "META_INFRA_VENDOR_ID", nullable = true)
public MetaInfraVendor getVendor() { public MetaInfraVendor getMetaInfraVendor() {
return vendor; return metaInfraVendor;
} }
public void setVendor(MetaInfraVendor vendor) { public void setMetaInfraVendor(MetaInfraVendor metaInfraVendor) {
this.vendor = vendor; this.metaInfraVendor = metaInfraVendor;
} }
@Temporal(TemporalType.TIMESTAMP) @Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_DATE", nullable = true, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) @Column(name = "CREATE_DATE", nullable = true, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
public Date getCreateDate() { public Date getCreateDate() {
return createDate; return createDate;
} }
public void setCreateDate(Date createDate) { public void setCreateDate(Date createDate) {
this.createDate = createDate; this.createDate = createDate;
} }
@Basic @Basic
@Column(name = "TLS_TYPE", nullable = true) @Column(name = "TLS_TYPE", nullable = true)
public Boolean isTlsType() { public Boolean isTlsType() {
return tlsType; return tlsType;
} }
public void setTlsType(Boolean tlsType) { public void setTlsType(Boolean tlsType) {
this.tlsType = tlsType; this.tlsType = tlsType;
} }
} }

View File

@ -13,122 +13,121 @@ import java.util.Date;
@Entity @Entity
@Table(name = "MEMBER", schema = "public") @Table(name = "MEMBER", schema = "public")
public class Member { public class Member {
private Long id; private Long id;
private String email; private String email;
private transient String pw; private transient String pw;
private String name; private String name;
private String phone; private String phone;
private String companyName; private String companyName;
private Date createDate; private Date createDate;
private MetaMemberStatus status; private MetaMemberStatus metaMemberStatus;
private Integer signinFailCount; private Integer signinFailCount;
private Boolean totpType; private Boolean totpType;
public Member() { public Member() {
} }
public Member(Long id) { public Member(Long id) {
this.id = id; this.id = id;
} }
@Id @Id
@GeneratedValue(strategy= GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
@Basic @Basic
@Column(name = "EMAIL", nullable = false, length = 50) @Column(name = "EMAIL", nullable = false, length = 50)
public String getEmail() { public String getEmail() {
return email; return email;
} }
public void setEmail(String email) { public void setEmail(String email) {
this.email = email; this.email = email;
} }
@Basic @Basic
@JsonIgnore @JsonIgnore
@Column(name = "PW", nullable = true, length = 64) @Column(name = "PW", nullable = true, length = 64)
public String getPw() { public String getPw() {
return pw; return pw;
} }
public void setPw(String pw) { public void setPw(String pw) {
this.pw = pw; this.pw = pw;
} }
@Basic @Basic
@Column(name = "NAME", nullable = true, length = 50) @Column(name = "NAME", nullable = true, length = 50)
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }
@Basic @Basic
@Column(name = "PHONE", nullable = true, length = 50) @Column(name = "PHONE", nullable = true, length = 50)
public String getPhone() { public String getPhone() {
return phone; return phone;
} }
public void setPhone(String phone) { public void setPhone(String phone) {
this.phone = phone; this.phone = phone;
} }
@Basic @Basic
@Column(name = "COMPANY_NAME", nullable = true, length = 50) @Column(name = "COMPANY_NAME", nullable = true, length = 50)
public String getCompanyName() { public String getCompanyName() {
return companyName; return companyName;
} }
public void setCompanyName(String companyName) { public void setCompanyName(String companyName) {
this.companyName = companyName; this.companyName = companyName;
} }
@Temporal(TemporalType.TIMESTAMP) @Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) @Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
public Date getCreateDate() { public Date getCreateDate() {
return createDate; return createDate;
} }
public void setCreateDate(Date createDate) { public void setCreateDate(Date createDate) {
this.createDate = createDate; this.createDate = createDate;
} }
@ManyToOne @ManyToOne
@JoinColumn(name = "STATUS_ID", nullable = false) @JoinColumn(name = "META_MEMBER_STATUS_ID", nullable = false)
public MetaMemberStatus getStatus() { public MetaMemberStatus getMetaMemberStatus() {
return status; return metaMemberStatus;
} }
public void setStatus(MetaMemberStatus status) { public void setMetaMemberStatus(MetaMemberStatus metaMemberStatus) {
this.status = status; this.metaMemberStatus = metaMemberStatus;
} }
@Column(name = "SIGNIN_FAIL_COUNT", nullable = true, columnDefinition = "int default 0") @Column(name = "SIGNIN_FAIL_COUNT", nullable = true, columnDefinition = "int default 0")
public Integer getSigninFailCount(){ public Integer getSigninFailCount() {
return this.signinFailCount; return this.signinFailCount;
} }
public void setSigninFailCount(Integer failCount) { public void setSigninFailCount(Integer failCount) {
this.signinFailCount = failCount; this.signinFailCount = failCount;
} }
@Basic @Basic
@Column(name = "TOTP_TYPE", nullable = false, columnDefinition = "Boolean default false") @Column(name = "TOTP_TYPE", nullable = false, columnDefinition = "Boolean default false")
public Boolean isTotpType() { public Boolean isTotpType() {
return totpType; return totpType;
} }
public void setTotpType(Boolean totpType) { public void setTotpType(Boolean totpType) {
this.totpType = totpType; this.totpType = totpType;
} }
} }

View File

@ -1,6 +1,5 @@
package com.loafle.overflow.model.member; package com.loafle.overflow.model.member;
import javax.persistence.*; import javax.persistence.*;
import java.util.Date; import java.util.Date;
@ -10,76 +9,76 @@ import java.util.Date;
@Entity @Entity
@Table(name = "MEMBER_TOTP", schema = "public") @Table(name = "MEMBER_TOTP", schema = "public")
public class MemberTotp { public class MemberTotp {
private Long id; private Long id;
private Member member; private Member member;
private String secretCode; private String secretCode;
private Date createDate; private Date createDate;
private Date updateDate; private Date updateDate;
private String otpAuth; private String otpAuth;
public MemberTotp() { public MemberTotp() {
} }
public MemberTotp(Long id) { public MemberTotp(Long id) {
this.id = id; this.id = id;
} }
@Id @Id
@GeneratedValue(strategy= GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
@OneToOne @OneToOne
@JoinColumn(name = "MEMBER_ID", nullable = false) @JoinColumn(name = "MEMBER_ID", nullable = false)
public Member getMember() { public Member getMember() {
return member; return member;
} }
public void setMember(Member member) { public void setMember(Member member) {
this.member = member; this.member = member;
} }
@Basic @Basic
@Column(name = "SECRET_CODE", nullable = false, length = 20) @Column(name = "SECRET_CODE", nullable = false, length = 20)
public String getSecretCode() { public String getSecretCode() {
return secretCode; return secretCode;
} }
public void setSecretCode(String secretCode) { public void setSecretCode(String secretCode) {
this.secretCode = secretCode; this.secretCode = secretCode;
} }
@Temporal(TemporalType.TIMESTAMP) @Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) @Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
public Date getCreateDate() { public Date getCreateDate() {
return createDate; return createDate;
} }
public void setCreateDate(Date createDate) { public void setCreateDate(Date createDate) {
this.createDate = createDate; this.createDate = createDate;
} }
@Temporal(TemporalType.TIMESTAMP) @Temporal(TemporalType.TIMESTAMP)
@Column(name = "UPDATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = true) @Column(name = "UPDATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = true)
public Date getUpdateDate() { public Date getUpdateDate() {
return updateDate; return updateDate;
} }
public void setUpdateDate(Date updateDate) { public void setUpdateDate(Date updateDate) {
this.updateDate = updateDate; this.updateDate = updateDate;
} }
@Transient @Transient
public String getOtpAuth() { public String getOtpAuth() {
return otpAuth; return otpAuth;
} }
public void setOtpAuth(String otpAuthURL) { public void setOtpAuth(String otpAuthURL) {
this.otpAuth = otpAuthURL; this.otpAuth = otpAuthURL;
} }
} }

View File

@ -9,47 +9,46 @@ import java.util.Date;
@Entity @Entity
@Table(name = "META_CRAWLER", schema = "public") @Table(name = "META_CRAWLER", schema = "public")
public class MetaCrawler { public class MetaCrawler {
private Short id; private Short id;
private Date createDate; private Date createDate;
private String name; private String name;
private String description; private String description;
@Id @Id
public Short getId() { public Short getId() {
return id; return id;
} }
public void setId(Short id) { public void setId(Short id) {
this.id = id; this.id = id;
} }
@Temporal(TemporalType.TIMESTAMP) @Temporal(TemporalType.TIMESTAMP)
@Column(name="CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) @Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
public Date getCreateDate() { public Date getCreateDate() {
return createDate; return createDate;
} }
public void setCreateDate(Date createDate) { public void setCreateDate(Date createDate) {
this.createDate = createDate; this.createDate = createDate;
} }
@Column(name = "NAME", nullable = true, length = 50) @Column(name = "NAME", nullable = true, length = 50)
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }
@Column(name = "DESCRIPTION", nullable = true, length = 100) @Column(name = "DESCRIPTION", nullable = true, length = 100)
public String getDescription() { public String getDescription() {
return description; return description;
} }
public void setDescription(String description) {
this.description = description;
}
public void setDescription(String description) {
this.description = description;
}
} }

View File

@ -9,159 +9,160 @@ import java.util.Date;
@Entity @Entity
@Table(name = "META_CRAWLER_INPUT_ITEM", schema = "public") @Table(name = "META_CRAWLER_INPUT_ITEM", schema = "public")
public class MetaCrawlerInputItem { public class MetaCrawlerInputItem {
private Integer id; private Integer id;
private MetaInputType inputType; private MetaInputType metaInputType;
private MetaCrawler crawler; private MetaCrawler metaCrawler;
private String description; private String description;
private String name; private String name;
private Date createDate; private Date createDate;
private Boolean required; private Boolean required;
private String defaultValue; private String defaultValue;
private String pattern; private String pattern;
private String keyName; private String keyName;
private String keyValue; private String keyValue;
@Id @Id
public Integer getId() { public Integer getId() {
return id; return id;
} }
public void setId(Integer id) { public void setId(Integer id) {
this.id = id; this.id = id;
} }
@ManyToOne
@JoinColumn(name = "META_INPUT_TYPE_ID", nullable = false)
public MetaInputType getMetaInputType() {
return metaInputType;
}
@ManyToOne public void setMetaInputType(MetaInputType metaInputType) {
@JoinColumn(name = "TYPE_ID", nullable = false) this.metaInputType = metaInputType;
public MetaInputType getInputType() { }
return inputType;
}
public void setInputType(MetaInputType inputType) { @ManyToOne
this.inputType = inputType; @JoinColumn(name = "META_CRAWLER_ID", nullable = false)
} public MetaCrawler getMetaCrawler() {
return metaCrawler;
}
@ManyToOne public void setMetaCrawler(MetaCrawler metaCrawler) {
@JoinColumn(name = "CRAWLER_ID", nullable = false) this.metaCrawler = metaCrawler;
public MetaCrawler getCrawler() { }
return crawler;
}
public void setCrawler(MetaCrawler crawler) { @Column(name = "DESCRIPTION", nullable = true, length = 50)
this.crawler = crawler; public String getDescription() {
} return description;
}
@Column(name = "DESCRIPTION", nullable = true, length = 50) public void setDescription(String description) {
public String getDescription() { this.description = description;
return description; }
}
public void setDescription(String description) { @Column(name = "NAME", nullable = true, length = 50)
this.description = description; public String getName() {
} return name;
}
@Column(name = "NAME", nullable = true, length = 50) public void setName(String name) {
public String getName() { this.name = name;
return name; }
}
public void setName(String name) { @Temporal(TemporalType.TIMESTAMP)
this.name = name; @Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
} public Date getCreateDate() {
return createDate;
}
@Temporal(TemporalType.TIMESTAMP) public void setCreateDate(Date createDate) {
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) this.createDate = createDate;
public Date getCreateDate() { }
return createDate;
}
public void setCreateDate(Date createDate) { @Column(name = "REQUIRED", nullable = false)
this.createDate = createDate; public Boolean isRequired() {
} return required;
}
@Column(name = "REQUIRED", nullable = false) public void setRequired(Boolean required) {
public Boolean isRequired() { this.required = required;
return required; }
}
public void setRequired(Boolean required) { @Column(name = "DEFAULT_VALUE", nullable = true, length = 50)
this.required = required; public String getDefaultValue() {
} return defaultValue;
}
@Column(name = "DEFAULT_VALUE", nullable = true, length = 50) public void setDefaultValue(String defaultValue) {
public String getDefaultValue() { this.defaultValue = defaultValue;
return defaultValue; }
}
public void setDefaultValue(String defaultValue) { @Column(name = "PATTERN", nullable = true, length = 50)
this.defaultValue = defaultValue; public String getPattern() {
} return pattern;
}
public void setPattern(String pattern) {
this.pattern = pattern;
}
@Column(name = "PATTERN", nullable = true, length = 50) @Column(name = "KEY_NAME", nullable = true, length = 50)
public String getPattern() { public String getKeyName() {
return pattern; return keyName;
} }
public void setPattern(String pattern) { public void setKeyName(String keyName) {
this.pattern = pattern; this.keyName = keyName;
} }
@Column(name = "KEY_VALUE", nullable = true, length = 50)
public String getKeyValue() {
return keyValue;
}
@Column(name = "KEY_NAME", nullable = true, length = 50) public void setKeyValue(String keyValue) {
public String getKeyName() { this.keyValue = keyValue;
return keyName; }
}
public void setKeyName(String keyName) { // @Override
this.keyName = keyName; // public Boolean equals(Object o) {
} // if (this == o) return true;
// if (o == null || getClass() != o.getClass()) return false;
//
@Column(name = "KEY_VALUE", nullable = true, length = 50) // MetaCrawlerInputItem that = (MetaCrawlerInputItem) o;
public String getKeyValue() { //
return keyValue; // if (id != that.id) return false;
} // if (typeId != that.typeId) return false;
// if (crawlerId != that.crawlerId) return false;
public void setKeyValue(String keyValue) { // if (required != that.required) return false;
this.keyValue = keyValue; // if (desc != null ? !desc.equals(that.desc) : that.desc != null) return false;
} // if (name != null ? !name.equals(that.name) : that.name != null) return false;
// if (createDate != null ? !createDate.equals(that.createDate) :
// @Override // that.createDate != null) return false;
// public Boolean equals(Object o) { // if (defaultValue != null ? !defaultValue.equals(that.defaultValue) :
// if (this == o) return true; // that.defaultValue != null) return false;
// if (o == null || getClass() != o.getClass()) return false; // if (pattern != null ? !pattern.equals(that.pattern) : that.pattern != null)
// // return false;
// MetaCrawlerInputItem that = (MetaCrawlerInputItem) o; // if (keyName != null ? !keyName.equals(that.keyName) : that.keyName != null)
// // return false;
// if (id != that.id) return false; // if (keyValue != null ? !keyValue.equals(that.keyValue) : that.keyValue !=
// if (typeId != that.typeId) return false; // null) return false;
// if (crawlerId != that.crawlerId) return false; //
// if (required != that.required) return false; // return true;
// if (desc != null ? !desc.equals(that.desc) : that.desc != null) return false; // }
// if (name != null ? !name.equals(that.name) : that.name != null) return false; //
// if (createDate != null ? !createDate.equals(that.createDate) : that.createDate != null) return false; // @Override
// if (defaultValue != null ? !defaultValue.equals(that.defaultValue) : that.defaultValue != null) return false; // public int hashCode() {
// if (pattern != null ? !pattern.equals(that.pattern) : that.pattern != null) return false; // int result = id;
// if (keyName != null ? !keyName.equals(that.keyName) : that.keyName != null) return false; // result = 31 * result + (int) typeId;
// if (keyValue != null ? !keyValue.equals(that.keyValue) : that.keyValue != null) return false; // result = 31 * result + (int) crawlerId;
// // result = 31 * result + (desc != null ? desc.hashCode() : 0);
// return true; // result = 31 * result + (name != null ? name.hashCode() : 0);
// } // result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
// // result = 31 * result + (required ? 1 : 0);
// @Override // result = 31 * result + (defaultValue != null ? defaultValue.hashCode() : 0);
// public int hashCode() { // result = 31 * result + (pattern != null ? pattern.hashCode() : 0);
// int result = id; // result = 31 * result + (keyName != null ? keyName.hashCode() : 0);
// result = 31 * result + (int) typeId; // result = 31 * result + (keyValue != null ? keyValue.hashCode() : 0);
// result = 31 * result + (int) crawlerId; // return result;
// result = 31 * result + (desc != null ? desc.hashCode() : 0); // }
// result = 31 * result + (name != null ? name.hashCode() : 0);
// result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
// result = 31 * result + (required ? 1 : 0);
// result = 31 * result + (defaultValue != null ? defaultValue.hashCode() : 0);
// result = 31 * result + (pattern != null ? pattern.hashCode() : 0);
// result = 31 * result + (keyName != null ? keyName.hashCode() : 0);
// result = 31 * result + (keyValue != null ? keyValue.hashCode() : 0);
// return result;
// }
} }

View File

@ -7,42 +7,42 @@ import java.util.Date;
@Table(name = "META_EMAIL_STATUS", schema = "public") @Table(name = "META_EMAIL_STATUS", schema = "public")
public class MetaEmailStatus { public class MetaEmailStatus {
private Integer id; private Integer id;
private String name; private String name;
private Date createDate; private Date createDate;
public MetaEmailStatus(){} public MetaEmailStatus() {
}
public MetaEmailStatus(Integer id) { public MetaEmailStatus(Integer id) {
this.id = id; this.id = id;
} }
@Id @Id
public Integer getId() { public Integer getId() {
return id; return id;
} }
public void setId(Integer id) { public void setId(Integer id) {
this.id = id; this.id = id;
} }
@Column(name = "NAME", nullable = true, length = 50)
public String getName() {
return name;
}
@Column(name = "NAME", nullable = true, length = 50) public void setName(String name) {
public String getName() { this.name = name;
return name; }
}
public void setName(String name) { @Temporal(TemporalType.TIMESTAMP)
this.name = name; @Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
} public Date getCreateDate() {
return createDate;
}
@Temporal(TemporalType.TIMESTAMP) public void setCreateDate(Date createDate) {
@Column(name="CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) this.createDate = createDate;
public Date getCreateDate() { }
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
} }

View File

@ -9,45 +9,44 @@ import java.util.Date;
@Entity @Entity
@Table(name = "META_HISTORY_TYPE", schema = "public") @Table(name = "META_HISTORY_TYPE", schema = "public")
public class MetaHistoryType { public class MetaHistoryType {
private Integer id; private Integer id;
private String name; private String name;
private Date createDate; private Date createDate;
public MetaHistoryType() { public MetaHistoryType() {
} }
public MetaHistoryType(Integer id) { public MetaHistoryType(Integer id) {
this.id = id; this.id = id;
} }
@Id @Id
public Integer getId() { public Integer getId() {
return id; return id;
} }
public void setId(Integer id) { public void setId(Integer id) {
this.id = id; this.id = id;
} }
@Column(name = "NAME", nullable = true, length = 50)
public String getName() {
return name;
}
@Column(name = "NAME", nullable = true, length = 50) public void setName(String name) {
public String getName() { this.name = name;
return name; }
}
public void setName(String name) { @Temporal(TemporalType.TIMESTAMP)
this.name = name; @Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
} public Date getCreateDate() {
return createDate;
}
@Temporal(TemporalType.TIMESTAMP) public void setCreateDate(Date createDate) {
@Column(name="CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) this.createDate = createDate;
public Date getCreateDate() { }
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
} }

View File

@ -9,37 +9,40 @@ import java.util.Date;
@Entity @Entity
@Table(name = "META_INFRA_TYPE", schema = "public") @Table(name = "META_INFRA_TYPE", schema = "public")
public class MetaInfraType { public class MetaInfraType {
private Integer id; private Integer id;
private String name; private String name;
private Date createDate; private Date createDate;
@Id public MetaInfraType(Integer id) {
public Integer getId() { this.id = id;
return id; }
}
public void setId(Integer id) { @Id
this.id = id; public Integer getId() {
} return id;
}
public void setId(Integer id) {
this.id = id;
}
@Column(name = "NAME", nullable = true, length = 50) @Column(name = "NAME", nullable = true, length = 50)
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }
@Temporal(TemporalType.TIMESTAMP) @Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_DATE", nullable = false) @Column(name = "CREATE_DATE", nullable = false)
public Date getCreateDate() { public Date getCreateDate() {
return createDate; return createDate;
} }
public void setCreateDate(Date createDate) { public void setCreateDate(Date createDate) {
this.createDate = createDate; this.createDate = createDate;
} }
} }

View File

@ -9,98 +9,89 @@ import java.util.Date;
@Entity @Entity
@Table(name = "META_INFRA_VENDOR", schema = "public") @Table(name = "META_INFRA_VENDOR", schema = "public")
public class MetaInfraVendor { public class MetaInfraVendor {
private Integer id; private Integer id;
private String name; private String name;
private Date createDate; private Date createDate;
private MetaInfraType infraType; private MetaInfraType metaInfraType;
@Id @Id
public Integer getId() { public Integer getId() {
return id; return id;
}
public void setId(Integer id) {
this.id = id;
}
@Column(name = "NAME", nullable = true, length = 50)
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
@ManyToOne
@JoinColumn(name = "META_INFRA_TYPE_ID", nullable = false)
public MetaInfraType getMetaInfraType() {
return metaInfraType;
}
public void setMetaInfraType(MetaInfraType metaInfraType) {
this.metaInfraType = metaInfraType;
}
public static MetaInfraVendor CreateInfraVendorByOS(String osName) {
MetaInfraVendor vendor = new MetaInfraVendor();
if (osName == null || osName.length() <= 0) {
vendor.setId(24); // FIXME: Unknown
return vendor;
} }
public void setId(Integer id) { if (osName.equals("Windows")) {
this.id = id; vendor.setId(26);
} else if (osName.equals("Linux")) {
vendor.setId(28); // ubuntu
} else {
vendor.setId(24); // FIXME: Unknown
} }
return vendor;
}
@Column(name = "NAME", nullable = true, length = 50) public static MetaInfraVendor CreateInfraVendorByPort(int portNumber) {
public String getName() { return null;
return name; }
public static MetaInfraVendor CreateInfraVendorByService(String serviceName) {
MetaInfraVendor vendor = new MetaInfraVendor();
if (serviceName.equals("mysql")) {
vendor.setId(11);
} else if (serviceName.equals("portgresql")) {
vendor.setId(15);
} else if (serviceName.equals("wmi")) {
vendor.setId(23);
} else if (serviceName.equals("snmpv2")) {
vendor.setId(20);
} else {
vendor.setId(24); // unknown
} }
public void setName(String name) { return vendor;
this.name = name; }
}
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
@ManyToOne
@JoinColumn(name = "TYPE_ID", nullable=false)
public MetaInfraType getInfraType() {
return infraType;
}
public void setInfraType(MetaInfraType infraType) {
this.infraType = infraType;
}
public static MetaInfraVendor CreateInfraVendorByOS(String osName) {
MetaInfraVendor vendor = new MetaInfraVendor();
if(osName == null || osName.length() <= 0) {
vendor.setId(24); // FIXME: Unknown
return vendor;
}
if(osName.equals("Windows")) {
vendor.setId(26);
}
else if(osName.equals("Linux")) {
vendor.setId(28); // ubuntu
} else {
vendor.setId(24); // FIXME: Unknown
}
return vendor;
}
public static MetaInfraVendor CreateInfraVendorByPort(int portNumber) {
return null;
}
public static MetaInfraVendor CreateInfraVendorByService(String serviceName) {
MetaInfraVendor vendor = new MetaInfraVendor();
if(serviceName.equals("mysql")) {
vendor.setId(11);
}
else if(serviceName.equals("portgresql")) {
vendor.setId(15);
}
else if(serviceName.equals("wmi")) {
vendor.setId(23);
}
else if(serviceName.equals("snmpv2")) {
vendor.setId(20);
}
else {
vendor.setId(24); // unknown
}
return vendor;
}
} }

View File

@ -9,47 +9,45 @@ import java.util.Date;
@Entity @Entity
@Table(name = "META_INPUT_TYPE", schema = "public") @Table(name = "META_INPUT_TYPE", schema = "public")
public class MetaInputType { public class MetaInputType {
private Short id; private Short id;
private String name; private String name;
private String description; private String description;
private Date createDate; private Date createDate;
@Id @Id
public Short getId() { public Short getId() {
return id; return id;
} }
public void setId(Short id) { public void setId(Short id) {
this.id = id; this.id = id;
} }
@Column(name = "NAME", nullable = true, length = 50)
public String getName() {
return name;
}
@Column(name = "NAME", nullable = true, length = 50) public void setName(String name) {
public String getName() { this.name = name;
return name; }
}
public void setName(String name) { @Column(name = "DESCRIPTION", nullable = true, length = 50)
this.name = name; public String getDescription() {
} return description;
}
public void setDescription(String description) {
this.description = description;
}
@Column(name = "DESCRIPTION", nullable = true, length = 50) @Temporal(TemporalType.TIMESTAMP)
public String getDescription() { @Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
return description; public Date getCreateDate() {
} return createDate;
}
public void setDescription(String description) { public void setCreateDate(Date createDate) {
this.description = description; this.createDate = createDate;
} }
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
} }

View File

@ -11,34 +11,33 @@ import javax.persistence.Table;
@Entity @Entity
@Table(name = "META_MEMBER_STATUS", schema = "public") @Table(name = "META_MEMBER_STATUS", schema = "public")
public class MetaMemberStatus { public class MetaMemberStatus {
private Short id; private Short id;
private String name; private String name;
public MetaMemberStatus() { public MetaMemberStatus() {
} }
public MetaMemberStatus(Short id) { public MetaMemberStatus(Short id) {
this.id = id; this.id = id;
} }
@Id @Id
public Short getId() { public Short getId() {
return id; return id;
} }
public void setId(Short id) { public void setId(Short id) {
this.id = id; this.id = id;
} }
@Column(name = "Name", nullable = false, length = 10)
@Column(name = "Name", nullable = false, length = 10) public String getName() {
public String getName() { return name;
return name; }
}
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }
} }

View File

@ -11,33 +11,32 @@ import javax.persistence.Table;
@Entity @Entity
@Table(name = "META_NOAUTH_PROBE_STATUS", schema = "public") @Table(name = "META_NOAUTH_PROBE_STATUS", schema = "public")
public class MetaNoAuthProbeStatus { public class MetaNoAuthProbeStatus {
private Short id; private Short id;
private String name; private String name;
public MetaNoAuthProbeStatus() { public MetaNoAuthProbeStatus() {
} }
public MetaNoAuthProbeStatus(Short id) { public MetaNoAuthProbeStatus(Short id) {
this.id = id; this.id = id;
} }
@Id @Id
public Short getId() { public Short getId() {
return id; return id;
} }
public void setId(Short id) { public void setId(Short id) {
this.id = id; this.id = id;
} }
@Column(name = "Name", nullable = false, length = 10)
public String getName() {
return name;
}
@Column(name = "Name", nullable = false, length = 10) public void setName(String name) {
public String getName() { this.name = name;
return name; }
}
public void setName(String name) {
this.name = name;
}
} }

View File

@ -9,46 +9,45 @@ import java.util.Date;
@Entity @Entity
@Table(name = "META_NOTIFICATION", schema = "public") @Table(name = "META_NOTIFICATION", schema = "public")
public class MetaNotification { public class MetaNotification {
private Long id; private Long id;
private Date createDate; private Date createDate;
private String name; private String name;
private String description; private String description;
@Id @Id
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
@Temporal(TemporalType.TIMESTAMP) @Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_DATE", nullable = false) @Column(name = "CREATE_DATE", nullable = false)
public Date getCreateDate() { public Date getCreateDate() {
return createDate; return createDate;
} }
public void setCreateDate(Date createDate) { public void setCreateDate(Date createDate) {
this.createDate = createDate; this.createDate = createDate;
} }
@Column(name = "NAME", nullable = true, length = 50)
public String getName() {
return name;
}
@Column(name = "NAME", nullable = true, length = 50) public void setName(String name) {
public String getName() { this.name = name;
return name; }
}
public void setName(String name) { @Column(name = "DESCRIPTION", nullable = true, length = 50)
this.name = name; public String getDescription() {
} return description;
}
@Column(name = "DESCRIPTION", nullable = true, length = 50) public void setDescription(String description) {
public String getDescription() { this.description = description;
return description; }
}
public void setDescription(String description) {
this.description = description;
}
} }

View File

@ -9,37 +9,36 @@ import java.util.Date;
@Entity @Entity
@Table(name = "META_PROBE_ARCHITECTURE", schema = "public") @Table(name = "META_PROBE_ARCHITECTURE", schema = "public")
public class MetaProbeArchitecture { public class MetaProbeArchitecture {
private Short id; private Short id;
private String architecture; private String architecture;
private Date createDate; private Date createDate;
@Id @Id
public Short getId() { public Short getId() {
return id; return id;
} }
public void setId(Short id) { public void setId(Short id) {
this.id = id; this.id = id;
} }
@Column(name = "ARCHITECTURE", nullable = true, length = 10)
public String getArchitecture() {
return architecture;
}
@Column(name = "ARCHITECTURE", nullable = true, length = 10) public void setArchitecture(String architecture) {
public String getArchitecture() { this.architecture = architecture;
return architecture; }
}
public void setArchitecture(String architecture) { @Temporal(TemporalType.TIMESTAMP)
this.architecture = architecture; @Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
} public Date getCreateDate() {
return createDate;
}
@Temporal(TemporalType.TIMESTAMP) public void setCreateDate(Date createDate) {
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) this.createDate = createDate;
public Date getCreateDate() { }
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
} }

View File

@ -9,37 +9,36 @@ import java.util.Date;
@Entity @Entity
@Table(name = "META_PROBE_OS", schema = "public") @Table(name = "META_PROBE_OS", schema = "public")
public class MetaProbeOs { public class MetaProbeOs {
private Short id; private Short id;
private String name; private String name;
private Date createDate; private Date createDate;
@Id @Id
public Short getId() { public Short getId() {
return id; return id;
} }
public void setId(Short id) { public void setId(Short id) {
this.id = id; this.id = id;
} }
@Column(name = "NAME", nullable = true, length = 50)
public String getName() {
return name;
}
@Column(name = "NAME", nullable = true, length = 50) public void setName(String name) {
public String getName() { this.name = name;
return name; }
}
public void setName(String name) { @Temporal(TemporalType.TIMESTAMP)
this.name = name; @Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
} public Date getCreateDate() {
return createDate;
}
@Temporal(TemporalType.TIMESTAMP) public void setCreateDate(Date createDate) {
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) this.createDate = createDate;
public Date getCreateDate() { }
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
} }

View File

@ -9,60 +9,60 @@ import java.util.Date;
@Entity @Entity
@Table(name = "META_PROBE_PACKAGE", schema = "public") @Table(name = "META_PROBE_PACKAGE", schema = "public")
public class MetaProbePackage { public class MetaProbePackage {
private Long id; private Long id;
private MetaProbeVersion version; private MetaProbeVersion metaProbeVersion;
private MetaProbeOs os; private MetaProbeOs metaProbeOs;
private MetaProbeArchitecture architecture; private MetaProbeArchitecture metaProbeArchitecture;
private Date createDate; private Date createDate;
@Id @Id
@GeneratedValue(strategy= GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
@ManyToOne @ManyToOne
@JoinColumn(name = "VERSION_ID", nullable = false) @JoinColumn(name = "META_PROBE_VERSION_ID", nullable = false)
public MetaProbeVersion getVersion() { public MetaProbeVersion getMetaProbeVersion() {
return version; return metaProbeVersion;
} }
public void setVersion(MetaProbeVersion version) { public void setMetaProbeVersion(MetaProbeVersion metaProbeVersion) {
this.version = version; this.metaProbeVersion = metaProbeVersion;
} }
@ManyToOne @ManyToOne
@JoinColumn(name = "OS_ID", nullable = false) @JoinColumn(name = "META_PROBE_OS_ID", nullable = false)
public MetaProbeOs getOs() { public MetaProbeOs getMetaProbeOs() {
return os; return metaProbeOs;
} }
public void setOs(MetaProbeOs os) { public void setMetaProbeOs(MetaProbeOs metaProbeOs) {
this.os = os; this.metaProbeOs = metaProbeOs;
} }
@ManyToOne @ManyToOne
@JoinColumn(name = "ARCHITECTURE_ID", nullable = false) @JoinColumn(name = "META_PROBE_ARCHITECTURE_ID", nullable = false)
public MetaProbeArchitecture getArchitecture() { public MetaProbeArchitecture getMetaProbeArchitecture() {
return architecture; return metaProbeArchitecture;
} }
public void setArchitecture(MetaProbeArchitecture architecture) { public void setMetaProbeArchitecture(MetaProbeArchitecture metaProbeArchitecture) {
this.architecture = architecture; this.metaProbeArchitecture = metaProbeArchitecture;
} }
@Temporal(TemporalType.TIMESTAMP) @Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) @Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
public Date getCreateDate() { public Date getCreateDate() {
return createDate; return createDate;
} }
public void setCreateDate(Date createDate) { public void setCreateDate(Date createDate) {
this.createDate = createDate; this.createDate = createDate;
} }
} }

View File

@ -11,33 +11,32 @@ import javax.persistence.Table;
@Entity @Entity
@Table(name = "META_PROBE_STATUS", schema = "public") @Table(name = "META_PROBE_STATUS", schema = "public")
public class MetaProbeStatus { public class MetaProbeStatus {
private Short id; private Short id;
private String name; private String name;
public MetaProbeStatus() { public MetaProbeStatus() {
} }
public MetaProbeStatus(Short id) { public MetaProbeStatus(Short id) {
this.id = id; this.id = id;
} }
@Id @Id
public Short getId() { public Short getId() {
return id; return id;
} }
public void setId(Short id) { public void setId(Short id) {
this.id = id; this.id = id;
} }
@Column(name = "Name", nullable = false, length = 10)
public String getName() {
return name;
}
@Column(name = "Name", nullable = false, length = 10) public void setName(String name) {
public String getName() { this.name = name;
return name; }
}
public void setName(String name) {
this.name = name;
}
} }

View File

@ -9,48 +9,46 @@ import java.util.Date;
@Entity @Entity
@Table(name = "META_PROBE_TASK_TYPE", schema = "public") @Table(name = "META_PROBE_TASK_TYPE", schema = "public")
public class MetaProbeTaskType { public class MetaProbeTaskType {
private Short id; private Short id;
private String name; private String name;
private String description; private String description;
private Date createDate; private Date createDate;
@Id @Id
public Short getId() { public Short getId() {
return id; return id;
} }
public void setId(Short id) { public void setId(Short id) {
this.id = id; this.id = id;
} }
@Column(name = "NAME", nullable = false, length = 50)
public String getName() {
return name;
}
@Column(name = "NAME", nullable = false, length = 50) public void setName(String name) {
public String getName() { this.name = name;
return name; }
}
public void setName(String name) { @Column(name = "DESCRIPTION", nullable = false, length = 50)
this.name = name; public String getDescription() {
} return description;
}
@Column(name = "DESCRIPTION", nullable = false, length = 50) public void setDescription(String description) {
public String getDescription() { this.description = description;
return description; }
}
public void setDescription(String description) { @Temporal(TemporalType.TIMESTAMP)
this.description = description; @Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
} public Date getCreateDate() {
return createDate;
@Temporal(TemporalType.TIMESTAMP) }
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
} }

View File

@ -9,38 +9,37 @@ import java.util.Date;
@Entity @Entity
@Table(name = "META_PROBE_VERSION", schema = "public") @Table(name = "META_PROBE_VERSION", schema = "public")
public class MetaProbeVersion { public class MetaProbeVersion {
private Short id; private Short id;
private String version; private String version;
private Date createDate; private Date createDate;
@Id @Id
@GeneratedValue(strategy= GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
public Short getId() { public Short getId() {
return id; return id;
} }
public void setId(Short id) { public void setId(Short id) {
this.id = id; this.id = id;
} }
@Column(name = "VERSION", nullable = true, length = 10)
public String getVersion() {
return version;
}
@Column(name = "VERSION", nullable = true, length = 10) public void setVersion(String version) {
public String getVersion() { this.version = version;
return version; }
}
public void setVersion(String version) { @Temporal(TemporalType.TIMESTAMP)
this.version = version; @Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
} public Date getCreateDate() {
return createDate;
}
@Temporal(TemporalType.TIMESTAMP) public void setCreateDate(Date createDate) {
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) this.createDate = createDate;
public Date getCreateDate() { }
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
} }

View File

@ -1,6 +1,5 @@
package com.loafle.overflow.model.meta; package com.loafle.overflow.model.meta;
import javax.persistence.*; import javax.persistence.*;
import java.util.Date; import java.util.Date;
@ -11,109 +10,108 @@ import java.util.Date;
@Table(name = "META_SENSOR_DISPLAY_ITEM", schema = "public") @Table(name = "META_SENSOR_DISPLAY_ITEM", schema = "public")
public class MetaSensorDisplayItem { public class MetaSensorDisplayItem {
private Long id; private Long id;
private String key; private String key;
private String displayName; private String displayName;
private String description; private String description;
private MetaCrawler crawler; private MetaCrawler metaCrawler;
private MetaSensorItemUnit unit; private MetaSensorItemUnit metaSensorItemUnit;
private Date createDate; private Date createDate;
private Boolean isDefault; private Boolean isDefault;
private MetaSensorItemType itemType; private MetaSensorItemType metaSensorItemType;
public MetaSensorDisplayItem() { public MetaSensorDisplayItem() {
} }
public MetaSensorDisplayItem(Long id) {
this.id = id;
}
@Id public MetaSensorDisplayItem(Long id) {
public Long getId() { this.id = id;
return id; }
}
public void setId(Long id) { @Id
this.id = id; public Long getId() {
} return id;
}
@Column(name = "KEY", nullable = false) public void setId(Long id) {
public String getKey() { this.id = id;
return key; }
}
public void setKey(String key) { @Column(name = "KEY", nullable = false)
this.key = key; public String getKey() {
} return key;
}
@Column(name = "DISPLAY_NAME", nullable = false) public void setKey(String key) {
public String getDisplayName() { this.key = key;
return displayName; }
}
public void setDisplayName(String displayName) { @Column(name = "DISPLAY_NAME", nullable = false)
this.displayName = displayName; public String getDisplayName() {
} return displayName;
}
@Column(name = "DESCRIPTION", nullable = false) public void setDisplayName(String displayName) {
public String getDescription() { this.displayName = displayName;
return description; }
}
public void setDescription(String description) { @Column(name = "DESCRIPTION", nullable = false)
this.description = description; public String getDescription() {
} return description;
}
public void setDescription(String description) {
this.description = description;
}
@ManyToOne @ManyToOne
@JoinColumn(name = "CRAWLER_ID", nullable = false) @JoinColumn(name = "META_CRAWLER_ID", nullable = false)
public MetaCrawler getCrawler() { public MetaCrawler getMetaCrawler() {
return crawler; return metaCrawler;
} }
public void setCrawler(MetaCrawler crawler) { public void setMetaCrawler(MetaCrawler metaCrawler) {
this.crawler = crawler; this.metaCrawler = metaCrawler;
} }
@ManyToOne @ManyToOne
@JoinColumn(name = "UNIT_ID", nullable = true) @JoinColumn(name = "META_SENSOR_ITEM_UNIT_ID", nullable = true)
public MetaSensorItemUnit getUnit() { public MetaSensorItemUnit getMetaSensorItemUnit() {
return unit; return metaSensorItemUnit;
} }
public void setUnit(MetaSensorItemUnit unit) { public void setMetaSensorItemUnit(MetaSensorItemUnit metaSensorItemUnit) {
this.unit = unit; this.metaSensorItemUnit = metaSensorItemUnit;
} }
@Temporal(TemporalType.TIMESTAMP) @Temporal(TemporalType.TIMESTAMP)
@Column(name="CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) @Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
public Date getCreateDate() { public Date getCreateDate() {
return createDate; return createDate;
} }
public void setCreateDate(Date createDate) { public void setCreateDate(Date createDate) {
this.createDate = createDate; this.createDate = createDate;
} }
@Basic
@Column(name = "IS_DEFAULT", nullable = false, columnDefinition = "Boolean default false")
public Boolean getDefault() {
return isDefault;
}
@Basic public void setDefault(Boolean aDefault) {
@Column(name="IS_DEFAULT", nullable = false, columnDefinition = "Boolean default false") isDefault = aDefault;
public Boolean getDefault() { }
return isDefault;
}
public void setDefault(Boolean aDefault) { @ManyToOne
isDefault = aDefault; @JoinColumn(name = "META_SENSOR_ITEM_TYPE_ID", nullable = false)
} public MetaSensorItemType getMetaSensorItemType() {
return metaSensorItemType;
}
@ManyToOne public void setMetaSensorItemType(MetaSensorItemType metaSensorItemType) {
@JoinColumn(name = "TYPE_ID", nullable = false) this.metaSensorItemType = metaSensorItemType;
public MetaSensorItemType getItemType() { }
return itemType;
}
public void setItemType(MetaSensorItemType itemType) {
this.itemType = itemType;
}
} }

View File

@ -9,37 +9,37 @@ import javax.persistence.*;
@Table(name = "META_SENSOR_DISPLAY_MAPPING", schema = "public") @Table(name = "META_SENSOR_DISPLAY_MAPPING", schema = "public")
public class MetaSensorDisplayMapping { public class MetaSensorDisplayMapping {
private Long id; private Long id;
private MetaSensorDisplayItem displayItem; private MetaSensorDisplayItem metaSensorDisplayItem;
private MetaSensorItemKey itemKey; private MetaSensorItemKey metaSensorItemKey;
@Id @Id
@GeneratedValue(strategy= GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
@ManyToOne @ManyToOne
@JoinColumn(name = "DISPLAY_ITEM_ID", nullable = false) @JoinColumn(name = "META_SENSOR_DISPLAY_ITEM_ID", nullable = false)
public MetaSensorDisplayItem getDisplayItem() { public MetaSensorDisplayItem getMetaSensorDisplayItem() {
return displayItem; return metaSensorDisplayItem;
} }
public void setDisplayItem(MetaSensorDisplayItem displayItem) { public void setMetaSensorDisplayItem(MetaSensorDisplayItem metaSensorDisplayItem) {
this.displayItem = displayItem; this.metaSensorDisplayItem = metaSensorDisplayItem;
} }
@ManyToOne @ManyToOne
@JoinColumn(name = "ITEM_KEY_ID", nullable = false) @JoinColumn(name = "META_SENSOR_ITEM_KEY_ID", nullable = false)
public MetaSensorItemKey getItemKey() { public MetaSensorItemKey getMetaSensorItemKey() {
return itemKey; return metaSensorItemKey;
} }
public void setItemKey(MetaSensorItemKey itemKey) { public void setMetaSensorItemKey(MetaSensorItemKey metaSensorItemKey) {
this.itemKey = itemKey; this.metaSensorItemKey = metaSensorItemKey;
} }
} }

View File

@ -9,46 +9,45 @@ import java.util.Date;
@Entity @Entity
@Table(name = "META_SENSOR_ITEM", schema = "public") @Table(name = "META_SENSOR_ITEM", schema = "public")
public class MetaSensorItem { public class MetaSensorItem {
private Integer id; private Integer id;
private String key; private String key;
private String name; private String name;
private Date createDate; private Date createDate;
@Id @Id
public Integer getId() { public Integer getId() {
return id; return id;
} }
public void setId(Integer id) { public void setId(Integer id) {
this.id = id; this.id = id;
} }
@Column(name = "KEY", nullable = true, length = 100)
public String getKey() {
return key;
}
@Column(name = "KEY", nullable = true, length = 100) public void setKey(String key) {
public String getKey() { this.key = key;
return key; }
}
public void setKey(String key) { @Column(name = "NAME", nullable = true, length = 100)
this.key = key; public String getName() {
} return name;
}
@Column(name = "NAME", nullable = true, length = 100) public void setName(String name) {
public String getName() { this.name = name;
return name; }
}
public void setName(String name) { @Temporal(TemporalType.TIMESTAMP)
this.name = name; @Column(name = "CREATE_DATE", nullable = false)
} public Date getCreateDate() {
return createDate;
}
@Temporal(TemporalType.TIMESTAMP) public void setCreateDate(Date createDate) {
@Column(name = "CREATE_DATE", nullable = false) this.createDate = createDate;
public Date getCreateDate() { }
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
} }

View File

@ -9,89 +9,89 @@ import java.util.Date;
@Entity @Entity
@Table(name = "META_SENSOR_ITEM_KEY", schema = "public") @Table(name = "META_SENSOR_ITEM_KEY", schema = "public")
public class MetaSensorItemKey { public class MetaSensorItemKey {
private Long id; private Long id;
private MetaSensorItem item; private MetaSensorItem metaSensorItem;
private String key; private String key;
private String froms; private String froms;
private String option; private String option;
private MetaCrawler crawler; private MetaCrawler metaCrawler;
private Date createDate; private Date createDate;
private MetaSensorItemUnit unit; private MetaSensorItemUnit metaSensorItemUnit;
@Id @Id
@GeneratedValue(strategy= GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
@ManyToOne @ManyToOne
@JoinColumn(name = "ITEM_ID", nullable = false) @JoinColumn(name = "META_SENSOR_ITEM_ID", nullable = false)
public MetaSensorItem getItem() { public MetaSensorItem getMetaSensorItem() {
return item; return metaSensorItem;
} }
public void setItem(MetaSensorItem item) { public void setMetaSensorItem(MetaSensorItem metaSensorItem) {
this.item = item; this.metaSensorItem = metaSensorItem;
} }
@Column(name = "KEY", nullable = false, length = 100) @Column(name = "KEY", nullable = false, length = 100)
public String getKey() { public String getKey() {
return key; return key;
} }
public void setKey(String key) { public void setKey(String key) {
this.key = key; this.key = key;
} }
@Column(name = "FROMS", nullable = false, length = 100) @Column(name = "FROMS", nullable = false, length = 100)
public String getFroms() { public String getFroms() {
return froms; return froms;
} }
public void setFroms(String froms) { public void setFroms(String froms) {
this.froms = froms; this.froms = froms;
} }
@Column(name = "OPTION_JSON", nullable = true) @Column(name = "OPTION_JSON", nullable = true)
public String getOption() { public String getOption() {
return option; return option;
} }
public void setOption(String option) { public void setOption(String option) {
this.option = option; this.option = option;
} }
@ManyToOne @ManyToOne
@JoinColumn(name = "CRAWLER_ID", nullable = false) @JoinColumn(name = "META_CRAWLER_ID", nullable = false)
public MetaCrawler getCrawler() { public MetaCrawler getMetaCrawler() {
return crawler; return metaCrawler;
} }
public void setCrawler(MetaCrawler crawler) { public void setMetaCrawler(MetaCrawler metaCrawler) {
this.crawler = crawler; this.metaCrawler = metaCrawler;
} }
@Temporal(TemporalType.TIMESTAMP) @Temporal(TemporalType.TIMESTAMP)
@Column(name="CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) @Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
public Date getCreateDate() { public Date getCreateDate() {
return createDate; return createDate;
} }
public void setCreateDate(Date createDate) { public void setCreateDate(Date createDate) {
this.createDate = createDate; this.createDate = createDate;
} }
@ManyToOne @ManyToOne
@JoinColumn(name = "UNIT_ID", nullable = true) @JoinColumn(name = "META_SENSOR_ITEM_UNIT_ID", nullable = true)
public MetaSensorItemUnit getUnit() { public MetaSensorItemUnit getMetaSensorItemUnit() {
return unit; return metaSensorItemUnit;
} }
public void setUnit(MetaSensorItemUnit unit) { public void setMetaSensorItemUnit(MetaSensorItemUnit metaSensorItemUnit) {
this.unit = unit; this.metaSensorItemUnit = metaSensorItemUnit;
} }
} }

View File

@ -9,55 +9,53 @@ import java.util.Date;
@Entity @Entity
@Table(name = "META_SENSOR_ITEM_TYPE", schema = "public") @Table(name = "META_SENSOR_ITEM_TYPE", schema = "public")
public class MetaSensorItemType { public class MetaSensorItemType {
private Short id; private Short id;
private String name; private String name;
private String description; private String description;
private Date createDate; private Date createDate;
public MetaSensorItemType() { public MetaSensorItemType() {
} }
public MetaSensorItemType(Short id) { public MetaSensorItemType(Short id) {
this.id = id; this.id = id;
} }
@Id @Id
public Short getId() { public Short getId() {
return id; return id;
} }
public void setId(Short id) { public void setId(Short id) {
this.id = id; this.id = id;
} }
@Column(name = "NAME", nullable = true, length = 50)
public String getName() {
return name;
}
@Column(name = "NAME", nullable = true, length = 50) public void setName(String name) {
public String getName() { this.name = name;
return name; }
}
public void setName(String name) { @Column(name = "DESCRIPTION", nullable = true, length = 50)
this.name = name; public String getDescription() {
} return description;
}
public void setDescription(String description) {
this.description = description;
}
@Column(name = "DESCRIPTION", nullable = true, length = 50) @Temporal(TemporalType.TIMESTAMP)
public String getDescription() { @Column(name = "CREATE_DATE", nullable = false)
return description; public Date getCreateDate() {
} return createDate;
}
public void setDescription(String description) { public void setCreateDate(Date createDate) {
this.description = description; this.createDate = createDate;
} }
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_DATE", nullable = false)
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
} }

View File

@ -9,45 +9,45 @@ import java.util.Date;
@Entity @Entity
@Table(name = "META_SENSOR_ITEM_UNIT", schema = "public") @Table(name = "META_SENSOR_ITEM_UNIT", schema = "public")
public class MetaSensorItemUnit { public class MetaSensorItemUnit {
private Short id; private Short id;
private String unit; private String unit;
private Date createDate; private Date createDate;
private String mark; private String mark;
@Id @Id
public Short getId() { public Short getId() {
return id; return id;
} }
public void setId(Short id) { public void setId(Short id) {
this.id = id; this.id = id;
} }
@Column(name = "UNIT", nullable = false) @Column(name = "UNIT", nullable = false)
public String getUnit() { public String getUnit() {
return unit; return unit;
} }
public void setUnit(String unit) { public void setUnit(String unit) {
this.unit = unit; this.unit = unit;
} }
@Temporal(TemporalType.TIMESTAMP) @Temporal(TemporalType.TIMESTAMP)
@Column(name="CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) @Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
public Date getCreateDate() { public Date getCreateDate() {
return createDate; return createDate;
} }
public void setCreateDate(Date createDate) { public void setCreateDate(Date createDate) {
this.createDate = createDate; this.createDate = createDate;
} }
@Column(name = "MARK", nullable = false) @Column(name = "MARK", nullable = false)
public String getMark() { public String getMark() {
return mark; return mark;
} }
public void setMark(String mark) { public void setMark(String mark) {
this.mark = mark; this.mark = mark;
} }
} }

View File

@ -11,33 +11,32 @@ import javax.persistence.Table;
@Entity @Entity
@Table(name = "META_SENSOR_STATUS", schema = "public") @Table(name = "META_SENSOR_STATUS", schema = "public")
public class MetaSensorStatus { public class MetaSensorStatus {
private Short id; private Short id;
private String name; private String name;
public MetaSensorStatus() { public MetaSensorStatus() {
} }
public MetaSensorStatus(Short id) { public MetaSensorStatus(Short id) {
this.id = id; this.id = id;
} }
@Id @Id
public Short getId() { public Short getId() {
return id; return id;
} }
public void setId(Short id) { public void setId(Short id) {
this.id = id; this.id = id;
} }
@Column(name = "Name", nullable = false, length = 10)
public String getName() {
return name;
}
@Column(name = "Name", nullable = false, length = 10) public void setName(String name) {
public String getName() { this.name = name;
return name; }
}
public void setName(String name) {
this.name = name;
}
} }

View File

@ -9,68 +9,68 @@ import java.util.Date;
@Entity @Entity
@Table(name = "META_VENDOR_CRAWLER", schema = "public") @Table(name = "META_VENDOR_CRAWLER", schema = "public")
public class MetaVendorCrawler { public class MetaVendorCrawler {
private Integer id; private Integer id;
private MetaCrawler crawler; private MetaCrawler metaCrawler;
private MetaInfraVendor infraVendor; private MetaInfraVendor metaInfraVendor;
private Date createDate; private Date createDate;
@Id @Id
public Integer getId() { public Integer getId() {
return id; return id;
} }
public void setId(Integer id) { public void setId(Integer id) {
this.id = id; this.id = id;
} }
@ManyToOne @ManyToOne
@JoinColumn(name = "CRAWLER_ID", nullable = false) @JoinColumn(name = "META_CRAWLER_ID", nullable = false)
public MetaCrawler getCrawler() { public MetaCrawler getMetaCrawler() {
return crawler; return metaCrawler;
} }
public void setCrawler(MetaCrawler crawler) { public void setMetaCrawler(MetaCrawler metaCrawler) {
this.crawler = crawler; this.metaCrawler = metaCrawler;
} }
@ManyToOne @ManyToOne
@JoinColumn(name = "VENDOR_ID", nullable = false) @JoinColumn(name = "META_INFRA_VENDOR_ID", nullable = false)
public MetaInfraVendor getInfraVendor() { public MetaInfraVendor getMetaInfraVendor() {
return infraVendor; return metaInfraVendor;
} }
public void setInfraVendor(MetaInfraVendor infraVendor) { public void setMetaInfraVendor(MetaInfraVendor metaInfraVendor) {
this.infraVendor = infraVendor; this.metaInfraVendor = metaInfraVendor;
} }
// @Basic // @Basic
// @Column(name = "CRAWLER_ID", nullable = false) // @Column(name = "CRAWLER_ID", nullable = false)
// public short getCrawlerId() { // public short getCrawlerId() {
// return crawlerId; // return crawlerId;
// } // }
// //
// public void setCrawlerId(short crawlerId) { // public void setCrawlerId(short crawlerId) {
// this.crawlerId = crawlerId; // this.crawlerId = crawlerId;
// } // }
// //
// @Basic // @Basic
// @Column(name = "VENDOR_ID", nullable = false) // @Column(name = "VENDOR_ID", nullable = false)
// public int getVendorId() { // public int getVendorId() {
// return vendorId; // return vendorId;
// } // }
// //
// public void setVendorId(int vendorId) { // public void setVendorId(int vendorId) {
// this.vendorId = vendorId; // this.vendorId = vendorId;
// } // }
@Temporal(TemporalType.TIMESTAMP) @Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) @Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
public Date getCreateDate() { public Date getCreateDate() {
return createDate; return createDate;
} }
public void setCreateDate(Date createDate) { public void setCreateDate(Date createDate) {
this.createDate = createDate; this.createDate = createDate;
} }
} }

View File

@ -9,83 +9,80 @@ import java.util.Date;
@Entity @Entity
@Table(name = "META_VENDOR_CRAWLER_SENSOR_ITEM", schema = "public") @Table(name = "META_VENDOR_CRAWLER_SENSOR_ITEM", schema = "public")
public class MetaVendorCrawlerSensorItem { public class MetaVendorCrawlerSensorItem {
private Long id; private Long id;
private String interval; private String interval;
private String warnCondition; private String warnCondition;
private Date createDate; private Date createDate;
private MetaSensorItem sensorItem; private MetaSensorItem metaSensorItem;
private MetaInfraVendor vendor; private MetaInfraVendor metaInfraVendor;
private Short crawlerId; private Short crawlerId;
@Id @Id
@GeneratedValue(strategy= GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
@Column(name = "INTERVAL", nullable = true, length = 50)
public String getInterval() {
return interval;
}
@Column(name = "INTERVAL", nullable = true, length = 50) public void setInterval(String interval) {
public String getInterval() { this.interval = interval;
return interval; }
}
public void setInterval(String interval) { @Column(name = "WARN_CONDITION", nullable = true, length = 50)
this.interval = interval; public String getWarnCondition() {
} return warnCondition;
}
public void setWarnCondition(String warnCondition) {
this.warnCondition = warnCondition;
}
@Column(name = "WARN_CONDITION", nullable = true, length = 50) @Temporal(TemporalType.TIMESTAMP)
public String getWarnCondition() { @Column(name = "CREATE_DATE", nullable = false)
return warnCondition; public Date getCreateDate() {
} return createDate;
}
public void setWarnCondition(String warnCondition) { public void setCreateDate(Date createDate) {
this.warnCondition = warnCondition; this.createDate = createDate;
} }
@Temporal(TemporalType.TIMESTAMP) @ManyToOne
@Column(name = "CREATE_DATE", nullable = false) @JoinColumn(name = "META_SENSOR_ITEM_ID", nullable = false)
public Date getCreateDate() { public MetaSensorItem getMetaSensorItem() {
return createDate; return metaSensorItem;
} }
public void setCreateDate(Date createDate) { public void setMetaSensorItem(MetaSensorItem metaSensorItem) {
this.createDate = createDate; this.metaSensorItem = metaSensorItem;
} }
@ManyToOne
@JoinColumn(name = "VENDOR_ID", nullable = false)
public MetaInfraVendor getMetaInfraVendor() {
return metaInfraVendor;
}
@ManyToOne public void setMetaInfraVendor(MetaInfraVendor metaInfraVendor) {
@JoinColumn(name = "ITEM_ID", nullable = false) this.metaInfraVendor = metaInfraVendor;
public MetaSensorItem getSensorItem() { }
return sensorItem;
}
public void setSensorItem(MetaSensorItem sensorItem) { @Basic
this.sensorItem = sensorItem; @Column(name = "CRAWLER_ID", nullable = false)
} public Short getCrawlerId() {
return crawlerId;
}
@ManyToOne public void setCrawlerId(Short crawlerId) {
@JoinColumn(name = "VENDOR_ID", nullable = false) this.crawlerId = crawlerId;
public MetaInfraVendor getVendor() { }
return vendor;
}
public void setVendor(MetaInfraVendor vendor) {
this.vendor = vendor;
}
@Basic
@Column(name = "CRAWLER_ID", nullable = false)
public Short getCrawlerId() {
return crawlerId;
}
public void setCrawlerId(Short crawlerId) {
this.crawlerId = crawlerId;
}
} }

View File

@ -5,40 +5,39 @@ package com.loafle.overflow.model.meta.type;
*/ */
public enum MetaCrawlerEnum { public enum MetaCrawlerEnum {
ACTIVEDIRECTORY_CRAWLER((short)1), ACTIVEDIRECTORY_CRAWLER((short) 1),
CASSANDRA_CRAWLER((short)2), CASSANDRA_CRAWLER((short) 2),
DHCP_CRAWLER((short)3), DHCP_CRAWLER((short) 3),
DNS_CRAWLER((short)4), DNS_CRAWLER((short) 4),
FTP_CRAWLER((short)5), FTP_CRAWLER((short) 5),
HTTP_CRAWLER((short)6), HTTP_CRAWLER((short) 6),
IMAP_CRAWLER((short)7), IMAP_CRAWLER((short) 7),
LDAP_CRAWLER((short)8), LDAP_CRAWLER((short) 8),
MONGODB_CRAWLER((short)9), MONGODB_CRAWLER((short) 9),
MSSQL_CRAWLER((short)10), MSSQL_CRAWLER((short) 10),
MYSQL_CRAWLER((short)11), MYSQL_CRAWLER((short) 11),
NETBIOS_CRAWLER((short)12), NETBIOS_CRAWLER((short) 12),
ORACLE_CRAWLER((short)13), ORACLE_CRAWLER((short) 13),
POP_CRAWLER((short)14), POP_CRAWLER((short) 14),
POSTGRESQL_CRAWLER((short)15), POSTGRESQL_CRAWLER((short) 15),
REDIS_CRAWLER((short)16), REDIS_CRAWLER((short) 16),
JMX_CRAWLER((short)17), JMX_CRAWLER((short) 17),
SMB_CRAWLER((short)18), SMB_CRAWLER((short) 18),
SMTP_CRAWLER((short)19), SMTP_CRAWLER((short) 19),
SNMP_CRAWLER((short)20), SNMP_CRAWLER((short) 20),
SSH_CRAWLER((short)21), SSH_CRAWLER((short) 21),
TELNET_CRAWLER((short)22), TELNET_CRAWLER((short) 22),
WMI_CRAWLER((short)23), WMI_CRAWLER((short) 23),
UNKNOWN_CRAWLER((short)24); UNKNOWN_CRAWLER((short) 24);
private Short value;
private Short value; private MetaCrawlerEnum(Short value) {
this.value = value;
}
private MetaCrawlerEnum(Short value) { public Short getValue() {
this.value = value; return this.value;
} }
public Short getValue() {
return this.value;
}
} }

View File

@ -1,6 +1,5 @@
package com.loafle.overflow.model.noauthprobe; package com.loafle.overflow.model.noauthprobe;
import com.loafle.overflow.model.domain.Domain; import com.loafle.overflow.model.domain.Domain;
import com.loafle.overflow.model.meta.MetaNoAuthProbeStatus; import com.loafle.overflow.model.meta.MetaNoAuthProbeStatus;
import com.loafle.overflow.model.probe.Probe; import com.loafle.overflow.model.probe.Probe;
@ -14,146 +13,154 @@ import java.util.Date;
@Entity @Entity
@Table(name = "NOAUTH_PROBE", schema = "public") @Table(name = "NOAUTH_PROBE", schema = "public")
public class NoAuthProbe { public class NoAuthProbe {
private Long id; private Long id;
private String description; private String description;
private MetaNoAuthProbeStatus status; private MetaNoAuthProbeStatus metaNoAuthProbeStatus;
private String tempProbeKey; private String tempProbeKey;
private Date connectDate; private Date connectDate;
private String apiKey; private String apiKey;
private Domain domain; private Domain domain;
private Probe probe; private Probe probe;
private String connectAddress; private String connectAddress;
private Date createDate; private Date createDate;
@Id @Id
@GeneratedValue(strategy= GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
@Column(name = "DESCRIPTION", nullable = true, length = 1000) @Column(name = "DESCRIPTION", nullable = true, length = 1000)
public String getDescription() { public String getDescription() {
return description; return description;
} }
public void setDescription(String description) { public void setDescription(String description) {
this.description = description; this.description = description;
} }
@ManyToOne @ManyToOne
@JoinColumn(name = "STATUS", nullable = false) @JoinColumn(name = "META_NOAUTH_PROBE_STATUS_ID", nullable = false)
public MetaNoAuthProbeStatus getStatus() { public MetaNoAuthProbeStatus getMetaNoAuthProbeStatus() {
return status; return metaNoAuthProbeStatus;
} }
public void setStatus(MetaNoAuthProbeStatus status) { public void setMetaNoAuthProbeStatus(MetaNoAuthProbeStatus metaNoAuthProbeStatus) {
this.status = status; this.metaNoAuthProbeStatus = metaNoAuthProbeStatus;
} }
@Column(name = "TEMP_PROBE_KEY", nullable = false, length = 50, unique = true) @Column(name = "TEMP_PROBE_KEY", nullable = false, length = 50, unique = true)
public String getTempProbeKey() { public String getTempProbeKey() {
return tempProbeKey; return tempProbeKey;
} }
public void setTempProbeKey(String tempProbeKey) { public void setTempProbeKey(String tempProbeKey) {
this.tempProbeKey = tempProbeKey; this.tempProbeKey = tempProbeKey;
} }
@Temporal(TemporalType.TIMESTAMP) @Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) @Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
public Date getCreateDate() { public Date getCreateDate() {
return createDate; return createDate;
} }
public void setCreateDate(Date createDate) { public void setCreateDate(Date createDate) {
this.createDate = createDate; this.createDate = createDate;
} }
@Column(name = "API_KEY", nullable = true, length = 50) @Column(name = "API_KEY", nullable = true, length = 50)
public String getApiKey() { public String getApiKey() {
return apiKey; return apiKey;
} }
public void setApiKey(String apiKey) { public void setApiKey(String apiKey) {
this.apiKey = apiKey; this.apiKey = apiKey;
} }
@ManyToOne @ManyToOne
@JoinColumn(name = "DOMAIN_ID", nullable=false) @JoinColumn(name = "DOMAIN_ID", nullable = false)
public Domain getDomain() { public Domain getDomain() {
return domain; return domain;
} }
public void setDomain(Domain domain) { public void setDomain(Domain domain) {
this.domain = domain; this.domain = domain;
} }
@ManyToOne @ManyToOne
@JoinColumn(name = "PROBE_ID", nullable = true) @JoinColumn(name = "PROBE_ID", nullable = true)
public Probe getProbe() { public Probe getProbe() {
return probe; return probe;
} }
public void setProbe(Probe probe) { public void setProbe(Probe probe) {
this.probe = probe; this.probe = probe;
} }
@Temporal(TemporalType.TIMESTAMP) @Temporal(TemporalType.TIMESTAMP)
@Column(name = "CONNECT_DATE", nullable = true) @Column(name = "CONNECT_DATE", nullable = true)
public Date getConnectDate() { public Date getConnectDate() {
return connectDate; return connectDate;
} }
public void setConnectDate(Date connectDate) { public void setConnectDate(Date connectDate) {
this.connectDate = connectDate; this.connectDate = connectDate;
} }
@Column(name = "CONNECT_ADDRESS", nullable = true, length = 50) @Column(name = "CONNECT_ADDRESS", nullable = true, length = 50)
public String getConnectAddress() { public String getConnectAddress() {
return connectAddress; return connectAddress;
} }
public void setConnectAddress(String connectAddress) { public void setConnectAddress(String connectAddress) {
this.connectAddress = connectAddress; this.connectAddress = connectAddress;
} }
// @Override // @Override
// public boolean equals(Object o) { // public boolean equals(Object o) {
// if (this == o) return true; // if (this == o) return true;
// if (o == null || getClass() != o.getClass()) return false; // if (o == null || getClass() != o.getClass()) return false;
// //
// NoAuthProbe that = (NoAuthProbe) o; // NoAuthProbe that = (NoAuthProbe) o;
// //
// if (id != that.id) return false; // if (id != that.id) return false;
// if (domainId != that.domainId) return false; // if (domainId != that.domainId) return false;
// if (hostName != null ? !hostName.equals(that.hostName) : that.hostName != null) return false; // if (hostName != null ? !hostName.equals(that.hostName) : that.hostName !=
// if (macAddress != null ? !macAddress.equals(that.macAddress) : that.macAddress != null) return false; // null) return false;
// if (ipAddress != null ? !ipAddress.equals(that.ipAddress) : that.ipAddress != null) return false; // if (macAddress != null ? !macAddress.equals(that.macAddress) :
// if (status != null ? !status.equals(that.status) : that.status != null) return false; // that.macAddress != null) return false;
// if (tempProbeKey != null ? !tempProbeKey.equals(that.tempProbeKey) : that.tempProbeKey != null) return false; // if (ipAddress != null ? !ipAddress.equals(that.ipAddress) : that.ipAddress !=
// if (createDate != null ? !createDate.equals(that.createDate) : that.createDate != null) return false; // null) return false;
// if (apiKey != null ? !apiKey.equals(that.apiKey) : that.apiKey != null) return false; // if (status != null ? !status.equals(that.status) : that.status != null)
// if (probeId != null ? !probeId.equals(that.probeId) : that.probeId != null) return false; // return false;
// // if (tempProbeKey != null ? !tempProbeKey.equals(that.tempProbeKey) :
// return true; // that.tempProbeKey != null) return false;
// } // if (createDate != null ? !createDate.equals(that.createDate) :
// // that.createDate != null) return false;
// @Override // if (apiKey != null ? !apiKey.equals(that.apiKey) : that.apiKey != null)
// public int hashCode() { // return false;
// int result = (int) (id ^ (id >>> 32)); // if (probeId != null ? !probeId.equals(that.probeId) : that.probeId != null)
// result = 31 * result + (hostName != null ? hostName.hashCode() : 0); // return false;
// result = 31 * result + (macAddress != null ? macAddress.hashCode() : 0); //
// result = 31 * result + (ipAddress != null ? ipAddress.hashCode() : 0); // return true;
// result = 31 * result + (status != null ? status.hashCode() : 0); // }
// result = 31 * result + (tempProbeKey != null ? tempProbeKey.hashCode() : 0); //
// result = 31 * result + (createDate != null ? createDate.hashCode() : 0); // @Override
// result = 31 * result + (apiKey != null ? apiKey.hashCode() : 0); // public int hashCode() {
// result = 31 * result + (int) (domainId ^ (domainId >>> 32)); // int result = (int) (id ^ (id >>> 32));
// result = 31 * result + (probeId != null ? probeId.hashCode() : 0); // result = 31 * result + (hostName != null ? hostName.hashCode() : 0);
// return result; // result = 31 * result + (macAddress != null ? macAddress.hashCode() : 0);
// } // result = 31 * result + (ipAddress != null ? ipAddress.hashCode() : 0);
// result = 31 * result + (status != null ? status.hashCode() : 0);
// result = 31 * result + (tempProbeKey != null ? tempProbeKey.hashCode() : 0);
// result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
// result = 31 * result + (apiKey != null ? apiKey.hashCode() : 0);
// result = 31 * result + (int) (domainId ^ (domainId >>> 32));
// result = 31 * result + (probeId != null ? probeId.hashCode() : 0);
// return result;
// }
} }

View File

@ -6,24 +6,28 @@ package com.loafle.overflow.model.noauthprobe;
public class NoAuthProbeDescription { public class NoAuthProbeDescription {
private NoAuthProbeDescriptionHost host; private NoAuthProbeDescriptionHost host;
private NoAuthProbeDescriptionNetwork network; private NoAuthProbeDescriptionNetwork network;
/** /**
* @return the host * @return the host
*/ */
public NoAuthProbeDescriptionHost getHost() { public NoAuthProbeDescriptionHost getHost() {
return host; return host;
} }
/** /**
* @param host the host to set * @param host the host to set
*/ */
public void setHost(NoAuthProbeDescriptionHost host) { public void setHost(NoAuthProbeDescriptionHost host) {
this.host = host; this.host = host;
} }
/** /**
* @return the network * @return the network
*/ */
public NoAuthProbeDescriptionNetwork getNetwork() { public NoAuthProbeDescriptionNetwork getNetwork() {
return network; return network;
} }
/** /**
* @param network the network to set * @param network the network to set
*/ */
@ -31,5 +35,4 @@ public class NoAuthProbeDescription {
this.network = network; this.network = network;
} }
} }

View File

@ -13,18 +13,21 @@ public class NoAuthProbeDescriptionHost {
private String platformVersion; private String platformVersion;
private String kernelVersion; private String kernelVersion;
private String hostID; private String hostID;
/** /**
* @return the name * @return the name
*/ */
public String getName() { public String getName() {
return name; return name;
} }
/** /**
* @param name the name to set * @param name the name to set
*/ */
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }
/** /**
* @return the os * @return the os
*/ */
@ -32,6 +35,7 @@ public class NoAuthProbeDescriptionHost {
public String getOS() { public String getOS() {
return os; return os;
} }
/** /**
* @param os the os to set * @param os the os to set
*/ */
@ -39,60 +43,70 @@ public class NoAuthProbeDescriptionHost {
public void setOS(String os) { public void setOS(String os) {
this.os = os; this.os = os;
} }
/** /**
* @return the platform * @return the platform
*/ */
public String getPlatform() { public String getPlatform() {
return platform; return platform;
} }
/** /**
* @param platform the platform to set * @param platform the platform to set
*/ */
public void setPlatform(String platform) { public void setPlatform(String platform) {
this.platform = platform; this.platform = platform;
} }
/** /**
* @return the platformFamily * @return the platformFamily
*/ */
public String getPlatformFamily() { public String getPlatformFamily() {
return platformFamily; return platformFamily;
} }
/** /**
* @param platformFamily the platformFamily to set * @param platformFamily the platformFamily to set
*/ */
public void setPlatformFamily(String platformFamily) { public void setPlatformFamily(String platformFamily) {
this.platformFamily = platformFamily; this.platformFamily = platformFamily;
} }
/** /**
* @return the platformVersion * @return the platformVersion
*/ */
public String getPlatformVersion() { public String getPlatformVersion() {
return platformVersion; return platformVersion;
} }
/** /**
* @param platformVersion the platformVersion to set * @param platformVersion the platformVersion to set
*/ */
public void setPlatformVersion(String platformVersion) { public void setPlatformVersion(String platformVersion) {
this.platformVersion = platformVersion; this.platformVersion = platformVersion;
} }
/** /**
* @return the kernelVersion * @return the kernelVersion
*/ */
public String getKernelVersion() { public String getKernelVersion() {
return kernelVersion; return kernelVersion;
} }
/** /**
* @param kernelVersion the kernelVersion to set * @param kernelVersion the kernelVersion to set
*/ */
public void setKernelVersion(String kernelVersion) { public void setKernelVersion(String kernelVersion) {
this.kernelVersion = kernelVersion; this.kernelVersion = kernelVersion;
} }
/** /**
* @return the hostID * @return the hostID
*/ */
public String getHostID() { public String getHostID() {
return hostID; return hostID;
} }
/** /**
* @param hostID the hostID to set * @param hostID the hostID to set
*/ */

View File

@ -8,48 +8,56 @@ public class NoAuthProbeDescriptionNetwork {
private String address; private String address;
private String gateway; private String gateway;
private String macAddress; private String macAddress;
/** /**
* @return the name * @return the name
*/ */
public String getName() { public String getName() {
return name; return name;
} }
/** /**
* @param name the name to set * @param name the name to set
*/ */
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }
/** /**
* @return the address * @return the address
*/ */
public String getAddress() { public String getAddress() {
return address; return address;
} }
/** /**
* @param address the address to set * @param address the address to set
*/ */
public void setAddress(String address) { public void setAddress(String address) {
this.address = address; this.address = address;
} }
/** /**
* @return the gateway * @return the gateway
*/ */
public String getGateway() { public String getGateway() {
return gateway; return gateway;
} }
/** /**
* @param gateway the gateway to set * @param gateway the gateway to set
*/ */
public void setGateway(String gateway) { public void setGateway(String gateway) {
this.gateway = gateway; this.gateway = gateway;
} }
/** /**
* @return the macAddress * @return the macAddress
*/ */
public String getMacAddress() { public String getMacAddress() {
return macAddress; return macAddress;
} }
/** /**
* @param macAddress the macAddress to set * @param macAddress the macAddress to set
*/ */
@ -57,5 +65,4 @@ public class NoAuthProbeDescriptionNetwork {
this.macAddress = macAddress; this.macAddress = macAddress;
} }
} }

View File

@ -11,79 +11,78 @@ import java.util.Date;
@Entity @Entity
@Table(name = "NOTIFICATION", schema = "public") @Table(name = "NOTIFICATION", schema = "public")
public class Notification { public class Notification {
private Long id; private Long id;
private Date createDate; private Date createDate;
private String title; private String title;
private String message; private String message;
private Member member; private Member member;
private Date confirmDate; private Date confirmDate;
private String url; private String url;
@Id @Id
@GeneratedValue(strategy= GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
@Temporal(TemporalType.TIMESTAMP) @Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) @Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
public Date getCreateDate() { public Date getCreateDate() {
return createDate; return createDate;
} }
public void setCreateDate(Date createDate) { public void setCreateDate(Date createDate) {
this.createDate = createDate; this.createDate = createDate;
} }
@Column(name = "TITLE", nullable = false, length = 50) @Column(name = "TITLE", nullable = false, length = 50)
public String getTitle() { public String getTitle() {
return title; return title;
} }
public void setTitle(String title) { public void setTitle(String title) {
this.title = title; this.title = title;
} }
@Column(name = "MESSAGE", nullable = false, length = 255) @Column(name = "MESSAGE", nullable = false, length = 255)
public String getMessage() { public String getMessage() {
return message; return message;
} }
public void setMessage(String message) { public void setMessage(String message) {
this.message = message; this.message = message;
} }
@ManyToOne @ManyToOne
@JoinColumn(name = "MEMBER_ID", nullable = false) @JoinColumn(name = "MEMBER_ID", nullable = false)
public Member getMember() { public Member getMember() {
return member; return member;
} }
public void setMember(Member member) { public void setMember(Member member) {
this.member = member; this.member = member;
} }
@Temporal(TemporalType.TIMESTAMP) @Temporal(TemporalType.TIMESTAMP)
@Column(name = "CONFIRM_DATE", nullable = true) @Column(name = "CONFIRM_DATE", nullable = true)
public Date getConfirmDate() { public Date getConfirmDate() {
return confirmDate; return confirmDate;
} }
public void setConfirmDate(Date confirmDate) { public void setConfirmDate(Date confirmDate) {
this.confirmDate = confirmDate; this.confirmDate = confirmDate;
} }
@Column(name = "URL", nullable = false, length = 255)
public String getUrl() {
return url;
}
@Column(name = "URL", nullable = false, length = 255) public void setUrl(String url) {
public String getUrl() { this.url = url;
return url; }
}
public void setUrl(String url) {
this.url = url;
}
} }

View File

@ -4,7 +4,6 @@ import com.loafle.overflow.model.domain.Domain;
import com.loafle.overflow.model.member.Member; import com.loafle.overflow.model.member.Member;
import com.loafle.overflow.model.meta.MetaProbeStatus; import com.loafle.overflow.model.meta.MetaProbeStatus;
import javax.persistence.*; import javax.persistence.*;
import java.util.Date; import java.util.Date;
@ -15,165 +14,165 @@ import java.util.Date;
@Table(name = "PROBE", schema = "public") @Table(name = "PROBE", schema = "public")
public class Probe { public class Probe {
private Long id; private Long id;
private MetaProbeStatus status; private MetaProbeStatus metaProbeStatus;
private String description; private String description;
private Date createDate; private Date createDate;
private Domain domain; private Domain domain;
private String probeKey; private String probeKey;
private String encryptionKey; private String encryptionKey;
private String displayName; private String displayName;
private String cidr; private String cidr;
private Date authorizeDate; private Date authorizeDate;
private Member authorizeMember; private Member authorizeMember;
private Integer targetCount; private Integer targetCount;
private Date connectDate; private Date connectDate;
private String connectAddress; private String connectAddress;
public Probe() { public Probe() {
} }
public Probe(Long id) { public Probe(Long id) {
this.id = id; this.id = id;
} }
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
@ManyToOne @ManyToOne
@JoinColumn(name = "STATUS", nullable = false) @JoinColumn(name = "META_PROBE_STATUS_ID", nullable = false)
public MetaProbeStatus getStatus() { public MetaProbeStatus getMetaProbeStatus() {
return status; return metaProbeStatus;
} }
public void setStatus(MetaProbeStatus status) { public void setMetaProbeStatus(MetaProbeStatus metaProbeStatus) {
this.status = status; this.metaProbeStatus = metaProbeStatus;
} }
@Column(name = "DESCRIPTION", nullable = true, length = 50) @Column(name = "DESCRIPTION", nullable = true, length = 50)
public String getDescription() { public String getDescription() {
return description; return description;
} }
public void setDescription(String description) { public void setDescription(String description) {
this.description = description; this.description = description;
} }
@Temporal(TemporalType.TIMESTAMP) @Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) @Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
public Date getCreateDate() { public Date getCreateDate() {
return createDate; return createDate;
} }
public void setCreateDate(Date createDate) { public void setCreateDate(Date createDate) {
this.createDate = createDate; this.createDate = createDate;
} }
@ManyToOne @ManyToOne
@JoinColumn(name = "DOMAIN_ID", nullable = false) @JoinColumn(name = "DOMAIN_ID", nullable = false)
public Domain getDomain() { public Domain getDomain() {
return domain; return domain;
} }
public void setDomain(Domain domain) { public void setDomain(Domain domain) {
this.domain = domain; this.domain = domain;
} }
@Column(name = "PROBE_KEY", nullable = false, unique = true) @Column(name = "PROBE_KEY", nullable = false, unique = true)
public String getProbeKey() { public String getProbeKey() {
return probeKey; return probeKey;
} }
public void setProbeKey(String probeKey) { public void setProbeKey(String probeKey) {
this.probeKey = probeKey; this.probeKey = probeKey;
} }
@Column(name = "ENCRYPTION_KEY", nullable = false, length = 100, unique = true) @Column(name = "ENCRYPTION_KEY", nullable = false, length = 100, unique = true)
public String getEncryptionKey() { public String getEncryptionKey() {
return encryptionKey; return encryptionKey;
} }
public void setEncryptionKey(String encryptionKey) { public void setEncryptionKey(String encryptionKey) {
this.encryptionKey = encryptionKey; this.encryptionKey = encryptionKey;
} }
@Column(name = "DISPLAY_NAME") @Column(name = "DISPLAY_NAME")
public String getDisplayName() { public String getDisplayName() {
return displayName; return displayName;
} }
public void setDisplayName(String displayName) { public void setDisplayName(String displayName) {
this.displayName = displayName; this.displayName = displayName;
} }
@Column(name = "CIDR") @Column(name = "CIDR")
public String getCidr() { public String getCidr() {
return cidr; return cidr;
} }
public void setCidr(String cidr) { public void setCidr(String cidr) {
this.cidr = cidr; this.cidr = cidr;
} }
@Temporal(TemporalType.TIMESTAMP) @Temporal(TemporalType.TIMESTAMP)
@Column(name = "AUTHORIZE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) @Column(name = "AUTHORIZE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
public Date getAuthorizeDate() { public Date getAuthorizeDate() {
return authorizeDate; return authorizeDate;
} }
public void setAuthorizeDate(Date authorizeDate) { public void setAuthorizeDate(Date authorizeDate) {
this.authorizeDate = authorizeDate; this.authorizeDate = authorizeDate;
} }
@ManyToOne @ManyToOne
@JoinColumn(name = "AUTHORIZE_MEMBER_ID", nullable = false) @JoinColumn(name = "AUTHORIZE_MEMBER_ID", nullable = false)
public Member getAuthorizeMember() { public Member getAuthorizeMember() {
return authorizeMember; return authorizeMember;
} }
public void setAuthorizeMember(Member authorizeMember) { public void setAuthorizeMember(Member authorizeMember) {
this.authorizeMember = authorizeMember; this.authorizeMember = authorizeMember;
} }
@Column(name = "TARGET_COUNT", nullable = false) @Column(name = "TARGET_COUNT", nullable = false)
public Integer getTargetCount() { public Integer getTargetCount() {
return targetCount; return targetCount;
} }
public void setTargetCount(Integer targetCount) { public void setTargetCount(Integer targetCount) {
this.targetCount = targetCount; this.targetCount = targetCount;
} }
@Temporal(TemporalType.TIMESTAMP) @Temporal(TemporalType.TIMESTAMP)
@Column(name = "CONNECT_DATE", nullable = true) @Column(name = "CONNECT_DATE", nullable = true)
public Date getConnectDate() { public Date getConnectDate() {
return connectDate; return connectDate;
} }
public void setConnectDate(Date connectDate) { public void setConnectDate(Date connectDate) {
this.connectDate = connectDate; this.connectDate = connectDate;
} }
@Column(name = "CONNECT_ADDRESS", nullable = true, length = 50) @Column(name = "CONNECT_ADDRESS", nullable = true, length = 50)
public String getConnectAddress() { public String getConnectAddress() {
return connectAddress; return connectAddress;
} }
public void setConnectAddress(String connectAddress) { public void setConnectAddress(String connectAddress) {
this.connectAddress = connectAddress; this.connectAddress = connectAddress;
} }
@PrePersist @PrePersist
void preInsert() { void preInsert() {
this.targetCount = 0; this.targetCount = 0;
} }
} }

View File

@ -12,37 +12,37 @@ import javax.persistence.*;
@Table(name = "PROBE_HOST", schema = "public") @Table(name = "PROBE_HOST", schema = "public")
public class ProbeHost { public class ProbeHost {
private Long id; private Long id;
private Probe probe; private Probe probe;
private InfraHost host; private InfraHost host;
@Id @Id
@GeneratedValue(strategy= GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
@OneToOne @OneToOne
@JoinColumn(name = "PROBE_ID", nullable = false) @JoinColumn(name = "PROBE_ID", nullable = false)
public Probe getProbe() { public Probe getProbe() {
return probe; return probe;
} }
public void setProbe(Probe probe) { public void setProbe(Probe probe) {
this.probe = probe; this.probe = probe;
} }
@OneToOne @OneToOne
@JoinColumn(name = "HOST_ID", nullable = false) @JoinColumn(name = "HOST_ID", nullable = false)
public InfraHost getHost() { public InfraHost getHost() {
return host; return host;
} }
public void setHost(InfraHost infraHost) { public void setHost(InfraHost infraHost) {
this.host = infraHost; this.host = infraHost;
} }
} }

View File

@ -1,6 +1,5 @@
package com.loafle.overflow.model.probe; package com.loafle.overflow.model.probe;
import com.loafle.overflow.model.meta.MetaProbeTaskType; import com.loafle.overflow.model.meta.MetaProbeTaskType;
import javax.persistence.*; import javax.persistence.*;
@ -12,132 +11,137 @@ import java.util.Date;
@Entity @Entity
@Table(name = "PROBE_TASK", schema = "public") @Table(name = "PROBE_TASK", schema = "public")
public class ProbeTask { public class ProbeTask {
private Long id; private Long id;
private MetaProbeTaskType taskType; private MetaProbeTaskType metaProbeTaskType;
private Probe probe; private Probe probe;
private String data; private String data;
private Date createDate; private Date createDate;
private Date sendDate; private Date sendDate;
private Date startDate; private Date startDate;
private Date endDate; private Date endDate;
private Boolean succeed; private Boolean succeed;
@Id @Id
@GeneratedValue(strategy= GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
@ManyToOne @ManyToOne
@JoinColumn(name = "TYPE_ID", nullable = false) @JoinColumn(name = "META_PROBE_TASK_TYPE_ID", nullable = false)
public MetaProbeTaskType getTaskType() { public MetaProbeTaskType getMetaProbeTaskType() {
return taskType; return metaProbeTaskType;
} }
public void setTaskType(MetaProbeTaskType taskType) { public void setMetaProbeTaskType(MetaProbeTaskType metaProbeTaskType) {
this.taskType = taskType; this.metaProbeTaskType = metaProbeTaskType;
} }
@ManyToOne @ManyToOne
@JoinColumn(name = "PROBE_ID", nullable = false) @JoinColumn(name = "PROBE_ID", nullable = false)
public Probe getProbe() { public Probe getProbe() {
return probe; return probe;
} }
public void setProbe(Probe probe) { public void setProbe(Probe probe) {
this.probe = probe; this.probe = probe;
} }
@Column(name = "DATA", nullable = true, length = 255) @Column(name = "DATA", nullable = true, length = 255)
public String getData() { public String getData() {
return data; return data;
} }
public void setData(String data) { public void setData(String data) {
this.data = data; this.data = data;
} }
@Temporal(TemporalType.TIMESTAMP) @Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) @Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
public Date getCreateDate() { public Date getCreateDate() {
return createDate; return createDate;
} }
public void setCreateDate(Date createDate) { public void setCreateDate(Date createDate) {
this.createDate = createDate; this.createDate = createDate;
} }
@Column(name = "SEND_DATE", nullable = true) @Column(name = "SEND_DATE", nullable = true)
public Date getSendDate() { public Date getSendDate() {
return sendDate; return sendDate;
} }
public void setSendDate(Date sendDate) { public void setSendDate(Date sendDate) {
this.sendDate = sendDate; this.sendDate = sendDate;
} }
@Column(name = "START_DATE", nullable = true) @Column(name = "START_DATE", nullable = true)
public Date getStartDate() { public Date getStartDate() {
return startDate; return startDate;
} }
public void setStartDate(Date startDate) { public void setStartDate(Date startDate) {
this.startDate = startDate; this.startDate = startDate;
} }
@Column(name = "END_DATE", nullable = true) @Column(name = "END_DATE", nullable = true)
public Date getEndDate() { public Date getEndDate() {
return endDate; return endDate;
} }
public void setEndDate(Date endDate) { public void setEndDate(Date endDate) {
this.endDate = endDate; this.endDate = endDate;
} }
@Column(name = "SUCCEED", nullable = true) @Column(name = "SUCCEED", nullable = true)
public Boolean getSucceed() { public Boolean getSucceed() {
return succeed; return succeed;
} }
public void setSucceed(Boolean succeed) { public void setSucceed(Boolean succeed) {
this.succeed = succeed; this.succeed = succeed;
} }
// @Override // @Override
// public boolean equals(Object o) { // public boolean equals(Object o) {
// if (this == o) return true; // if (this == o) return true;
// if (o == null || getClass() != o.getClass()) return false; // if (o == null || getClass() != o.getClass()) return false;
// //
// ProbeTask that = (ProbeTask) o; // ProbeTask that = (ProbeTask) o;
// //
// if (id != that.id) return false; // if (id != that.id) return false;
// if (typeId != that.typeId) return false; // if (typeId != that.typeId) return false;
// if (probeId != that.probeId) return false; // if (probeId != that.probeId) return false;
// if (data != null ? !data.equals(that.data) : that.data != null) return false; // if (data != null ? !data.equals(that.data) : that.data != null) return false;
// if (createDate != null ? !createDate.equals(that.createDate) : that.createDate != null) return false; // if (createDate != null ? !createDate.equals(that.createDate) :
// if (sendDate != null ? !sendDate.equals(that.sendDate) : that.sendDate != null) return false; // that.createDate != null) return false;
// if (startDate != null ? !startDate.equals(that.startDate) : that.startDate != null) return false; // if (sendDate != null ? !sendDate.equals(that.sendDate) : that.sendDate !=
// if (endDate != null ? !endDate.equals(that.endDate) : that.endDate != null) return false; // null) return false;
// if (succeed != null ? !succeed.equals(that.succeed) : that.succeed != null) return false; // if (startDate != null ? !startDate.equals(that.startDate) : that.startDate !=
// // null) return false;
// return true; // if (endDate != null ? !endDate.equals(that.endDate) : that.endDate != null)
// } // return false;
// // if (succeed != null ? !succeed.equals(that.succeed) : that.succeed != null)
// @Override // return false;
// public int hashCode() { //
// int result = (int) (id ^ (id >>> 32)); // return true;
// result = 31 * result + (int) typeId; // }
// result = 31 * result + (int) (probeId ^ (probeId >>> 32)); //
// result = 31 * result + (data != null ? data.hashCode() : 0); // @Override
// result = 31 * result + (createDate != null ? createDate.hashCode() : 0); // public int hashCode() {
// result = 31 * result + (sendDate != null ? sendDate.hashCode() : 0); // int result = (int) (id ^ (id >>> 32));
// result = 31 * result + (startDate != null ? startDate.hashCode() : 0); // result = 31 * result + (int) typeId;
// result = 31 * result + (endDate != null ? endDate.hashCode() : 0); // result = 31 * result + (int) (probeId ^ (probeId >>> 32));
// result = 31 * result + (succeed != null ? succeed.hashCode() : 0); // result = 31 * result + (data != null ? data.hashCode() : 0);
// return result; // result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
// } // result = 31 * result + (sendDate != null ? sendDate.hashCode() : 0);
// result = 31 * result + (startDate != null ? startDate.hashCode() : 0);
// result = 31 * result + (endDate != null ? endDate.hashCode() : 0);
// result = 31 * result + (succeed != null ? succeed.hashCode() : 0);
// return result;
// }
} }

View File

@ -17,119 +17,118 @@ import java.util.List;
@Entity @Entity
@Table(name = "SENSOR", schema = "public") @Table(name = "SENSOR", schema = "public")
public class Sensor { public class Sensor {
private Long id; private Long id;
private Date createDate; private Date createDate;
private String description; private String description;
private MetaSensorStatus status; private MetaSensorStatus metaSensorStatus;
private Target target; private Target target;
private MetaCrawler crawler; private MetaCrawler metaCrawler;
private String crawlerInputItems; private String crawlerInputItems;
private Short itemCount = 0; private Short itemCount = 0;
private String displayName; private String displayName;
// Transient property // Transient property
private List<MetaSensorDisplayItem> sensorItems; private List<MetaSensorDisplayItem> sensorItems;
@Id @Id
@GeneratedValue(strategy= GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
@Temporal(TemporalType.TIMESTAMP) @Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) @Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
public Date getCreateDate() { public Date getCreateDate() {
return createDate; return createDate;
} }
public void setCreateDate(Date createDate) { public void setCreateDate(Date createDate) {
this.createDate = createDate; this.createDate = createDate;
} }
@Column(name = "DESCRIPTION", nullable = true, length = 50) @Column(name = "DESCRIPTION", nullable = true, length = 50)
public String getDescription() { public String getDescription() {
return description; return description;
} }
public void setDescription(String description) { public void setDescription(String description) {
this.description = description; this.description = description;
} }
@ManyToOne @ManyToOne
@JoinColumn(name = "STATUS") @JoinColumn(name = "META_SENSOR_STATUS_ID")
public MetaSensorStatus getStatus() { public MetaSensorStatus getMetaSensorStatus() {
return status; return metaSensorStatus;
} }
public void setStatus(MetaSensorStatus status) { public void setMetaSensorStatus(MetaSensorStatus metaSensorStatus) {
this.status = status; this.metaSensorStatus = metaSensorStatus;
} }
@ManyToOne @ManyToOne
@OnDelete(action = OnDeleteAction.CASCADE) @OnDelete(action = OnDeleteAction.CASCADE)
@JoinColumn(name = "TARGET_ID", nullable = false) @JoinColumn(name = "TARGET_ID", nullable = false)
public Target getTarget() { public Target getTarget() {
return target; return target;
} }
public void setTarget(Target target) { public void setTarget(Target target) {
this.target = target; this.target = target;
} }
@ManyToOne @ManyToOne
@JoinColumn(name = "CRAWLER_ID", nullable = false) @JoinColumn(name = "META_CRAWLER_ID", nullable = false)
public MetaCrawler getCrawler() { public MetaCrawler getMetaCrawler() {
return crawler; return metaCrawler;
} }
public void setCrawler(MetaCrawler crawler) { public void setMetaCrawler(MetaCrawler metaCrawler) {
this.crawler = crawler; this.metaCrawler = metaCrawler;
} }
@Column(name = "CRAWLER_INPUT_ITEMS", nullable = true, length = 50) @Column(name = "CRAWLER_INPUT_ITEMS", nullable = true, length = 50)
public String getCrawlerInputItems() { public String getCrawlerInputItems() {
return crawlerInputItems; return crawlerInputItems;
} }
public void setCrawlerInputItems(String crawlerInputItems) { public void setCrawlerInputItems(String crawlerInputItems) {
this.crawlerInputItems = crawlerInputItems; this.crawlerInputItems = crawlerInputItems;
} }
@Column(name = "ITEM_COUNT", nullable = false) @Column(name = "ITEM_COUNT", nullable = false)
public Short getItemCount() { public Short getItemCount() {
return itemCount; return itemCount;
} }
public void setItemCount(Short itemCount) { public void setItemCount(Short itemCount) {
this.itemCount = itemCount; this.itemCount = itemCount;
} }
@Column(name = "DISPLAY_NAME", nullable = false, length = 50) @Column(name = "DISPLAY_NAME", nullable = false, length = 50)
public String getDisplayName() { public String getDisplayName() {
return displayName; return displayName;
} }
public void setDisplayName(String displayName) { public void setDisplayName(String displayName) {
this.displayName = displayName; this.displayName = displayName;
} }
@PrePersist
void preInsert() {
this.itemCount = 0;
}
@Transient @PrePersist
public List<MetaSensorDisplayItem> getSensorItems() { void preInsert() {
return sensorItems; this.itemCount = 0;
} }
public void setSensorItems(List<MetaSensorDisplayItem> sensorItems) { @Transient
this.sensorItems = sensorItems; public List<MetaSensorDisplayItem> getSensorItems() {
} return sensorItems;
}
public void setSensorItems(List<MetaSensorDisplayItem> sensorItems) {
this.sensorItems = sensorItems;
}
} }

View File

@ -13,50 +13,50 @@ import java.util.Date;
@Entity @Entity
@Table(name = "SENSOR_ITEM", schema = "public") @Table(name = "SENSOR_ITEM", schema = "public")
public class SensorItem { public class SensorItem {
private Long id; private Long id;
private Sensor sensor; private Sensor sensor;
private MetaSensorDisplayItem item; private MetaSensorDisplayItem metaSensorDisplayItem;
private Date createDate; private Date createDate;
@Id @Id
@GeneratedValue(strategy= GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
@ManyToOne @ManyToOne
@JoinColumn(name = "SENSOR_ID", nullable = false) @JoinColumn(name = "SENSOR_ID", nullable = false)
@OnDelete(action = OnDeleteAction.CASCADE) @OnDelete(action = OnDeleteAction.CASCADE)
public Sensor getSensor() { public Sensor getSensor() {
return this.sensor; return this.sensor;
} }
public void setSensor(Sensor sensor) { public void setSensor(Sensor sensor) {
this.sensor = sensor; this.sensor = sensor;
} }
@ManyToOne @ManyToOne
@JoinColumn(name = "ITEM_ID", nullable = false) @JoinColumn(name = "META_SENSOR_DISPLAY_ITEM_ID", nullable = false)
public MetaSensorDisplayItem getItem() { public MetaSensorDisplayItem getMetaSensorDisplayItem() {
return item; return metaSensorDisplayItem;
} }
public void setItem(MetaSensorDisplayItem item) { public void setMetaSensorDisplayItem(MetaSensorDisplayItem metaSensorDisplayItem) {
this.item = item; this.metaSensorDisplayItem = metaSensorDisplayItem;
} }
@Temporal(TemporalType.TIMESTAMP) @Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) @Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
public Date getCreateDate() { public Date getCreateDate() {
return createDate; return createDate;
} }
public void setCreateDate(Date createDate) { public void setCreateDate(Date createDate) {
this.createDate = createDate; this.createDate = createDate;
} }
} }

View File

@ -11,38 +11,37 @@ import javax.persistence.*;
@Entity @Entity
@Table(name = "SENSOR_ITEM_DEPENDENCY", schema = "public") @Table(name = "SENSOR_ITEM_DEPENDENCY", schema = "public")
public class SensorItemDependency { public class SensorItemDependency {
private Long id; private Long id;
private MetaSensorDisplayItem displayItem; private MetaSensorDisplayItem metaSensorDisplayItem;
private MetaSensorItemKey sensorItem; private MetaSensorItemKey metaSensorItemKey;
@Id @Id
@GeneratedValue(strategy= GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
@ManyToOne
@JoinColumn(name = "META_SENSOR_DISPLAY_ITEM_ID", nullable = false)
public MetaSensorDisplayItem getMetaSensorDisplayItem() {
return metaSensorDisplayItem;
}
@ManyToOne public void setMetaSensorDisplayItem(MetaSensorDisplayItem metaSensorDisplayItem) {
@JoinColumn(name = "DISPLAY_ITEM_ID", nullable = false) this.metaSensorDisplayItem = metaSensorDisplayItem;
public MetaSensorDisplayItem getDisplayItem() { }
return displayItem;
}
public void setDisplayItem(MetaSensorDisplayItem displayItem) { @ManyToOne
this.displayItem = displayItem; @JoinColumn(name = "META_SENSOR_ITEM_KEY_ID", nullable = false)
} public MetaSensorItemKey getMetaSensorItemKey() {
return metaSensorItemKey;
}
@ManyToOne public void setMetaSensorItemKey(MetaSensorItemKey metaSensorItemKey) {
@JoinColumn(name = "SENSOR_ITEM_ID", nullable = false) this.metaSensorItemKey = metaSensorItemKey;
public MetaSensorItemKey getSensorItem() { }
return sensorItem;
}
public void setSensorItem(MetaSensorItemKey sensorItem) {
this.sensorItem = sensorItem;
}
} }

View File

@ -15,113 +15,109 @@ import java.util.List;
@Table(name = "TARGET", schema = "public") @Table(name = "TARGET", schema = "public")
public class Target { public class Target {
private Long id; private Long id;
private Date createDate; private Date createDate;
private String displayName; private String displayName;
private String description; private String description;
private Integer sensorCount; private Integer sensorCount;
private Infra infra; private Infra infra;
// Transient property // Transient property
private List<Sensor> sensors; private List<Sensor> sensors;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
public Long getId() {
return id;
}
@Id public void setId(Long id) {
@GeneratedValue(strategy= GenerationType.IDENTITY) this.id = id;
public Long getId() { }
return id;
}
public void setId(Long id) { @Temporal(TemporalType.TIMESTAMP)
this.id = id; @Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
} public Date getCreateDate() {
return createDate;
}
@Temporal(TemporalType.TIMESTAMP) public void setCreateDate(Date createDate) {
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) this.createDate = createDate;
public Date getCreateDate() { }
return createDate;
}
public void setCreateDate(Date createDate) { @Column(name = "DISPLAY_NAME")
this.createDate = createDate; public String getDisplayName() {
} return displayName;
}
@Column(name = "DISPLAY_NAME") public void setDisplayName(String displayName) {
public String getDisplayName() { this.displayName = displayName;
return displayName; }
}
public void setDisplayName(String displayName) { @Column(name = "DESCRIPTION")
this.displayName = displayName; public String getDescription() {
} return description;
}
@Column(name = "DESCRIPTION") public void setDescription(String description) {
public String getDescription() { this.description = description;
return description; }
}
public void setDescription(String description) { @Column(name = "SENSOR_COUNT", nullable = false)
this.description = description; public Integer getSensorCount() {
} return sensorCount;
}
public void setSensorCount(Integer sensorCount) {
this.sensorCount = sensorCount;
}
@Column(name = "SENSOR_COUNT", nullable = false) @Transient
public Integer getSensorCount() { public List<Sensor> getSensors() {
return sensorCount; return sensors;
} }
public void setSensorCount(Integer sensorCount) { public void setSensors(List<Sensor> sensors) {
this.sensorCount = sensorCount; this.sensors = sensors;
} }
@Transient @PrePersist
public List<Sensor> getSensors() { void preInsert() {
return sensors; this.sensorCount = 0;
} }
public void setSensors(List<Sensor> sensors) { @OneToOne
this.sensors = sensors; @JoinColumn(name = "INFRA_ID", nullable = false)
} public Infra getInfra() {
return infra;
@PrePersist }
void preInsert() {
this.sensorCount = 0;
}
@OneToOne /**
@JoinColumn(name = "INFRA_ID", nullable = false) * @param infra the infra to set
public Infra getInfra() { */
return infra; public void setInfra(Infra infra) {
} this.infra = infra;
}
/**
* @param infra the infra to set
*/
public void setInfra(Infra infra) {
this.infra = infra;
}
// @ManyToOne
// @JoinColumn(name = "PROBE_ID", nullable = false)
// @OnDelete(action = OnDeleteAction.CASCADE)
// public Probe getProbe() {
// return probe;
// }
//
// public void setProbe(Probe probe) {
// this.probe = probe;
// }
//
// @ManyToOne
// @JoinColumn(name = "INFRA_ID", nullable = false)
// public Infra getInfra() {
// return infra;
// }
//
// public void setInfra(Infra infra) {
// this.infra = infra;
// }
// @ManyToOne
// @JoinColumn(name = "PROBE_ID", nullable = false)
// @OnDelete(action = OnDeleteAction.CASCADE)
// public Probe getProbe() {
// return probe;
// }
//
// public void setProbe(Probe probe) {
// this.probe = probe;
// }
//
// @ManyToOne
// @JoinColumn(name = "INFRA_ID", nullable = false)
// public Infra getInfra() {
// return infra;
// }
//
// public void setInfra(Infra infra) {
// this.infra = infra;
// }
} }

View File

@ -8,11 +8,14 @@ import com.loafle.overflow.model.apikey.ApiKey;
* Created by geek on 17. 11. 7. * Created by geek on 17. 11. 7.
*/ */
public interface ApiKeyService { public interface ApiKeyService {
@WebappAPI @WebappAPI
ApiKey regist(ApiKey apiKey) throws OverflowException; ApiKey regist(ApiKey apiKey) throws OverflowException;
@WebappAPI
ApiKey readByDomainID(Long domainID) throws OverflowException; @WebappAPI
boolean check(String apiKey) throws OverflowException; ApiKey readByDomainID(Long domainID) throws OverflowException;
@WebappAPI
ApiKey readByApiKey(String apiKey) throws OverflowException; boolean check(String apiKey) throws OverflowException;
@WebappAPI
ApiKey readByApiKey(String apiKey) throws OverflowException;
} }

View File

@ -4,16 +4,17 @@ import com.loafle.overflow.model.auth.AuthCrawler;
import com.loafle.overflow.core.annotation.WebappAPI; import com.loafle.overflow.core.annotation.WebappAPI;
import com.loafle.overflow.core.exception.OverflowException; import com.loafle.overflow.core.exception.OverflowException;
import com.loafle.overflow.model.meta.MetaCrawler; import com.loafle.overflow.model.meta.MetaCrawler;
import com.loafle.overflow.model.target.Target;
/** /**
* Created by geek on 17. 11. 7. * Created by geek on 17. 11. 7.
*/ */
public interface AuthCrawlerService { public interface AuthCrawlerService {
@WebappAPI @WebappAPI
AuthCrawler regist(AuthCrawler authCrawler) throws OverflowException; AuthCrawler regist(AuthCrawler authCrawler) throws OverflowException;
@WebappAPI
boolean checkAuthCrawler(Long infraId, MetaCrawler crawler, String authJson) throws OverflowException; @WebappAPI
@WebappAPI boolean checkAuthCrawler(Long infraId, MetaCrawler metaCrawler, String authJson) throws OverflowException;
AuthCrawler readAuth(MetaCrawler metaCrawler, Target target) throws OverflowException;
@WebappAPI
AuthCrawler readByMCrawlerIDAndTargetID(Short metaCrawlerID, Long targetID) throws OverflowException;
} }

View File

@ -20,23 +20,34 @@ import com.loafle.overflow.model.discovery.Zone;
public interface DiscoveryService { public interface DiscoveryService {
@WebappAPI @WebappAPI
void discoverZone(String probeID, DiscoverZone discoverZone) throws OverflowException; void discoverZone(String probeID, DiscoverZone discoverZone) throws OverflowException;
@WebappAPI @WebappAPI
void discoverHost(String probeID, Zone zone, DiscoverHost discoverHost) throws OverflowException; void discoverHost(String probeID, Zone zone, DiscoverHost discoverHost) throws OverflowException;
@WebappAPI @WebappAPI
void discoverPort(String probeID, Host host, DiscoverPort discoverPort) throws OverflowException; void discoverPort(String probeID, Host host, DiscoverPort discoverPort) throws OverflowException;
@WebappAPI @WebappAPI
void discoverService(String probeID, Port port, DiscoverService discoverService) throws OverflowException; void discoverService(String probeID, Port port, DiscoverService discoverService) throws OverflowException;
@WebappAPI
void stopDiscovery(String probeID) throws OverflowException;
@ProbeAPI @ProbeAPI
void discoveryStart(String requesterSessionID, Date startDate) throws OverflowException; void discoveryStart(String requesterSessionID, Date startDate) throws OverflowException;
@ProbeAPI @ProbeAPI
void discoveryStop(String requesterSessionID, Date stopDate) throws OverflowException; void discoveryStop(String requesterSessionID, Date stopDate) throws OverflowException;
@ProbeAPI @ProbeAPI
void discoveredZone(String requesterSessionID, Zone zone) throws OverflowException; void discoveredZone(String requesterSessionID, Zone zone) throws OverflowException;
@ProbeAPI @ProbeAPI
void discoveredHost(String requesterSessionID, Host host) throws OverflowException; void discoveredHost(String requesterSessionID, Host host) throws OverflowException;
@ProbeAPI @ProbeAPI
void discoveredPort(String requesterSessionID, Port port) throws OverflowException; void discoveredPort(String requesterSessionID, Port port) throws OverflowException;
@ProbeAPI @ProbeAPI
void discoveredService(String requesterSessionID, Service service) throws OverflowException; void discoveredService(String requesterSessionID, Service service) throws OverflowException;
} }

View File

@ -14,10 +14,13 @@ import com.loafle.overflow.model.member.Member;
public interface DomainMemberService { public interface DomainMemberService {
@WebappAPI @WebappAPI
void regist(DomainMember domainMember) throws OverflowException; void regist(DomainMember domainMember) throws OverflowException;
@WebappAPI @WebappAPI
Domain readDomainByMemberID(Long memberID) throws OverflowException; Domain readDomainByMemberID(Long memberID) throws OverflowException;
@WebappAPI @WebappAPI
DomainMember readByMemberEmail(String email) throws OverflowException; DomainMember readByMemberEmail(String email) throws OverflowException;
@WebappAPI @WebappAPI
List<Member> readAllMemberByDomainID(final Long domainID) throws OverflowException; List<Member> readAllMemberByDomainID(final Long domainID) throws OverflowException;
} }

View File

@ -7,15 +7,18 @@ import com.loafle.overflow.model.meta.MetaHistoryType;
import org.springframework.data.domain.Page; import org.springframework.data.domain.Page;
public interface HistoryService { public interface HistoryService {
// ?? // ??
History regist(History history); History regist(History history);
@WebappAPI @WebappAPI
Page<History> readAllByProbeIDAndType(Long probeID, MetaHistoryType type, PageParams pageParams); Page<History> readAllByProbeIDAndMetaHistoryTypeID(Long probeID, Integer metaHistoryTypeID, PageParams pageParams);
@WebappAPI
Page<History> readAllByProbeID(Long probeID, PageParams pageParams); @WebappAPI
@WebappAPI Page<History> readAllByProbeID(Long probeID, PageParams pageParams);
Page<History> readAllByDomainID(Long domainID, PageParams pageParams);
@WebappAPI @WebappAPI
Page<History> readAllByDomainIDAndType(Long domainID, MetaHistoryType type, PageParams pageParams); Page<History> readAllByDomainID(Long domainID, PageParams pageParams);
@WebappAPI
Page<History> readAllByDomainIDAndMetaHistoryTypeID(Long domainID, Integer metaHistoryTypeID, PageParams pageParams);
} }

View File

@ -9,6 +9,8 @@ import com.loafle.overflow.model.infra.InfraHost;
public interface InfraHostService { public interface InfraHostService {
InfraHost regist(InfraHost infraHost) throws OverflowException; InfraHost regist(InfraHost infraHost) throws OverflowException;
InfraHost read(Long id) throws OverflowException; InfraHost read(Long id) throws OverflowException;
InfraHost readByIp(String ip) throws OverflowException; InfraHost readByIp(String ip) throws OverflowException;
} }

View File

@ -8,5 +8,6 @@ import com.loafle.overflow.model.infra.InfraMachine;
*/ */
public interface InfraMachineService { public interface InfraMachineService {
InfraMachine regist(InfraMachine infraMachine) throws OverflowException; InfraMachine regist(InfraMachine infraMachine) throws OverflowException;
InfraMachine read(Long id) throws OverflowException; InfraMachine read(Long id) throws OverflowException;
} }

View File

@ -9,5 +9,6 @@ import com.loafle.overflow.model.infra.InfraOSApplication;
public interface InfraOSApplicationService { public interface InfraOSApplicationService {
InfraOSApplication regist(InfraOSApplication infraOSApplication) throws OverflowException; InfraOSApplication regist(InfraOSApplication infraOSApplication) throws OverflowException;
InfraOSApplication read(Long id) throws OverflowException; InfraOSApplication read(Long id) throws OverflowException;
} }

View File

@ -9,5 +9,6 @@ import com.loafle.overflow.model.infra.InfraOSDaemon;
public interface InfraOSDaemonService { public interface InfraOSDaemonService {
InfraOSDaemon regist(InfraOSDaemon infraOSDaemon) throws OverflowException; InfraOSDaemon regist(InfraOSDaemon infraOSDaemon) throws OverflowException;
InfraOSDaemon read(Long id) throws OverflowException; InfraOSDaemon read(Long id) throws OverflowException;
} }

View File

@ -9,6 +9,8 @@ import com.loafle.overflow.model.infra.InfraOSPort;
public interface InfraOSPortService { public interface InfraOSPortService {
InfraOSPort regist(InfraOSPort infraOSPort) throws OverflowException; InfraOSPort regist(InfraOSPort infraOSPort) throws OverflowException;
InfraOSPort read(Long id) throws OverflowException; InfraOSPort read(Long id) throws OverflowException;
InfraOSPort readByPort(Long osId, int portNumber, String portType) throws OverflowException;
InfraOSPort readByInfraOSIDAndPortAndPortType(Long infraOSID, Integer port, String portType) throws OverflowException;
} }

View File

@ -9,5 +9,6 @@ import com.loafle.overflow.model.infra.InfraOS;
public interface InfraOSService { public interface InfraOSService {
InfraOS regist(InfraOS infraOS) throws OverflowException; InfraOS regist(InfraOS infraOS) throws OverflowException;
InfraOS read(Long id) throws OverflowException; InfraOS read(Long id) throws OverflowException;
} }

View File

@ -16,10 +16,16 @@ import org.springframework.data.domain.Page;
public interface InfraService { public interface InfraService {
Infra regist(Infra infra) throws OverflowException; Infra regist(Infra infra) throws OverflowException;
Infra read(Long id) throws OverflowException; Infra read(Long id) throws OverflowException;
Page<Infra> readAllByProbeID(Long probeID, PageParams pageParams) throws OverflowException; Page<Infra> readAllByProbeID(Long probeID, PageParams pageParams) throws OverflowException;
Page<Infra> readAllByDomainID(Long domainID, PageParams pageParams) throws OverflowException; Page<Infra> readAllByDomainID(Long domainID, PageParams pageParams) throws OverflowException;
List<Target> readAllTargetByDomainID(Long domainID) throws OverflowException; List<Target> readAllTargetByDomainID(Long domainID) throws OverflowException;
List<Target> readAllTargetByProbeList(List<Probe> probeList) throws OverflowException;
List<Target> readAllTargetByProbes(List<Probe> probes) throws OverflowException;
Infra readByTargetID(Long targetID) throws OverflowException; Infra readByTargetID(Long targetID) throws OverflowException;
} }

View File

@ -13,24 +13,34 @@ import java.util.List;
public interface MemberService { public interface MemberService {
@WebappAPI @WebappAPI
DomainMember signin(String signinId, String signinPw) throws OverflowException; DomainMember signin(String signinId, String signinPw) throws OverflowException;
@WebappAPI @WebappAPI
Member signup(Member member, String pw) throws OverflowException; Member signup(Member member, String pw) throws OverflowException;
@WebappAPI @WebappAPI
Member sendEmailForPassword(String email) throws OverflowException; Member sendEmailForPassword(String email) throws OverflowException;
@WebappAPI @WebappAPI
Member resetPassword(String token, String pw) throws OverflowException; Member resetPassword(String token, String pw) throws OverflowException;
@WebappAPI @WebappAPI
Member modify(Member member, String pw) throws OverflowException; Member modify(Member member, String pw) throws OverflowException;
@WebappAPI @WebappAPI
Member forgotPassword(String signinId, String newPw) throws OverflowException; Member forgotPassword(String signinId, String newPw) throws OverflowException;
@WebappAPI @WebappAPI
Member read(Long memberId) throws OverflowException; Member read(Long memberId) throws OverflowException;
@WebappAPI @WebappAPI
void withdrawal(Long memberId) throws OverflowException; void withdrawal(Long memberId) throws OverflowException;
@WebappAPI @WebappAPI
List<Member> readAllByProbeKey(String probeKey) throws OverflowException; List<Member> readAllByProbeKey(String probeKey) throws OverflowException;
@WebappAPI @WebappAPI
List<Member> readAllByApiKey(String apikey) throws OverflowException; List<Member> readAllByApiKey(String apikey) throws OverflowException;
@WebappAPI @WebappAPI
List<Member> readAllByDomainID(final Long domainID) throws OverflowException; List<Member> readAllByDomainID(final Long domainID) throws OverflowException;
} }

View File

@ -12,16 +12,22 @@ import java.util.Map;
public interface MemberTotpService { public interface MemberTotpService {
@WebappAPI @WebappAPI
void regist(Member member, String secretCode, String code) throws OverflowException; void regist(Member member, String secretCode, String code) throws OverflowException;
@WebappAPI @WebappAPI
MemberTotp modify(MemberTotp totp) throws OverflowException; MemberTotp modify(MemberTotp totp) throws OverflowException;
@WebappAPI @WebappAPI
void remove(Long id) throws OverflowException; void remove(Long id) throws OverflowException;
@WebappAPI @WebappAPI
MemberTotp read(Long id) throws OverflowException; MemberTotp read(Long id) throws OverflowException;
@WebappAPI @WebappAPI
boolean checkCodeForMember(Member member, String code) throws OverflowException; boolean checkCodeForMember(String email, String code) throws OverflowException;
@WebappAPI @WebappAPI
boolean checkCode(String secretCode, String code) throws OverflowException; boolean checkCode(String secretCode, String code) throws OverflowException;
@WebappAPI @WebappAPI
Map<String, String> createTotp(Member member) throws OverflowException; Map<String, String> createTotp(Member member) throws OverflowException;
} }

View File

@ -2,7 +2,6 @@ package com.loafle.overflow.service.central.meta;
import com.loafle.overflow.core.annotation.WebappAPI; import com.loafle.overflow.core.annotation.WebappAPI;
import com.loafle.overflow.core.exception.OverflowException; import com.loafle.overflow.core.exception.OverflowException;
import com.loafle.overflow.model.meta.MetaCrawler;
import com.loafle.overflow.model.meta.MetaCrawlerInputItem; import com.loafle.overflow.model.meta.MetaCrawlerInputItem;
import java.util.List; import java.util.List;
@ -12,6 +11,6 @@ import java.util.List;
*/ */
public interface MetaCrawlerInputItemService { public interface MetaCrawlerInputItemService {
@WebappAPI @WebappAPI
List<MetaCrawlerInputItem> readAllByMetaCrawler(MetaCrawler metaCrawler) throws OverflowException; List<MetaCrawlerInputItem> readAllByMetaCrawlerID(Short metaCrawlerID) throws OverflowException;
} }

View File

@ -11,6 +11,6 @@ import java.util.List;
*/ */
public interface MetaCrawlerService { public interface MetaCrawlerService {
@WebappAPI @WebappAPI
List<MetaCrawler> readAll() throws OverflowException; List<MetaCrawler> readAll() throws OverflowException;
} }

View File

@ -1,6 +1,5 @@
package com.loafle.overflow.service.central.meta; package com.loafle.overflow.service.central.meta;
import com.loafle.overflow.core.annotation.WebappAPI; import com.loafle.overflow.core.annotation.WebappAPI;
import com.loafle.overflow.core.exception.OverflowException; import com.loafle.overflow.core.exception.OverflowException;
import com.loafle.overflow.model.meta.MetaHistoryType; import com.loafle.overflow.model.meta.MetaHistoryType;
@ -12,13 +11,13 @@ import java.util.List;
*/ */
public interface MetaHistoryTypeService { public interface MetaHistoryTypeService {
@WebappAPI @WebappAPI
List<MetaHistoryType> readAll() throws OverflowException; List<MetaHistoryType> readAll() throws OverflowException;
@WebappAPI @WebappAPI
MetaHistoryType regist(MetaHistoryType type) throws OverflowException; MetaHistoryType regist(MetaHistoryType metaHistoryType) throws OverflowException;
@WebappAPI @WebappAPI
List<MetaHistoryType> registAll(List<MetaHistoryType> types) throws OverflowException; List<MetaHistoryType> registAllByMetaHistoryTypes(List<MetaHistoryType> metaHistoryTypes) throws OverflowException;
} }

View File

@ -11,6 +11,6 @@ import java.util.List;
*/ */
public interface MetaInfraTypeService { public interface MetaInfraTypeService {
@WebappAPI @WebappAPI
List<MetaInfraType> readAll() throws OverflowException; List<MetaInfraType> readAll() throws OverflowException;
} }

View File

@ -2,7 +2,6 @@ package com.loafle.overflow.service.central.meta;
import com.loafle.overflow.core.annotation.WebappAPI; import com.loafle.overflow.core.annotation.WebappAPI;
import com.loafle.overflow.core.exception.OverflowException; import com.loafle.overflow.core.exception.OverflowException;
import com.loafle.overflow.model.meta.MetaInfraType;
import com.loafle.overflow.model.meta.MetaInfraVendor; import com.loafle.overflow.model.meta.MetaInfraVendor;
import java.util.List; import java.util.List;
@ -11,6 +10,6 @@ import java.util.List;
* Created by snoop on 17. 7. 27. * Created by snoop on 17. 7. 27.
*/ */
public interface MetaInfraVendorService { public interface MetaInfraVendorService {
@WebappAPI @WebappAPI
List<MetaInfraVendor> readAllByMetaInfraType(MetaInfraType infraType) throws OverflowException; List<MetaInfraVendor> readAllByMetaInfraTypeID(Integer metaInfraTypeID) throws OverflowException;
} }

View File

@ -10,6 +10,6 @@ import java.util.List;
* Created by snoop on 17. 7. 27. * Created by snoop on 17. 7. 27.
*/ */
public interface MetaInputTypeService { public interface MetaInputTypeService {
@WebappAPI @WebappAPI
List<MetaInputType> readAll() throws OverflowException; List<MetaInputType> readAll() throws OverflowException;
} }

View File

@ -10,6 +10,6 @@ import java.util.List;
* Created by snoop on 17. 7. 27. * Created by snoop on 17. 7. 27.
*/ */
public interface MetaMemberStatusService { public interface MetaMemberStatusService {
@WebappAPI @WebappAPI
List<MetaMemberStatus> readAll() throws OverflowException; List<MetaMemberStatus> readAll() throws OverflowException;
} }

View File

@ -10,6 +10,6 @@ import java.util.List;
* Created by snoop on 17. 7. 27. * Created by snoop on 17. 7. 27.
*/ */
public interface MetaNoAuthProbeStatusService { public interface MetaNoAuthProbeStatusService {
@WebappAPI @WebappAPI
List<MetaNoAuthProbeStatus> readAll() throws OverflowException; List<MetaNoAuthProbeStatus> readAll() throws OverflowException;
} }

View File

@ -10,6 +10,6 @@ import java.util.List;
* Created by snoop on 17. 7. 27. * Created by snoop on 17. 7. 27.
*/ */
public interface MetaProbeArchitectureService { public interface MetaProbeArchitectureService {
@WebappAPI @WebappAPI
List<MetaProbeArchitecture> readAll() throws OverflowException; List<MetaProbeArchitecture> readAll() throws OverflowException;
} }

View File

@ -10,6 +10,6 @@ import java.util.List;
* Created by snoop on 17. 7. 27. * Created by snoop on 17. 7. 27.
*/ */
public interface MetaProbeOsService { public interface MetaProbeOsService {
@WebappAPI @WebappAPI
List<MetaProbeOs> readAll() throws OverflowException; List<MetaProbeOs> readAll() throws OverflowException;
} }

View File

@ -11,6 +11,6 @@ import java.util.List;
* Created by snoop on 17. 7. 27. * Created by snoop on 17. 7. 27.
*/ */
public interface MetaProbePackageService { public interface MetaProbePackageService {
@WebappAPI @WebappAPI
List<MetaProbePackage> readAllByOs(MetaProbeOs metaProbeOs) throws OverflowException; List<MetaProbePackage> readAllByMetaProbeOs(MetaProbeOs metaProbeOs) throws OverflowException;
} }

View File

@ -10,7 +10,7 @@ import java.util.List;
* Created by snoop on 17. 7. 27. * Created by snoop on 17. 7. 27.
*/ */
public interface MetaProbeStatusService { public interface MetaProbeStatusService {
@WebappAPI @WebappAPI
List<MetaProbeStatus> readAll() throws OverflowException; List<MetaProbeStatus> readAll() throws OverflowException;
} }

View File

@ -10,6 +10,6 @@ import java.util.List;
* Created by snoop on 17. 7. 27. * Created by snoop on 17. 7. 27.
*/ */
public interface MetaProbeTaskTypeService { public interface MetaProbeTaskTypeService {
@WebappAPI @WebappAPI
List<MetaProbeTaskType> readAll() throws OverflowException; List<MetaProbeTaskType> readAll() throws OverflowException;
} }

View File

@ -10,6 +10,6 @@ import java.util.List;
* Created by snoop on 17. 7. 27. * Created by snoop on 17. 7. 27.
*/ */
public interface MetaProbeVersionService { public interface MetaProbeVersionService {
@WebappAPI @WebappAPI
List<MetaProbeVersion> readAll() throws OverflowException; List<MetaProbeVersion> readAll() throws OverflowException;
} }

View File

@ -2,7 +2,6 @@ package com.loafle.overflow.service.central.meta;
import com.loafle.overflow.core.annotation.WebappAPI; import com.loafle.overflow.core.annotation.WebappAPI;
import com.loafle.overflow.core.exception.OverflowException; import com.loafle.overflow.core.exception.OverflowException;
import com.loafle.overflow.model.meta.MetaCrawler;
import com.loafle.overflow.model.meta.MetaSensorDisplayItem; import com.loafle.overflow.model.meta.MetaSensorDisplayItem;
import java.util.List; import java.util.List;
@ -12,12 +11,12 @@ import java.util.List;
*/ */
public interface MetaSensorDisplayItemService { public interface MetaSensorDisplayItemService {
@WebappAPI @WebappAPI
MetaSensorDisplayItem regist(MetaSensorDisplayItem item) throws OverflowException; MetaSensorDisplayItem regist(MetaSensorDisplayItem metaSensorDisplayItem) throws OverflowException;
@WebappAPI @WebappAPI
MetaSensorDisplayItem read(Long id) throws OverflowException; MetaSensorDisplayItem read(Long id) throws OverflowException;
@WebappAPI @WebappAPI
List<MetaSensorDisplayItem> readAllByCrawler(MetaCrawler crawler) throws OverflowException; List<MetaSensorDisplayItem> readAllByCrawlerID(Short metaCrawlerID) throws OverflowException;
} }

View File

@ -2,7 +2,6 @@ package com.loafle.overflow.service.central.meta;
import com.loafle.overflow.core.annotation.WebappAPI; import com.loafle.overflow.core.annotation.WebappAPI;
import com.loafle.overflow.core.exception.OverflowException; import com.loafle.overflow.core.exception.OverflowException;
import com.loafle.overflow.model.meta.MetaSensorDisplayItem;
import com.loafle.overflow.model.meta.MetaSensorDisplayMapping; import com.loafle.overflow.model.meta.MetaSensorDisplayMapping;
import com.loafle.overflow.model.meta.MetaSensorItemKey; import com.loafle.overflow.model.meta.MetaSensorItemKey;
@ -12,9 +11,9 @@ import java.util.List;
* Created by snoop on 18. 4. 24. * Created by snoop on 18. 4. 24.
*/ */
public interface MetaSensorDisplayMappingService { public interface MetaSensorDisplayMappingService {
@WebappAPI @WebappAPI
MetaSensorDisplayMapping regist(MetaSensorDisplayMapping m) throws OverflowException; MetaSensorDisplayMapping regist(MetaSensorDisplayMapping metaSensorDisplayMapping) throws OverflowException;
@WebappAPI @WebappAPI
List<MetaSensorItemKey> readAllMetaSensorItemKeyByDisplayItem(MetaSensorDisplayItem displayItem) throws OverflowException; List<MetaSensorItemKey> readAllMetaSensorItemKeyByDisplayItemID(Long metaSensorDisplayItemID) throws OverflowException;
} }

View File

@ -2,7 +2,6 @@ package com.loafle.overflow.service.central.meta;
import com.loafle.overflow.core.annotation.WebappAPI; import com.loafle.overflow.core.annotation.WebappAPI;
import com.loafle.overflow.core.exception.OverflowException; import com.loafle.overflow.core.exception.OverflowException;
import com.loafle.overflow.model.meta.MetaCrawler;
import com.loafle.overflow.model.meta.MetaSensorItemKey; import com.loafle.overflow.model.meta.MetaSensorItemKey;
import java.util.List; import java.util.List;
@ -12,9 +11,9 @@ import java.util.Map;
* Created by snoop on 17. 8. 29. * Created by snoop on 17. 8. 29.
*/ */
public interface MetaSensorItemKeyService { public interface MetaSensorItemKeyService {
@WebappAPI @WebappAPI
List<MetaSensorItemKey> readAllByCrawler(MetaCrawler metaCrawler) throws OverflowException; List<MetaSensorItemKey> readAllByMetaCrawlerID(Short metaCrawlerID) throws OverflowException;
@WebappAPI @WebappAPI
Map<Integer, MetaSensorItemKey> readAllMapByCrawler(MetaCrawler metaCrawler) throws OverflowException; Map<Integer, MetaSensorItemKey> readAllMapByMetaCrawlerID(Short metaCrawlerID) throws OverflowException;
} }

Some files were not shown because too many files have changed in this diff Show More