From 5d55239309898cc71c6cc3cf9b36d0b75add2d7c Mon Sep 17 00:00:00 2001 From: insanity Date: Fri, 27 Apr 2018 12:15:46 +0900 Subject: [PATCH] readByTempProbeKey --- .../java/com/loafle/overflow/model/probe/Probe.java | 13 +++++++++++++ .../central/noauthprobe/NoAuthProbeService.java | 3 +++ 2 files changed, 16 insertions(+) diff --git a/src/main/java/com/loafle/overflow/model/probe/Probe.java b/src/main/java/com/loafle/overflow/model/probe/Probe.java index bfdaaf3..1862693 100644 --- a/src/main/java/com/loafle/overflow/model/probe/Probe.java +++ b/src/main/java/com/loafle/overflow/model/probe/Probe.java @@ -25,6 +25,7 @@ public class Probe { private String cidr; private Date authorizeDate; private Member authorizeMember; + private int targetCount = 0; public Probe() { @@ -143,4 +144,16 @@ public class Probe { this.authorizeMember = authorizeMember; } + + @Column(name = "TARGET_COUNT", nullable = false) + public int getTargetCount() { + return targetCount; + } + + public void setTargetCount(int targetCount) { + this.targetCount = targetCount; + } + + + } diff --git a/src/main/java/com/loafle/overflow/service/central/noauthprobe/NoAuthProbeService.java b/src/main/java/com/loafle/overflow/service/central/noauthprobe/NoAuthProbeService.java index 16f92c8..d0c93a9 100644 --- a/src/main/java/com/loafle/overflow/service/central/noauthprobe/NoAuthProbeService.java +++ b/src/main/java/com/loafle/overflow/service/central/noauthprobe/NoAuthProbeService.java @@ -14,6 +14,8 @@ import java.util.List; public interface NoAuthProbeService { @ProbeAPI NoAuthProbe regist(NoAuthProbe noAuthProbe) throws OverflowException; + @ProbeAPI + NoAuthProbe readByTempProbeKey(String tempKey) throws OverflowException; @WebappAPI List readAllByDomain(Domain domain) throws OverflowException; @@ -21,4 +23,5 @@ public interface NoAuthProbeService { List acceptNoAuthProbe(NoAuthProbe noAuthProbe) throws OverflowException; @WebappAPI List denyNoauthProbe(NoAuthProbe noAuthProbe) throws OverflowException; + }