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

@@ -8,11 +8,14 @@ import com.loafle.overflow.model.apikey.ApiKey;
* Created by geek on 17. 11. 7.
*/
public interface ApiKeyService {
@WebappAPI
ApiKey regist(ApiKey apiKey) throws OverflowException;
@WebappAPI
ApiKey readByDomainID(Long domainID) throws OverflowException;
boolean check(String apiKey) throws OverflowException;
@WebappAPI
ApiKey readByApiKey(String apiKey) throws OverflowException;
@WebappAPI
ApiKey regist(ApiKey apiKey) throws OverflowException;
@WebappAPI
ApiKey readByDomainID(Long domainID) 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.exception.OverflowException;
import com.loafle.overflow.model.meta.MetaCrawler;
import com.loafle.overflow.model.target.Target;
/**
* Created by geek on 17. 11. 7.
*/
public interface AuthCrawlerService {
@WebappAPI
AuthCrawler regist(AuthCrawler authCrawler) throws OverflowException;
@WebappAPI
boolean checkAuthCrawler(Long infraId, MetaCrawler crawler, String authJson) throws OverflowException;
@WebappAPI
AuthCrawler readAuth(MetaCrawler metaCrawler, Target target) throws OverflowException;
@WebappAPI
AuthCrawler regist(AuthCrawler authCrawler) throws OverflowException;
@WebappAPI
boolean checkAuthCrawler(Long infraId, MetaCrawler metaCrawler, String authJson) 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 {
@WebappAPI
void discoverZone(String probeID, DiscoverZone discoverZone) throws OverflowException;
@WebappAPI
void discoverHost(String probeID, Zone zone, DiscoverHost discoverHost) throws OverflowException;
@WebappAPI
void discoverPort(String probeID, Host host, DiscoverPort discoverPort) throws OverflowException;
@WebappAPI
void discoverService(String probeID, Port port, DiscoverService discoverService) throws OverflowException;
@WebappAPI
void stopDiscovery(String probeID) throws OverflowException;
@ProbeAPI
void discoveryStart(String requesterSessionID, Date startDate) throws OverflowException;
@ProbeAPI
void discoveryStop(String requesterSessionID, Date stopDate) throws OverflowException;
@ProbeAPI
void discoveredZone(String requesterSessionID, Zone zone) throws OverflowException;
@ProbeAPI
void discoveredHost(String requesterSessionID, Host host) throws OverflowException;
@ProbeAPI
void discoveredPort(String requesterSessionID, Port port) throws OverflowException;
@ProbeAPI
void discoveredService(String requesterSessionID, Service service) throws OverflowException;
}

View File

@@ -14,10 +14,13 @@ import com.loafle.overflow.model.member.Member;
public interface DomainMemberService {
@WebappAPI
void regist(DomainMember domainMember) throws OverflowException;
@WebappAPI
Domain readDomainByMemberID(Long memberID) throws OverflowException;
@WebappAPI
DomainMember readByMemberEmail(String email) throws OverflowException;
@WebappAPI
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;
public interface HistoryService {
// ??
History regist(History history);
// ??
History regist(History history);
@WebappAPI
Page<History> readAllByProbeIDAndType(Long probeID, MetaHistoryType type, PageParams pageParams);
@WebappAPI
Page<History> readAllByProbeID(Long probeID, PageParams pageParams);
@WebappAPI
Page<History> readAllByDomainID(Long domainID, PageParams pageParams);
@WebappAPI
Page<History> readAllByDomainIDAndType(Long domainID, MetaHistoryType type, PageParams pageParams);
@WebappAPI
Page<History> readAllByProbeIDAndMetaHistoryTypeID(Long probeID, Integer metaHistoryTypeID, PageParams pageParams);
@WebappAPI
Page<History> readAllByProbeID(Long probeID, PageParams pageParams);
@WebappAPI
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 {
InfraHost regist(InfraHost infraHost) throws OverflowException;
InfraHost read(Long id) throws OverflowException;
InfraHost readByIp(String ip) throws OverflowException;
}

View File

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

View File

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

View File

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

View File

@@ -9,6 +9,8 @@ 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 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 {
InfraOS regist(InfraOS infraOS) throws OverflowException;
InfraOS read(Long id) throws OverflowException;
}

View File

@@ -16,10 +16,16 @@ import org.springframework.data.domain.Page;
public interface InfraService {
Infra regist(Infra infra) 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;
List<Target> readAllTargetByProbes(List<Probe> probes) throws OverflowException;
Infra readByTargetID(Long targetID) throws OverflowException;
}

View File

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

View File

@@ -12,16 +12,22 @@ import java.util.Map;
public interface MemberTotpService {
@WebappAPI
void regist(Member member, String secretCode, String code) throws OverflowException;
@WebappAPI
MemberTotp modify(MemberTotp totp) throws OverflowException;
@WebappAPI
void remove(Long id) throws OverflowException;
@WebappAPI
MemberTotp read(Long id) throws OverflowException;
@WebappAPI
boolean checkCodeForMember(Member member, String code) throws OverflowException;
boolean checkCodeForMember(String email, String code) throws OverflowException;
@WebappAPI
boolean checkCode(String secretCode, String code) throws OverflowException;
@WebappAPI
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.exception.OverflowException;
import com.loafle.overflow.model.meta.MetaCrawler;
import com.loafle.overflow.model.meta.MetaCrawlerInputItem;
import java.util.List;
@@ -12,6 +11,6 @@ import java.util.List;
*/
public interface MetaCrawlerInputItemService {
@WebappAPI
List<MetaCrawlerInputItem> readAllByMetaCrawler(MetaCrawler metaCrawler) throws OverflowException;
@WebappAPI
List<MetaCrawlerInputItem> readAllByMetaCrawlerID(Short metaCrawlerID) throws OverflowException;
}

View File

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

View File

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

View File

@@ -11,6 +11,6 @@ import java.util.List;
*/
public interface MetaInfraTypeService {
@WebappAPI
List<MetaInfraType> readAll() throws OverflowException;
@WebappAPI
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.exception.OverflowException;
import com.loafle.overflow.model.meta.MetaInfraType;
import com.loafle.overflow.model.meta.MetaInfraVendor;
import java.util.List;
@@ -11,6 +10,6 @@ import java.util.List;
* Created by snoop on 17. 7. 27.
*/
public interface MetaInfraVendorService {
@WebappAPI
List<MetaInfraVendor> readAllByMetaInfraType(MetaInfraType infraType) throws OverflowException;
@WebappAPI
List<MetaInfraVendor> readAllByMetaInfraTypeID(Integer metaInfraTypeID) throws OverflowException;
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -10,6 +10,6 @@ import java.util.List;
* Created by snoop on 17. 7. 27.
*/
public interface MetaProbeVersionService {
@WebappAPI
List<MetaProbeVersion> readAll() throws OverflowException;
@WebappAPI
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.exception.OverflowException;
import com.loafle.overflow.model.meta.MetaCrawler;
import com.loafle.overflow.model.meta.MetaSensorDisplayItem;
import java.util.List;
@@ -12,12 +11,12 @@ import java.util.List;
*/
public interface MetaSensorDisplayItemService {
@WebappAPI
MetaSensorDisplayItem regist(MetaSensorDisplayItem item) throws OverflowException;
@WebappAPI
MetaSensorDisplayItem regist(MetaSensorDisplayItem metaSensorDisplayItem) throws OverflowException;
@WebappAPI
MetaSensorDisplayItem read(Long id) throws OverflowException;
@WebappAPI
MetaSensorDisplayItem read(Long id) throws OverflowException;
@WebappAPI
List<MetaSensorDisplayItem> readAllByCrawler(MetaCrawler crawler) throws OverflowException;
@WebappAPI
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.exception.OverflowException;
import com.loafle.overflow.model.meta.MetaSensorDisplayItem;
import com.loafle.overflow.model.meta.MetaSensorDisplayMapping;
import com.loafle.overflow.model.meta.MetaSensorItemKey;
@@ -12,9 +11,9 @@ import java.util.List;
* Created by snoop on 18. 4. 24.
*/
public interface MetaSensorDisplayMappingService {
@WebappAPI
MetaSensorDisplayMapping regist(MetaSensorDisplayMapping m) throws OverflowException;
@WebappAPI
MetaSensorDisplayMapping regist(MetaSensorDisplayMapping metaSensorDisplayMapping) throws OverflowException;
@WebappAPI
List<MetaSensorItemKey> readAllMetaSensorItemKeyByDisplayItem(MetaSensorDisplayItem displayItem) throws OverflowException;
@WebappAPI
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.exception.OverflowException;
import com.loafle.overflow.model.meta.MetaCrawler;
import com.loafle.overflow.model.meta.MetaSensorItemKey;
import java.util.List;
@@ -12,9 +11,9 @@ import java.util.Map;
* Created by snoop on 17. 8. 29.
*/
public interface MetaSensorItemKeyService {
@WebappAPI
List<MetaSensorItemKey> readAllByCrawler(MetaCrawler metaCrawler) throws OverflowException;
@WebappAPI
List<MetaSensorItemKey> readAllByMetaCrawlerID(Short metaCrawlerID) throws OverflowException;
@WebappAPI
Map<Integer, MetaSensorItemKey> readAllMapByCrawler(MetaCrawler metaCrawler) throws OverflowException;
@WebappAPI
Map<Integer, MetaSensorItemKey> readAllMapByMetaCrawlerID(Short metaCrawlerID) throws OverflowException;
}

View File

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

View File

@@ -10,13 +10,13 @@ import java.util.List;
* Created by snoop on 17. 7. 27.
*/
public interface MetaSensorItemTypeService {
@WebappAPI
List<MetaSensorItemType> readAll() throws OverflowException;
@WebappAPI
List<MetaSensorItemType> readAll() throws OverflowException;
@WebappAPI
MetaSensorItemType regist(MetaSensorItemType type) throws OverflowException;
@WebappAPI
MetaSensorItemType regist(MetaSensorItemType metaSensorItemType) throws OverflowException;
@WebappAPI
List<MetaSensorItemType> registAll(List<MetaSensorItemType> list) throws OverflowException;
@WebappAPI
List<MetaSensorItemType> registAll(List<MetaSensorItemType> metaSensorItemTypes) throws OverflowException;
}

View File

@@ -9,6 +9,6 @@ import com.loafle.overflow.model.meta.MetaSensorItemUnit;
*/
public interface MetaSensorItemUnitService {
@WebappAPI
MetaSensorItemUnit regist(MetaSensorItemUnit sensorItemUnit) throws OverflowException;
@WebappAPI
MetaSensorItemUnit regist(MetaSensorItemUnit metaSensorItemUnit) throws OverflowException;
}

View File

@@ -11,7 +11,7 @@ import java.util.List;
*/
public interface MetaSensorStatusService {
@WebappAPI
List<MetaSensorStatus> readAll() throws OverflowException;
@WebappAPI
List<MetaSensorStatus> 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.exception.OverflowException;
import com.loafle.overflow.model.meta.MetaInfraVendor;
import com.loafle.overflow.model.meta.MetaVendorCrawler;
import java.util.List;
@@ -12,9 +11,9 @@ import java.util.List;
*/
public interface MetaVendorCrawlerService {
@WebappAPI
List<MetaVendorCrawler> readAllByInfraVendor(MetaInfraVendor infraVendor) throws OverflowException;
@WebappAPI
List<MetaVendorCrawler> readAllByMetaInfraVendorID(Integer metaInfraVendorID) throws OverflowException;
@WebappAPI
MetaVendorCrawler regist(MetaVendorCrawler metaVendorCrawler) throws OverflowException;
@WebappAPI
MetaVendorCrawler regist(MetaVendorCrawler metaVendorCrawler) throws OverflowException;
}

View File

@@ -11,20 +11,25 @@ import java.util.List;
* Created by snoop on 17. 6. 28.
*/
public interface NoAuthProbeService {
@ProbeAPI
NoAuthProbe regist(NoAuthProbe noAuthProbe) throws OverflowException;
@ProbeAPI
NoAuthProbe readByTempProbeKey(String tempKey) throws OverflowException;
@ProbeAPI
void onConnect(String tempKey, String connectAddress) throws OverflowException;
@ProbeAPI
void onDisconnect(String tempKey) throws OverflowException;
@ProbeAPI
NoAuthProbe regist(NoAuthProbe noAuthProbe) throws OverflowException;
@WebappAPI
List<NoAuthProbe> readAllByDomainID(Long id) throws OverflowException;
@WebappAPI
List<NoAuthProbe> acceptNoAuthProbe(Long id) throws OverflowException;
@WebappAPI
List<NoAuthProbe> denyNoauthProbe(Long id) throws OverflowException;
@ProbeAPI
NoAuthProbe readByTempProbeKey(String tempKey) throws OverflowException;
@ProbeAPI
void onConnect(String tempKey, String connectAddress) throws OverflowException;
@ProbeAPI
void onDisconnect(String tempKey) throws OverflowException;
@WebappAPI
List<NoAuthProbe> readAllByDomainID(Long id) throws OverflowException;
@WebappAPI
List<NoAuthProbe> acceptNoAuthProbe(Long id) throws OverflowException;
@WebappAPI
List<NoAuthProbe> denyNoauthProbe(Long id) throws OverflowException;
}

View File

@@ -6,22 +6,29 @@ import com.loafle.overflow.core.model.PageParams;
import com.loafle.overflow.model.member.Member;
import com.loafle.overflow.model.notification.Notification;
import org.springframework.data.domain.Page;
/**
* Created by insanity on 17. 8. 25.
*/
public interface NotificationService {
@WebappAPI
Notification regist(Notification notification) throws OverflowException;
@WebappAPI
Page<Notification> readAllByMember(Member member, PageParams pageParams) throws OverflowException;
@WebappAPI
Page<Notification> readAllUnconfirmedByMember(Member member, PageParams pageParams) throws OverflowException;
@WebappAPI
int readUnconfirmedCount(Member member) throws OverflowException;
@WebappAPI
Page<Notification> markAllAsRead(Member member, PageParams pageParams) throws OverflowException;
@WebappAPI
Page<Notification> markAllAsUnread(Member member, PageParams pageParams) throws OverflowException;
@WebappAPI
Notification markAsRead(Notification notification) throws OverflowException;
@WebappAPI
Notification regist(Notification notification) throws OverflowException;
@WebappAPI
Page<Notification> readAllByMemberEmail(String memberEmail, PageParams pageParams) throws OverflowException;
@WebappAPI
Page<Notification> readAllUnconfirmedByMemberEmail(String memberEmail, PageParams pageParams) throws OverflowException;
@WebappAPI
int readUnconfirmedCountByMemberEmail(String memberEmail) throws OverflowException;
@WebappAPI
Page<Notification> markAllAsReadByMemberEmail(String memberEmail, PageParams pageParams) throws OverflowException;
@WebappAPI
Page<Notification> markAllAsUnreadMemberEmail(String memberEmail, PageParams pageParams) throws OverflowException;
@WebappAPI
Notification markAsRead(Long notificationID) throws OverflowException;
}

View File

@@ -10,10 +10,12 @@ import com.loafle.overflow.model.probe.ProbeHost;
* Created by snoop on 17. 8. 21.
*/
public interface ProbeHostService {
ProbeHost read(Long id) throws OverflowException;
ProbeHost readByProbeID(Long probeID) throws OverflowException;
ProbeHost regist(ProbeHost probeHost) throws OverflowException;
@WebappAPI
List<ProbeHost> readAllByDomainID(Long domain) throws OverflowException;
ProbeHost read(Long id) throws OverflowException;
ProbeHost readByProbeID(Long probeID) throws OverflowException;
ProbeHost regist(ProbeHost probeHost) throws OverflowException;
@WebappAPI
List<ProbeHost> readAllByDomainID(Long domain) throws OverflowException;
}

View File

@@ -11,26 +11,31 @@ import java.util.List;
* Created by snoop on 17. 6. 28.
*/
public interface ProbeService {
// NoauthProbe.acceptNoAuthProbe
Probe regist(Probe probe) throws OverflowException;
// NoauthProbe.acceptNoAuthProbe
List<Probe> regist(List<Probe> probes) throws OverflowException;
// NoauthProbe.acceptNoAuthProbe
Probe regist(Probe probe) throws OverflowException;
@WebappAPI
List<Probe> readAllByDomainID(Long id) throws OverflowException;
@WebappAPI
Probe read(Long id) throws OverflowException;
@WebappAPI
Probe modifyDisplayName(Long probeId, String displayName) throws OverflowException;
// NoauthProbe.acceptNoAuthProbe
List<Probe> regist(List<Probe> probes) throws OverflowException;
@ProbeAPI //?
Probe readByProbeKey(String probeKey) throws OverflowException;
@ProbeAPI //?
Probe modify(Probe probe) throws OverflowException;
@WebappAPI
List<Probe> readAllByDomainID(Long id) throws OverflowException;
@ProbeAPI
void onConnect(String probeKey, String connectAddress) throws OverflowException;
@ProbeAPI
void onDisconnect(String probeKey) throws OverflowException;
@WebappAPI
Probe read(Long id) throws OverflowException;
@WebappAPI
Probe modifyDisplayName(Long probeId, String displayName) throws OverflowException;
@ProbeAPI // ?
Probe readByProbeKey(String probeKey) throws OverflowException;
@ProbeAPI // ?
Probe modify(Probe probe) throws OverflowException;
@ProbeAPI
void onConnect(String probeKey, String connectAddress) throws OverflowException;
@ProbeAPI
void onDisconnect(String probeKey) throws OverflowException;
}

View File

@@ -10,8 +10,9 @@ import java.util.List;
* Created by snoop on 17. 6. 28.
*/
public interface ProbeTaskService {
@ProbeAPI
ProbeTask regist(ProbeTask probeTask) throws OverflowException;
@ProbeAPI
List<ProbeTask> readAllByProbeID(Long probeID) throws OverflowException;
@ProbeAPI
ProbeTask regist(ProbeTask probeTask) throws OverflowException;
@ProbeAPI
List<ProbeTask> readAllByProbeID(Long probeID) throws OverflowException;
}

View File

@@ -14,11 +14,14 @@ import java.util.Map;
*/
public interface SensorItemDependencyService {
@WebappAPI
SensorItemDependency regist(SensorItemDependency dependency) throws OverflowException;
@WebappAPI
List<MetaSensorItemKey> readAllByDisplayItem(MetaSensorDisplayItem displayItem) throws OverflowException;
@WebappAPI
Map<String, List<MetaSensorItemKey>> readAllByDisplayItems(List<MetaSensorDisplayItem> displayItems) throws OverflowException;
@WebappAPI
SensorItemDependency regist(SensorItemDependency dependency) throws OverflowException;
@WebappAPI
List<MetaSensorItemKey> readAllMetaSensorItemKeyByMetaSensorDisplayItemID(Long metaSensorDisplayItemID) throws OverflowException;
@WebappAPI
Map<String, List<MetaSensorItemKey>> readAllMapByMetaSensorDisplayItems(List<MetaSensorDisplayItem> metaSensorDisplayItems)
throws OverflowException;
}

View File

@@ -3,7 +3,6 @@ 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.sensor.Sensor;
import com.loafle.overflow.model.sensor.SensorItem;
import org.springframework.data.domain.Page;
@@ -13,14 +12,18 @@ import java.util.List;
* Created by insanity on 17. 6. 28.
*/
public interface SensorItemService {
@WebappAPI
SensorItem regist(SensorItem sensorItem) throws OverflowException;
@WebappAPI
boolean registAll(List<SensorItem> sensorItemList) throws OverflowException;
@WebappAPI
SensorItem read(String id) throws OverflowException;
@WebappAPI
Page<SensorItem> readAllBySensor(Sensor sensor, PageParams pageParams) throws OverflowException;
@WebappAPI
void remove(SensorItem sensorItem) throws OverflowException;
@WebappAPI
SensorItem regist(SensorItem sensorItem) throws OverflowException;
@WebappAPI
boolean registAll(List<SensorItem> sensorItemList) throws OverflowException;
@WebappAPI
SensorItem read(String id) throws OverflowException;
@WebappAPI
Page<SensorItem> readAllBySensorID(Long sensorID, PageParams pageParams) throws OverflowException;
@WebappAPI
void remove(SensorItem sensorItem) throws OverflowException;
}

View File

@@ -12,26 +12,34 @@ import java.util.List;
/**
* Created by insanity on 17. 6. 28.
*/
public interface SensorService {
@WebappAPI
Sensor regist(Sensor sensor) throws OverflowException;
@WebappAPI
Sensor read(Long id) throws OverflowException;
@WebappAPI
void remove(Long id) throws OverflowException;
@WebappAPI
Sensor start(Long id) throws OverflowException;
@WebappAPI
Sensor stop(Long id) throws OverflowException;
@WebappAPI
Sensor registSensorConfig(Sensor sensor, List<SensorItem> sensorItemList, String etcJson) throws OverflowException;
@WebappAPI
String generateSensorConfig(Sensor sensor) throws OverflowException;
public interface SensorService {
@WebappAPI
Sensor regist(Sensor sensor) throws OverflowException;
@WebappAPI
Page<Sensor> readAllByDomainID(Long domainID, PageParams pageParams) throws OverflowException;
@WebappAPI
Page<Sensor> readAllByInfraID(Long infraID, PageParams pageParams) throws OverflowException;
@WebappAPI
Page<Sensor> readAllByTargetID(Long targetID, PageParams pageParams) throws OverflowException;
@WebappAPI
Sensor read(Long id) throws OverflowException;
@WebappAPI
void remove(Long id) throws OverflowException;
@WebappAPI
Sensor start(Long id) throws OverflowException;
@WebappAPI
Sensor stop(Long 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> readAllByDomainID(Long domainID, PageParams pageParams) throws OverflowException;
@WebappAPI
Page<Sensor> readAllByInfraID(Long infraID, PageParams pageParams) throws OverflowException;
@WebappAPI
Page<Sensor> readAllByTargetID(Long targetID, PageParams pageParams) throws OverflowException;
}

View File

@@ -12,6 +12,6 @@ import java.util.List;
*/
public interface TargetDiscoveryService {
@WebappAPI
boolean saveAllTarget(List<Host> hosts, Probe probe) throws OverflowException;
@WebappAPI
boolean saveAllTarget(List<Host> hosts, Probe probe) throws OverflowException;
}

View File

@@ -10,14 +10,19 @@ import com.loafle.overflow.model.target.Target;
*/
public interface TargetService {
public Target regist(Target target, Probe probe) throws OverflowException;
public void remove(Target target, Probe probe) throws OverflowException;
public Target read(String id) throws OverflowException;
public Target increaseSensorCount(Target target) throws OverflowException;
public Target decreaseSensorCount(Target target) throws OverflowException;
@WebappAPI
public Target modify(Target target) throws OverflowException;
@WebappAPI
void remove(Target target) throws OverflowException;
public Target regist(Target target, Probe probe) throws OverflowException;
public void remove(Target target, Probe probe) throws OverflowException;
public Target read(String id) throws OverflowException;
public Target increaseSensorCount(Target target) throws OverflowException;
public Target decreaseSensorCount(Target target) throws OverflowException;
@WebappAPI
public Target modify(Target target) throws OverflowException;
@WebappAPI
void remove(Target target) throws OverflowException;
}

View File

@@ -13,10 +13,13 @@ import com.loafle.overflow.model.sensorconfig.SensorConfig;
public interface SensorConfigService extends Service {
@ProbeAPI
void InitConfig(List<SensorConfig> sensorConfigs) throws OverflowException;
@ProbeAPI
void AddConfig(SensorConfig sensorConfig) throws OverflowException;
@ProbeAPI
void UpdateConfig(SensorConfig sensorConfig) throws OverflowException;
@ProbeAPI
void RemoveConfig(String configID) throws OverflowException;
}