This commit is contained in:
geek 2018-04-24 16:13:04 +09:00
parent 3308dce4fc
commit 8ca180c1eb
151 changed files with 568 additions and 942 deletions

View File

@ -1,6 +1,6 @@
package com.loafle.overflow.module.apikey.model; package com.loafle.overflow.model.apikey;
import com.loafle.overflow.module.domain.model.Domain; import com.loafle.overflow.model.domain.Domain;
import javax.persistence.*; import javax.persistence.*;
import java.util.Date; import java.util.Date;

View File

@ -1,7 +1,7 @@
package com.loafle.overflow.module.auth.model; package com.loafle.overflow.model.auth;
import com.loafle.overflow.module.meta.model.MetaCrawler; import com.loafle.overflow.model.meta.MetaCrawler;
import com.loafle.overflow.module.target.model.Target; import com.loafle.overflow.model.target.Target;
import org.hibernate.annotations.OnDelete; import org.hibernate.annotations.OnDelete;
import org.hibernate.annotations.OnDeleteAction; import org.hibernate.annotations.OnDeleteAction;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.discovery.model; package com.loafle.overflow.model.discovery;
/** /**
* DiscoveryHost * DiscoveryHost

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.discovery.model; package com.loafle.overflow.model.discovery;
/** /**
* DiscoveryPort * DiscoveryPort

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.discovery.model; package com.loafle.overflow.model.discovery;
/** /**
* DiscoveryService * DiscoveryService

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.discovery.model; package com.loafle.overflow.model.discovery;
/** /**
* DiscoveryZone * DiscoveryZone

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.discovery.model; package com.loafle.overflow.model.discovery;
import java.util.Date; import java.util.Date;

View File

@ -1,6 +1,6 @@
package com.loafle.overflow.module.discovery.model; package com.loafle.overflow.model.discovery;
import com.loafle.overflow.module.core.type.PortType; import com.loafle.overflow.core.type.PortType;
import java.util.Date; import java.util.Date;

View File

@ -1,9 +1,9 @@
package com.loafle.overflow.module.discovery.model; package com.loafle.overflow.model.discovery;
import java.util.Date; import java.util.Date;
import com.loafle.overflow.module.core.type.CryptoType; import com.loafle.overflow.core.type.CryptoType;
/** /**
* Created by root on 17. 6. 4. * Created by root on 17. 6. 4.

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.discovery.model; package com.loafle.overflow.model.discovery;
import java.util.Date; import java.util.Date;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.domain.model; package com.loafle.overflow.model.domain;
import javax.persistence.*; import javax.persistence.*;
import java.util.Date; import java.util.Date;

View File

@ -1,6 +1,6 @@
package com.loafle.overflow.module.domain.model; package com.loafle.overflow.model.domain;
import com.loafle.overflow.module.member.model.Member; import com.loafle.overflow.model.member.Member;
import javax.persistence.*; import javax.persistence.*;
import java.sql.Timestamp; import java.sql.Timestamp;

View File

@ -1,6 +1,6 @@
package com.loafle.overflow.module.email.model; package com.loafle.overflow.model.email;
import com.loafle.overflow.module.member.model.Member; import com.loafle.overflow.model.member.Member;
import javax.persistence.*; import javax.persistence.*;
import java.util.Date; import java.util.Date;

View File

@ -1,9 +1,9 @@
package com.loafle.overflow.module.history.model; package com.loafle.overflow.model.history;
import com.loafle.overflow.module.domain.model.Domain; import com.loafle.overflow.model.domain.Domain;
import com.loafle.overflow.module.member.model.Member; import com.loafle.overflow.model.member.Member;
import com.loafle.overflow.module.meta.model.MetaHistoryType; import com.loafle.overflow.model.meta.MetaHistoryType;
import com.loafle.overflow.module.probe.model.Probe; import com.loafle.overflow.model.probe.Probe;
import javax.persistence.*; import javax.persistence.*;
import java.util.Date; import java.util.Date;

View File

@ -1,9 +1,9 @@
package com.loafle.overflow.module.infra.model; package com.loafle.overflow.model.infra;
import com.loafle.overflow.module.meta.model.MetaInfraType; import com.loafle.overflow.model.meta.MetaInfraType;
import com.loafle.overflow.module.probe.model.Probe; import com.loafle.overflow.model.probe.Probe;
import com.loafle.overflow.module.target.model.Target; import com.loafle.overflow.model.target.Target;
import javax.persistence.*; import javax.persistence.*;
import java.util.Date; import java.util.Date;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.infra.model; package com.loafle.overflow.model.infra;
import javax.persistence.*; import javax.persistence.*;
import java.util.Date; import java.util.Date;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.infra.model; package com.loafle.overflow.model.infra;
import javax.persistence.*; import javax.persistence.*;
import java.util.Date; import java.util.Date;

View File

@ -1,7 +1,7 @@
package com.loafle.overflow.module.infra.model; package com.loafle.overflow.model.infra;
import com.loafle.overflow.module.meta.model.MetaInfraVendor; import com.loafle.overflow.model.meta.MetaInfraVendor;
import javax.persistence.*; import javax.persistence.*;
import java.util.Date; import java.util.Date;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.infra.model; package com.loafle.overflow.model.infra;
import javax.persistence.*; import javax.persistence.*;
import java.util.Date; import java.util.Date;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.infra.model; package com.loafle.overflow.model.infra;
import javax.persistence.*; import javax.persistence.*;
import java.util.Date; import java.util.Date;

View File

@ -1,7 +1,7 @@
package com.loafle.overflow.module.infra.model; package com.loafle.overflow.model.infra;
import com.loafle.overflow.module.meta.model.MetaInfraVendor; import com.loafle.overflow.model.meta.MetaInfraVendor;
import javax.persistence.*; import javax.persistence.*;
import java.util.Date; import java.util.Date;

View File

@ -1,7 +1,7 @@
package com.loafle.overflow.module.infra.model; package com.loafle.overflow.model.infra;
import com.loafle.overflow.module.meta.model.MetaInfraVendor; import com.loafle.overflow.model.meta.MetaInfraVendor;
import javax.persistence.*; import javax.persistence.*;
import java.util.Date; import java.util.Date;

View File

@ -1,6 +1,6 @@
package com.loafle.overflow.module.member.model; package com.loafle.overflow.model.member;
import com.loafle.overflow.module.meta.model.MetaMemberStatus; import com.loafle.overflow.model.meta.MetaMemberStatus;
import javax.persistence.*; import javax.persistence.*;
import java.util.Date; import java.util.Date;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.member.model; package com.loafle.overflow.model.member;
import javax.persistence.*; import javax.persistence.*;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.meta.model; package com.loafle.overflow.model.meta;
import javax.persistence.*; import javax.persistence.*;
import java.util.Date; import java.util.Date;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.meta.model; package com.loafle.overflow.model.meta;
import javax.persistence.*; import javax.persistence.*;
import java.util.Date; import java.util.Date;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.meta.model; package com.loafle.overflow.model.meta;
import javax.persistence.*; import javax.persistence.*;
import java.util.Date; import java.util.Date;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.meta.model; package com.loafle.overflow.model.meta;
import javax.persistence.*; import javax.persistence.*;
import java.util.Date; import java.util.Date;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.meta.model; package com.loafle.overflow.model.meta;
import javax.persistence.*; import javax.persistence.*;
import java.util.Date; import java.util.Date;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.meta.model; package com.loafle.overflow.model.meta;
import javax.persistence.*; import javax.persistence.*;
import java.util.Date; import java.util.Date;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.meta.model; package com.loafle.overflow.model.meta;
import javax.persistence.Column; import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.meta.model; package com.loafle.overflow.model.meta;
import javax.persistence.Column; import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.meta.model; package com.loafle.overflow.model.meta;
import javax.persistence.*; import javax.persistence.*;
import java.util.Date; import java.util.Date;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.meta.model; package com.loafle.overflow.model.meta;
import javax.persistence.*; import javax.persistence.*;
import java.util.Date; import java.util.Date;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.meta.model; package com.loafle.overflow.model.meta;
import javax.persistence.*; import javax.persistence.*;
import java.util.Date; import java.util.Date;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.meta.model; package com.loafle.overflow.model.meta;
import javax.persistence.*; import javax.persistence.*;
import java.util.Date; import java.util.Date;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.meta.model; package com.loafle.overflow.model.meta;
import javax.persistence.Column; import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.meta.model; package com.loafle.overflow.model.meta;
import javax.persistence.*; import javax.persistence.*;
import java.util.Date; import java.util.Date;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.meta.model; package com.loafle.overflow.model.meta;
import javax.persistence.*; import javax.persistence.*;
import java.util.Date; import java.util.Date;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.meta.model; package com.loafle.overflow.model.meta;
import javax.persistence.*; import javax.persistence.*;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.meta.model; package com.loafle.overflow.model.meta;
import javax.persistence.*; import javax.persistence.*;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.meta.model; package com.loafle.overflow.model.meta;
import javax.persistence.*; import javax.persistence.*;
import java.util.Date; import java.util.Date;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.meta.model; package com.loafle.overflow.model.meta;
import javax.persistence.*; import javax.persistence.*;
import java.util.Date; import java.util.Date;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.meta.model; package com.loafle.overflow.model.meta;
import javax.persistence.*; import javax.persistence.*;
import java.util.Date; import java.util.Date;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.meta.model; package com.loafle.overflow.model.meta;
import javax.persistence.*; import javax.persistence.*;
import java.util.Date; import java.util.Date;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.meta.model; package com.loafle.overflow.model.meta;
import javax.persistence.Column; import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.meta.model; package com.loafle.overflow.model.meta;
import javax.persistence.*; import javax.persistence.*;
import java.util.Date; import java.util.Date;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.meta.model; package com.loafle.overflow.model.meta;
import javax.persistence.*; import javax.persistence.*;
import java.util.Date; import java.util.Date;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.meta.type; package com.loafle.overflow.model.meta.type;
/** /**
* Created by snoop on 17. 9. 8. * Created by snoop on 17. 9. 8.

View File

@ -1,9 +1,9 @@
package com.loafle.overflow.module.noauthprobe.model; package com.loafle.overflow.model.noauthprobe;
import com.loafle.overflow.module.domain.model.Domain; import com.loafle.overflow.model.domain.Domain;
import com.loafle.overflow.module.meta.model.MetaNoAuthProbeStatus; import com.loafle.overflow.model.meta.MetaNoAuthProbeStatus;
import com.loafle.overflow.module.probe.model.Probe; import com.loafle.overflow.model.probe.Probe;
import javax.persistence.*; import javax.persistence.*;
import java.util.Date; import java.util.Date;

View File

@ -1,6 +1,6 @@
package com.loafle.overflow.module.notification.model; package com.loafle.overflow.model.notification;
import com.loafle.overflow.module.member.model.Member; import com.loafle.overflow.model.member.Member;
import javax.persistence.*; import javax.persistence.*;
import java.util.Date; import java.util.Date;

View File

@ -1,8 +1,8 @@
package com.loafle.overflow.module.probe.model; package com.loafle.overflow.model.probe;
import com.loafle.overflow.module.domain.model.Domain; import com.loafle.overflow.model.domain.Domain;
import com.loafle.overflow.module.member.model.Member; import com.loafle.overflow.model.member.Member;
import com.loafle.overflow.module.meta.model.MetaProbeStatus; import com.loafle.overflow.model.meta.MetaProbeStatus;
import javax.persistence.*; import javax.persistence.*;
import java.util.Date; import java.util.Date;

View File

@ -1,6 +1,6 @@
package com.loafle.overflow.module.probe.model; package com.loafle.overflow.model.probe;
import com.loafle.overflow.module.infra.model.InfraHost; import com.loafle.overflow.model.infra.InfraHost;
import javax.persistence.*; import javax.persistence.*;

View File

@ -1,7 +1,7 @@
package com.loafle.overflow.module.probe.model; package com.loafle.overflow.model.probe;
import com.loafle.overflow.module.meta.model.MetaProbeTaskType; import com.loafle.overflow.model.meta.MetaProbeTaskType;
import javax.persistence.*; import javax.persistence.*;
import java.util.Date; import java.util.Date;

View File

@ -1,8 +1,8 @@
package com.loafle.overflow.module.sensor.model; package com.loafle.overflow.model.sensor;
import com.loafle.overflow.module.meta.model.MetaCrawler; import com.loafle.overflow.model.meta.MetaCrawler;
import com.loafle.overflow.module.meta.model.MetaSensorStatus; import com.loafle.overflow.model.meta.MetaSensorStatus;
import com.loafle.overflow.module.target.model.Target; import com.loafle.overflow.model.target.Target;
import org.hibernate.annotations.OnDelete; import org.hibernate.annotations.OnDelete;
import org.hibernate.annotations.OnDeleteAction; import org.hibernate.annotations.OnDeleteAction;

View File

@ -1,6 +1,6 @@
package com.loafle.overflow.module.sensor.model; package com.loafle.overflow.model.sensor;
import com.loafle.overflow.module.meta.model.MetaSensorDisplayItem; import com.loafle.overflow.model.meta.MetaSensorDisplayItem;
import org.hibernate.annotations.OnDelete; import org.hibernate.annotations.OnDelete;
import org.hibernate.annotations.OnDeleteAction; import org.hibernate.annotations.OnDeleteAction;

View File

@ -1,7 +1,7 @@
package com.loafle.overflow.module.sensor.model; package com.loafle.overflow.model.sensor;
import com.loafle.overflow.module.meta.model.MetaSensorDisplayItem; import com.loafle.overflow.model.meta.MetaSensorDisplayItem;
import com.loafle.overflow.module.meta.model.MetaSensorItemKey; import com.loafle.overflow.model.meta.MetaSensorItemKey;
import javax.persistence.*; import javax.persistence.*;

View File

@ -1,6 +1,6 @@
package com.loafle.overflow.module.sensorconfig.model; package com.loafle.overflow.model.sensorconfig;
import com.loafle.overflow.module.core.type.PortType; import com.loafle.overflow.core.type.PortType;
/** /**
* Connection * Connection

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.sensorconfig.model; package com.loafle.overflow.model.sensorconfig;
/** /**
* Crawler * Crawler

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.sensorconfig.model; package com.loafle.overflow.model.sensorconfig;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.sensorconfig.model; package com.loafle.overflow.model.sensorconfig;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.sensorconfig.model; package com.loafle.overflow.model.sensorconfig;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.sensorconfig.model; package com.loafle.overflow.model.sensorconfig;
import java.util.Map; import java.util.Map;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.sensorconfig.model; package com.loafle.overflow.model.sensorconfig;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.sensorconfig.model; package com.loafle.overflow.model.sensorconfig;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.sensorconfig.model; package com.loafle.overflow.model.sensorconfig;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.sensorconfig.model; package com.loafle.overflow.model.sensorconfig;
/** /**
* Schedule * Schedule

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.sensorconfig.model; package com.loafle.overflow.model.sensorconfig;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.sensorconfig.model; package com.loafle.overflow.model.sensorconfig;
import java.util.Map; import java.util.Map;

View File

@ -1,6 +1,6 @@
package com.loafle.overflow.module.target.model; package com.loafle.overflow.model.target;
import com.loafle.overflow.module.sensor.model.Sensor; import com.loafle.overflow.model.sensor.Sensor;
import javax.persistence.*; import javax.persistence.*;
import java.util.Date; import java.util.Date;

View File

@ -1,4 +1,4 @@
package com.loafle.overflow.module.websocket.model; package com.loafle.overflow.model.websocket;
import javax.persistence.*; import javax.persistence.*;
import java.util.Date; import java.util.Date;

View File

@ -1,11 +0,0 @@
package com.loafle.overflow.module.core.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface ProbeAPI {
}

View File

@ -1,17 +0,0 @@
package com.loafle.overflow.module.core.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.springframework.core.annotation.AliasFor;
import org.springframework.stereotype.Component;
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Component
public @interface RPCService {
@AliasFor(annotation = Component.class)
String value() default "";
}

View File

@ -1,11 +0,0 @@
package com.loafle.overflow.module.core.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface WebappAPI {
}

View File

@ -1,7 +0,0 @@
package com.loafle.overflow.module.core.exception;
public class OverflowException extends Exception {
public OverflowException(String s, Throwable throwable) {
super(s, throwable);
}
}

View File

@ -1,11 +0,0 @@
package com.loafle.overflow.module.core.interfaces;
/**
* Service
*/
public interface Service {
void initService() throws Exception;
void startService() throws Exception;
void stopService();
void destroyService();
}

View File

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

View File

@ -1,44 +0,0 @@
package com.loafle.overflow.module.core.model;
/**
* Created by insanity on 17. 8. 25.
*/
public class PageParams {
private int pageNo;
private int countPerPage;
private String sortCol;
private String sortDirection;
public int getPageNo() {
return pageNo;
}
public void setPageNo(int pageNo) {
this.pageNo = pageNo;
}
public int getCountPerPage() {
return countPerPage;
}
public void setCountPerPage(int countPerPage) {
this.countPerPage = countPerPage;
}
public String getSortCol() {
return sortCol;
}
public void setSortCol(String sortCol) {
this.sortCol = sortCol;
}
public String getSortDirection() {
return sortDirection;
}
public void setSortDirection(String sortDirection) {
this.sortDirection = sortDirection;
}
}

View File

@ -1,122 +0,0 @@
package com.loafle.overflow.module.core.model;
import java.util.ArrayList;
import java.util.List;
public class PublishMessage {
private TargetType targetType;
private List<String> targets;
private PublishMessageBody message;
public void setTargetType(TargetType targetType) {
this.targetType = targetType;
}
public TargetType getTargetType() {
return this.targetType;
}
public void setTargets(List<String> targets) {
this.targets = targets;
}
public void addTarget(String target) {
if (null == targets) {
targets = new ArrayList<>();
}
targets.add(target);
}
public List<String> getTargets() {
return targets;
}
public void setMessage(PublishMessageBody message) {
this.message = message;
}
public PublishMessageBody getMessage() {
return message;
}
public static enum TargetType {
MEMBER_SESSION("MEMBER_SESSION"),
MEMBER("MEMBER"),
PROBE("PROBE");
final private String name;
private TargetType(String name) {
this.name = name;
}
public String toString() {
return name;
}
}
public static class PublishMessageBody {
private String jsonrpc = "2.0";
private PublishMessageBodyNotification result;
public PublishMessageBody() {
this.result = new PublishMessageBodyNotification();
}
public PublishMessageBody(String method) {
this();
this.result.setMethod(method);
}
public PublishMessageBody(String method, List<String> params) {
this(method);
this.result.setParams(params);
}
public String getJsonrpc() {
return jsonrpc;
}
public void setJsonrpc(String jsonrpc) {
this.jsonrpc = jsonrpc;
}
public PublishMessageBodyNotification getResult() {
return result;
}
public void setResult(PublishMessageBodyNotification result) {
this.result = result;
}
}
public static class PublishMessageBodyNotification {
private String method;
private List<String> params;
public String getMethod() {
return method;
}
public void setMethod(String method) {
this.method = method;
}
public List<String> getParams() {
return params;
}
public void setParams(List<String> params) {
this.params = params;
}
public void addParams(String param) {
if (null == this.params) {
this.params = new ArrayList<>();
}
this.params.add(param);
}
}
}

View File

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

View File

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

View File

@ -1,13 +0,0 @@
package com.loafle.overflow.module.domain.service;
import com.loafle.overflow.module.core.annotation.WebappAPI;
import com.loafle.overflow.module.core.exception.OverflowException;
import com.loafle.overflow.module.domain.model.Domain;
/**
* Created by snoop on 17. 6. 28.
*/
public interface DomainService {
@WebappAPI
void regist(Domain domain) throws OverflowException;
}

View File

@ -1,17 +0,0 @@
package com.loafle.overflow.module.meta.service;
import com.loafle.overflow.module.core.annotation.WebappAPI;
import com.loafle.overflow.module.core.exception.OverflowException;
import com.loafle.overflow.module.meta.model.MetaCrawler;
import com.loafle.overflow.module.meta.model.MetaCrawlerInputItem;
import java.util.List;
/**
* Created by snoop on 17. 7. 27.
*/
public interface MetaCrawlerInputItemService {
@WebappAPI
List<MetaCrawlerInputItem> readAllByMetaCrawler(MetaCrawler metaCrawler) throws OverflowException;
}

View File

@ -1,16 +0,0 @@
package com.loafle.overflow.module.meta.service;
import com.loafle.overflow.module.core.annotation.WebappAPI;
import com.loafle.overflow.module.core.exception.OverflowException;
import com.loafle.overflow.module.meta.model.MetaCrawler;
import java.util.List;
/**
* Created by snoop on 17. 7. 27.
*/
public interface MetaCrawlerService {
@WebappAPI
List<MetaCrawler> readAll() throws OverflowException;
}

View File

@ -1,16 +0,0 @@
package com.loafle.overflow.module.meta.service;
import com.loafle.overflow.module.core.annotation.WebappAPI;
import com.loafle.overflow.module.core.exception.OverflowException;
import com.loafle.overflow.module.meta.model.MetaInfraType;
import java.util.List;
/**
* Created by snoop on 17. 7. 27.
*/
public interface MetaInfraTypeService {
@WebappAPI
List<MetaInfraType> readAll() throws OverflowException;
}

View File

@ -1,16 +0,0 @@
package com.loafle.overflow.module.meta.service;
import com.loafle.overflow.module.core.annotation.WebappAPI;
import com.loafle.overflow.module.core.exception.OverflowException;
import com.loafle.overflow.module.meta.model.MetaInfraType;
import com.loafle.overflow.module.meta.model.MetaInfraVendor;
import java.util.List;
/**
* Created by snoop on 17. 7. 27.
*/
public interface MetaInfraVendorService {
@WebappAPI
List<MetaInfraVendor> readAllByMetaInfraType(MetaInfraType infraType) throws OverflowException;
}

View File

@ -1,15 +0,0 @@
package com.loafle.overflow.module.meta.service;
import com.loafle.overflow.module.core.annotation.WebappAPI;
import com.loafle.overflow.module.core.exception.OverflowException;
import com.loafle.overflow.module.meta.model.MetaInputType;
import java.util.List;
/**
* Created by snoop on 17. 7. 27.
*/
public interface MetaInputTypeService {
@WebappAPI
List<MetaInputType> readAll() throws OverflowException;
}

View File

@ -1,15 +0,0 @@
package com.loafle.overflow.module.meta.service;
import com.loafle.overflow.module.core.annotation.WebappAPI;
import com.loafle.overflow.module.core.exception.OverflowException;
import com.loafle.overflow.module.meta.model.MetaMemberStatus;
import java.util.List;
/**
* Created by snoop on 17. 7. 27.
*/
public interface MetaMemberStatusService {
@WebappAPI
List<MetaMemberStatus> readAll() throws OverflowException;
}

View File

@ -1,15 +0,0 @@
package com.loafle.overflow.module.meta.service;
import com.loafle.overflow.module.core.annotation.WebappAPI;
import com.loafle.overflow.module.core.exception.OverflowException;
import com.loafle.overflow.module.meta.model.MetaNoAuthProbeStatus;
import java.util.List;
/**
* Created by snoop on 17. 7. 27.
*/
public interface MetaNoAuthProbeStatusService {
@WebappAPI
List<MetaNoAuthProbeStatus> readAll() throws OverflowException;
}

View File

@ -1,15 +0,0 @@
package com.loafle.overflow.module.meta.service;
import com.loafle.overflow.module.core.annotation.WebappAPI;
import com.loafle.overflow.module.core.exception.OverflowException;
import com.loafle.overflow.module.meta.model.MetaProbeArchitecture;
import java.util.List;
/**
* Created by snoop on 17. 7. 27.
*/
public interface MetaProbeArchitectureService {
@WebappAPI
List<MetaProbeArchitecture> readAll() throws OverflowException;
}

View File

@ -1,15 +0,0 @@
package com.loafle.overflow.module.meta.service;
import com.loafle.overflow.module.core.annotation.WebappAPI;
import com.loafle.overflow.module.core.exception.OverflowException;
import com.loafle.overflow.module.meta.model.MetaProbeOs;
import java.util.List;
/**
* Created by snoop on 17. 7. 27.
*/
public interface MetaProbeOsService {
@WebappAPI
List<MetaProbeOs> readAll() throws OverflowException;
}

View File

@ -1,16 +0,0 @@
package com.loafle.overflow.module.meta.service;
import com.loafle.overflow.module.core.annotation.WebappAPI;
import com.loafle.overflow.module.core.exception.OverflowException;
import com.loafle.overflow.module.meta.model.MetaProbeOs;
import com.loafle.overflow.module.meta.model.MetaProbePackage;
import java.util.List;
/**
* Created by snoop on 17. 7. 27.
*/
public interface MetaProbePackageService {
@WebappAPI
List<MetaProbePackage> readAllByOs(MetaProbeOs metaProbeOs) throws OverflowException;
}

View File

@ -1,16 +0,0 @@
package com.loafle.overflow.module.meta.service;
import com.loafle.overflow.module.core.annotation.WebappAPI;
import com.loafle.overflow.module.core.exception.OverflowException;
import com.loafle.overflow.module.meta.model.MetaProbeStatus;
import java.util.List;
/**
* Created by snoop on 17. 7. 27.
*/
public interface MetaProbeStatusService {
@WebappAPI
List<MetaProbeStatus> readAll() throws OverflowException;
}

View File

@ -1,15 +0,0 @@
package com.loafle.overflow.module.meta.service;
import com.loafle.overflow.module.core.annotation.WebappAPI;
import com.loafle.overflow.module.core.exception.OverflowException;
import com.loafle.overflow.module.meta.model.MetaProbeTaskType;
import java.util.List;
/**
* Created by snoop on 17. 7. 27.
*/
public interface MetaProbeTaskTypeService {
@WebappAPI
List<MetaProbeTaskType> readAll() throws OverflowException;
}

View File

@ -1,15 +0,0 @@
package com.loafle.overflow.module.meta.service;
import com.loafle.overflow.module.core.annotation.WebappAPI;
import com.loafle.overflow.module.core.exception.OverflowException;
import com.loafle.overflow.module.meta.model.MetaProbeVersion;
import java.util.List;
/**
* Created by snoop on 17. 7. 27.
*/
public interface MetaProbeVersionService {
@WebappAPI
List<MetaProbeVersion> readAll() throws OverflowException;
}

View File

@ -1,20 +0,0 @@
package com.loafle.overflow.module.meta.service;
import com.loafle.overflow.module.core.annotation.WebappAPI;
import com.loafle.overflow.module.core.exception.OverflowException;
import com.loafle.overflow.module.meta.model.MetaSensorDisplayItem;
import com.loafle.overflow.module.meta.model.MetaSensorDisplayMapping;
import com.loafle.overflow.module.meta.model.MetaSensorItemKey;
import java.util.List;
/**
* Created by snoop on 18. 4. 24.
*/
public interface MetaSensorDisplayMappingService {
@WebappAPI
MetaSensorDisplayMapping regist(MetaSensorDisplayMapping m) throws OverflowException;
@WebappAPI
List<MetaSensorItemKey> findAllByDisplayItem(MetaSensorDisplayItem displayItem) throws OverflowException;
}

View File

@ -1,17 +0,0 @@
package com.loafle.overflow.module.meta.service;
import com.loafle.overflow.module.core.annotation.WebappAPI;
import com.loafle.overflow.module.core.exception.OverflowException;
import com.loafle.overflow.module.meta.model.MetaSensorItem;
import java.util.List;
/**
* Created by snoop on 17. 7. 27.
*/
public interface MetaSensorItemService {
@WebappAPI
List<MetaSensorItem> readAll() throws OverflowException;
}

View File

@ -1,14 +0,0 @@
package com.loafle.overflow.module.meta.service;
import com.loafle.overflow.module.core.annotation.WebappAPI;
import com.loafle.overflow.module.core.exception.OverflowException;
import com.loafle.overflow.module.meta.model.MetaSensorItemUnit;
/**
* Created by insanity on 17. 9. 20.
*/
public interface MetaSensorItemUnitService {
@WebappAPI
MetaSensorItemUnit regist(MetaSensorItemUnit sensorItemUnit) throws OverflowException;
}

View File

@ -1,17 +0,0 @@
package com.loafle.overflow.module.meta.service;
import com.loafle.overflow.module.core.annotation.WebappAPI;
import com.loafle.overflow.module.core.exception.OverflowException;
import com.loafle.overflow.module.meta.model.MetaSensorStatus;
import java.util.List;
/**
* Created by snoop on 17. 7. 27.
*/
public interface MetaSensorStatusService {
@WebappAPI
List<MetaSensorStatus> readAll() throws OverflowException;
}

View File

@ -1,15 +0,0 @@
package com.loafle.overflow.module.probe.service;
import com.loafle.overflow.module.core.exception.OverflowException;
import com.loafle.overflow.module.probe.model.Probe;
import com.loafle.overflow.module.probe.model.ProbeHost;
/**
* Created by snoop on 17. 8. 21.
*/
public interface ProbeHostService {
//????
ProbeHost readByProbe(Probe probe) throws OverflowException;
ProbeHost regist(ProbeHost probeHost) throws OverflowException;
}

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