package com.napa.pulse.service.interfaces; import com.napa.pulse.dto.*; import com.napa.pulse.entity.pulseui.HierarchyItem; import com.napa.pulse.entity.security.User; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.util.HashMap; import java.util.List; import java.util.Map; public interface HubSpokeNetworkService { List getNetwork(HubSpokeWidgetData hubSpokeWidgetData); List getNetworkById(Integer networkId, User user); HubSpokeNetworkActionDTO createNewNetwork(HubSpokeNetworkDTO hubSpokeNetworkDTO, Integer userId); Map> createNewProduct(String productrNamer, Integer hubId, Integer networkId, Integer userId, Integer roleId); ActionResult updateNetwork(HubSpokeCreateRequestDto createRequestDto,Integer userId); ActionResult deleteNetwork(Integer networkId,Integer userId); ActionResult renameNetwork(HubSpokeCreateRequestDto createRequestDto,Integer userId); ActionResult createHubProduct(ProductHubDTO dto); ProductHubDTO createHubSpoke(Integer networkID, Integer siteID); ActionResult updateHubProduct(ProductHubDTO hubDTO); List getHierarchyId(Integer hubSiteId, Integer productMapId); Integer getThresholdValue(Integer hubSiteId, Integer productMapId); List getHierarchyIdForOtherSites(Integer networkID, String hubSiteId, Integer productMapId); ActionResult updateHierarchyId(Integer networkId, Integer siteId, Integer hubSiteId,Integer productMapId , Integer supplierNo, Integer userId, String productIds, String newProductIds, Integer selectedThresholdValue, Boolean isDiffDemThre); ActionResultItem> getSelectedProductTree(Integer networkHubId, Integer productMapId, User user); ActionResultItem> getSelectedProductTreeForOtherSites(Integer networkId,Integer productMapId, String hubSiteId, User user); List getThresholdValues(); HubSliderDto getProductHierarchies(Integer siteId); ActionResult updateThresholdValues(DemandthresholdDTO dto); List getVendorSupplierDesc(); List getProductIdsList(Integer supplierNumber, Integer siteId); HubSpokeSitesDTO getHubSpokeFlags(Integer sessionId,Integer productId,Integer userId); void hubSiteDataExportXL(Long networkId, HttpServletResponse res) throws IOException; List deleteProductMap(Integer networkId, Integer hubSiteId, Integer productMapId, Integer siteId, Integer userId, Integer roleId); List renameProductMap(Integer networkId, Integer hubSiteId, Integer productMapId, String newProductMapName, Integer userId, Integer roleId); List getAllNetworkSites(); ActionResult updateReturnToHub ( ReturntoHubDTO dto ); List getReturnToHubValues ( ); List getAllNetworkNames ( ); List>> getSpokeSiteIds ( List Ids , String type); }