ing
This commit is contained in:
@@ -3,7 +3,6 @@ package com.loafle.overflow.service.central.apikey;
|
||||
import com.loafle.overflow.core.annotation.WebappAPI;
|
||||
import com.loafle.overflow.core.exception.OverflowException;
|
||||
import com.loafle.overflow.model.apikey.ApiKey;
|
||||
import com.loafle.overflow.model.domain.Domain;
|
||||
|
||||
/**
|
||||
* Created by geek on 17. 11. 7.
|
||||
@@ -12,7 +11,7 @@ public interface ApiKeyService {
|
||||
@WebappAPI
|
||||
ApiKey regist(ApiKey apiKey) throws OverflowException;
|
||||
@WebappAPI
|
||||
ApiKey readByDomain(Domain domain) throws OverflowException;
|
||||
ApiKey readByDomainID(Long domainID) throws OverflowException;
|
||||
boolean check(String apiKey) throws OverflowException;
|
||||
@WebappAPI
|
||||
ApiKey readByApiKey(String apiKey) throws OverflowException;
|
||||
|
||||
@@ -13,7 +13,7 @@ public interface AuthCrawlerService {
|
||||
@WebappAPI
|
||||
AuthCrawler regist(AuthCrawler authCrawler) throws OverflowException;
|
||||
@WebappAPI
|
||||
boolean checkAuthCrawler(long infraId, MetaCrawler crawler, String authJson) throws OverflowException;
|
||||
boolean checkAuthCrawler(Long infraId, MetaCrawler crawler, String authJson) throws OverflowException;
|
||||
@WebappAPI
|
||||
AuthCrawler readAuth(MetaCrawler metaCrawler, Target target) throws OverflowException;
|
||||
}
|
||||
|
||||
@@ -15,11 +15,11 @@ public interface DomainMemberService {
|
||||
@WebappAPI
|
||||
void regist(DomainMember domainMember) throws OverflowException;
|
||||
@WebappAPI
|
||||
Domain readDomainByMemberID(long id) throws OverflowException;
|
||||
Domain readDomainByMemberID(Long memberID) throws OverflowException;
|
||||
@WebappAPI
|
||||
DomainMember readByMemberEmail(String email) throws OverflowException;
|
||||
@WebappAPI
|
||||
List<Member> readAllMemberByDomain(Domain domain) throws OverflowException;
|
||||
@WebappAPI
|
||||
List<Member> readAllMemberByDomainID(final long domainID) throws OverflowException;
|
||||
List<Member> readAllMemberByDomainID(final Long domainID) throws OverflowException;
|
||||
}
|
||||
|
||||
@@ -14,11 +14,11 @@ public interface HistoryService {
|
||||
History regist(History history);
|
||||
|
||||
@WebappAPI
|
||||
Page<History> readAllByProbeAndType(Probe probe, MetaHistoryType type, PageParams pageParams);
|
||||
Page<History> readAllByProbeIDAndType(Long probeID, MetaHistoryType type, PageParams pageParams);
|
||||
@WebappAPI
|
||||
Page<History> readAllByProbe(Probe probe, PageParams pageParams);
|
||||
Page<History> readAllByProbeID(Long probeID, PageParams pageParams);
|
||||
@WebappAPI
|
||||
Page<History> readAllByDomain(Domain domain, PageParams pageParams);
|
||||
Page<History> readAllByDomainID(Long domainID, PageParams pageParams);
|
||||
@WebappAPI
|
||||
Page<History> readAllByDomainAndType(Domain domain, MetaHistoryType type, PageParams pageParams);
|
||||
Page<History> readAllByDomainIDAndType(Long domainID, MetaHistoryType type, PageParams pageParams);
|
||||
}
|
||||
|
||||
@@ -9,6 +9,6 @@ import com.loafle.overflow.model.infra.InfraHost;
|
||||
|
||||
public interface InfraHostService {
|
||||
InfraHost regist(InfraHost infraHost) throws OverflowException;
|
||||
InfraHost read(long id) throws OverflowException;
|
||||
InfraHost read(Long id) throws OverflowException;
|
||||
InfraHost readByIp(String ip) throws OverflowException;
|
||||
}
|
||||
|
||||
@@ -8,5 +8,5 @@ import com.loafle.overflow.model.infra.InfraMachine;
|
||||
*/
|
||||
public interface InfraMachineService {
|
||||
InfraMachine regist(InfraMachine infraMachine) throws OverflowException;
|
||||
InfraMachine read(long id) throws OverflowException;
|
||||
InfraMachine read(Long id) throws OverflowException;
|
||||
}
|
||||
|
||||
@@ -9,5 +9,5 @@ import com.loafle.overflow.model.infra.InfraOSApplication;
|
||||
|
||||
public interface InfraOSApplicationService {
|
||||
InfraOSApplication regist(InfraOSApplication infraOSApplication) throws OverflowException;
|
||||
InfraOSApplication read(long id) throws OverflowException;
|
||||
InfraOSApplication read(Long id) throws OverflowException;
|
||||
}
|
||||
|
||||
@@ -9,5 +9,5 @@ import com.loafle.overflow.model.infra.InfraOSDaemon;
|
||||
|
||||
public interface InfraOSDaemonService {
|
||||
InfraOSDaemon regist(InfraOSDaemon infraOSDaemon) throws OverflowException;
|
||||
InfraOSDaemon read(long id) throws OverflowException;
|
||||
InfraOSDaemon read(Long id) throws OverflowException;
|
||||
}
|
||||
|
||||
@@ -9,6 +9,6 @@ import com.loafle.overflow.model.infra.InfraOSPort;
|
||||
|
||||
public interface InfraOSPortService {
|
||||
InfraOSPort regist(InfraOSPort infraOSPort) throws OverflowException;
|
||||
InfraOSPort read(long id) throws OverflowException;
|
||||
InfraOSPort readByPort(long osId, int portNumber, String portType) throws OverflowException;
|
||||
InfraOSPort read(Long id) throws OverflowException;
|
||||
InfraOSPort readByPort(Long osId, int portNumber, String portType) throws OverflowException;
|
||||
}
|
||||
|
||||
@@ -9,5 +9,5 @@ import com.loafle.overflow.model.infra.InfraOS;
|
||||
|
||||
public interface InfraOSService {
|
||||
InfraOS regist(InfraOS infraOS) throws OverflowException;
|
||||
InfraOS read(long id) throws OverflowException;
|
||||
InfraOS read(Long id) throws OverflowException;
|
||||
}
|
||||
|
||||
@@ -17,10 +17,10 @@ import org.springframework.data.domain.Page;
|
||||
|
||||
public interface InfraService {
|
||||
Infra regist(Infra infra) throws OverflowException;
|
||||
Infra read(long id) throws OverflowException;
|
||||
Page<Infra> readAllByProbe(Probe probe, PageParams pageParams) throws OverflowException;
|
||||
Page<Infra> readAllByDomain(Domain domain, PageParams pageParams) throws OverflowException;
|
||||
List<Target> readAllTargetByDomain(Domain domain) throws OverflowException;
|
||||
Infra read(Long id) throws OverflowException;
|
||||
Page<Infra> readAllByProbeID(Long probeID, PageParams pageParams) throws OverflowException;
|
||||
Page<Infra> readAllByDomainID(Long domainID, PageParams pageParams) throws OverflowException;
|
||||
List<Target> readAllTargetByDomainID(Long domainID) throws OverflowException;
|
||||
List<Target> readAllTargetByProbeList(List<Probe> probeList) throws OverflowException;
|
||||
Infra readByTarget(Target target) throws OverflowException;
|
||||
Infra readByTargetID(Long targetID) throws OverflowException;
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ public interface MemberService {
|
||||
@WebappAPI
|
||||
Member forgotPassword(String signinId, String newPw) throws OverflowException;
|
||||
@WebappAPI
|
||||
Member read(long memberId) throws OverflowException;
|
||||
Member read(Long memberId) throws OverflowException;
|
||||
@WebappAPI
|
||||
void withdrawal(Member member) throws OverflowException;
|
||||
@WebappAPI
|
||||
@@ -35,5 +35,5 @@ public interface MemberService {
|
||||
@WebappAPI
|
||||
List<Member> readAllByDomain(Domain domain) throws OverflowException;
|
||||
@WebappAPI
|
||||
List<Member> readAllByDomainID(final long domainID) throws OverflowException;
|
||||
List<Member> readAllByDomainID(final Long domainID) throws OverflowException;
|
||||
}
|
||||
|
||||
@@ -11,13 +11,13 @@ import java.util.Map;
|
||||
*/
|
||||
public interface MemberTotpService {
|
||||
@WebappAPI
|
||||
void regist(Member member, String secretCode, String code) throws OverflowException;
|
||||
void regist(Member member, String secretCode, String code) throws OverflowException;
|
||||
@WebappAPI
|
||||
MemberTotp modify(MemberTotp totp) throws OverflowException;
|
||||
@WebappAPI
|
||||
void remove(long id) throws OverflowException;
|
||||
void remove(Long id) throws OverflowException;
|
||||
@WebappAPI
|
||||
MemberTotp read(long id) throws OverflowException;
|
||||
MemberTotp read(Long id) throws OverflowException;
|
||||
@WebappAPI
|
||||
boolean checkCodeForMember(Member member, String code) throws OverflowException;
|
||||
@WebappAPI
|
||||
|
||||
@@ -22,10 +22,10 @@ public interface NoAuthProbeService {
|
||||
void onDisconnect(String tempKey) throws OverflowException;
|
||||
|
||||
@WebappAPI
|
||||
List<NoAuthProbe> readAllByDomain(long id) throws OverflowException;
|
||||
List<NoAuthProbe> readAllByDomainID(Long id) throws OverflowException;
|
||||
@WebappAPI
|
||||
List<NoAuthProbe> acceptNoAuthProbe(long id) throws OverflowException;
|
||||
List<NoAuthProbe> acceptNoAuthProbe(Long id) throws OverflowException;
|
||||
@WebappAPI
|
||||
List<NoAuthProbe> denyNoauthProbe(long id) throws OverflowException;
|
||||
List<NoAuthProbe> denyNoauthProbe(Long id) throws OverflowException;
|
||||
|
||||
}
|
||||
|
||||
@@ -3,16 +3,14 @@ package com.loafle.overflow.service.central.probe;
|
||||
import java.util.List;
|
||||
|
||||
import com.loafle.overflow.core.exception.OverflowException;
|
||||
import com.loafle.overflow.model.domain.Domain;
|
||||
import com.loafle.overflow.model.probe.Probe;
|
||||
import com.loafle.overflow.model.probe.ProbeHost;
|
||||
|
||||
/**
|
||||
* Created by snoop on 17. 8. 21.
|
||||
*/
|
||||
public interface ProbeHostService {
|
||||
ProbeHost read(long id) throws OverflowException;
|
||||
ProbeHost readByProbe(Probe probe) throws OverflowException;
|
||||
ProbeHost read(Long id) throws OverflowException;
|
||||
ProbeHost readByProbeID(Long probeID) throws OverflowException;
|
||||
ProbeHost regist(ProbeHost probeHost) throws OverflowException;
|
||||
List<ProbeHost> readAllByDomain(Domain domain) throws OverflowException;
|
||||
List<ProbeHost> readAllByDomainID(Long domain) throws OverflowException;
|
||||
}
|
||||
|
||||
@@ -3,7 +3,6 @@ package com.loafle.overflow.service.central.probe;
|
||||
import com.loafle.overflow.core.annotation.ProbeAPI;
|
||||
import com.loafle.overflow.core.annotation.WebappAPI;
|
||||
import com.loafle.overflow.core.exception.OverflowException;
|
||||
import com.loafle.overflow.model.domain.Domain;
|
||||
import com.loafle.overflow.model.probe.Probe;
|
||||
|
||||
import java.util.List;
|
||||
@@ -18,11 +17,11 @@ public interface ProbeService {
|
||||
List<Probe> regist(List<Probe> probes) throws OverflowException;
|
||||
|
||||
@WebappAPI
|
||||
List<Probe> readAllByDomain(Domain domain) throws OverflowException;
|
||||
List<Probe> readAllByDomainID(Long id) throws OverflowException;
|
||||
@WebappAPI
|
||||
Probe read(long id) throws OverflowException;
|
||||
Probe read(Long id) throws OverflowException;
|
||||
@WebappAPI
|
||||
Probe modifyDisplayName(long probeId, String displayName) throws OverflowException;
|
||||
Probe modifyDisplayName(Long probeId, String displayName) throws OverflowException;
|
||||
|
||||
@ProbeAPI //?
|
||||
Probe readByProbeKey(String probeKey) throws OverflowException;
|
||||
|
||||
@@ -2,7 +2,6 @@ package com.loafle.overflow.service.central.probe;
|
||||
|
||||
import com.loafle.overflow.core.annotation.ProbeAPI;
|
||||
import com.loafle.overflow.core.exception.OverflowException;
|
||||
import com.loafle.overflow.model.probe.Probe;
|
||||
import com.loafle.overflow.model.probe.ProbeTask;
|
||||
|
||||
import java.util.List;
|
||||
@@ -14,5 +13,5 @@ public interface ProbeTaskService {
|
||||
@ProbeAPI
|
||||
ProbeTask regist(ProbeTask probeTask) throws OverflowException;
|
||||
@ProbeAPI
|
||||
List<ProbeTask> readAllByProbe(Probe probe) throws OverflowException;
|
||||
List<ProbeTask> readAllByProbeID(Long probeID) throws OverflowException;
|
||||
}
|
||||
|
||||
@@ -3,10 +3,8 @@ package com.loafle.overflow.service.central.sensor;
|
||||
import com.loafle.overflow.core.annotation.WebappAPI;
|
||||
import com.loafle.overflow.core.exception.OverflowException;
|
||||
import com.loafle.overflow.core.model.PageParams;
|
||||
import com.loafle.overflow.model.domain.Domain;
|
||||
import com.loafle.overflow.model.sensor.Sensor;
|
||||
import com.loafle.overflow.model.sensor.SensorItem;
|
||||
import com.loafle.overflow.model.target.Target;
|
||||
import org.springframework.data.domain.Page;
|
||||
|
||||
import java.util.List;
|
||||
@@ -20,20 +18,20 @@ public interface SensorService {
|
||||
@WebappAPI
|
||||
Sensor read(String id) throws OverflowException;
|
||||
@WebappAPI
|
||||
void remove(Sensor sensor) throws OverflowException;
|
||||
void remove(String id) throws OverflowException;
|
||||
@WebappAPI
|
||||
Sensor start(Sensor sensor) throws OverflowException;
|
||||
Sensor start(String id) throws OverflowException;
|
||||
@WebappAPI
|
||||
Sensor stop(Sensor sensor) throws OverflowException;
|
||||
Sensor stop(String id) throws OverflowException;
|
||||
@WebappAPI
|
||||
Sensor registSensorConfig(Sensor sensor, List<SensorItem> sensorItemList, String etcJson) throws OverflowException;
|
||||
@WebappAPI
|
||||
String generateSensorConfig(Sensor sensor) throws OverflowException;
|
||||
|
||||
@WebappAPI
|
||||
Page<Sensor> readAllByDomain(Domain domain, PageParams pageParams) throws OverflowException;
|
||||
Page<Sensor> readAllByDomainID(long domainID, PageParams pageParams) throws OverflowException;
|
||||
@WebappAPI
|
||||
Page<Sensor> readAllByInfra(long infraId, PageParams pageParams) throws OverflowException;
|
||||
Page<Sensor> readAllByInfraID(long infraID, PageParams pageParams) throws OverflowException;
|
||||
@WebappAPI
|
||||
Page<Sensor> readAllByTarget(Target target, PageParams pageParams) throws OverflowException;
|
||||
Page<Sensor> readAllByTargetID(long targetID, PageParams pageParams) throws OverflowException;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user