public interface NetworkService extends AgrosystService
| Modifier and Type | Method and Description |
|---|---|
NetworkGraph |
buildFullNetworkGraph() |
NetworkGraph |
buildGrowingSystemAndNetworkGraph(String growingSystemName,
Set<String> parentNetworkIds) |
NetworkGraph |
buildNetworkGraph(String fromNetworkId) |
Network |
createOrUpdateNetwork(Network network,
Collection<NetworkManagerDto> networkManagerDtos,
List<String> parentsIds)
Update the given network
|
Set<String> |
findNetworksByName(String name,
String excludeNetworkId) |
ResultList<Network> |
getFilteredNetworks(NetworkFilter filter)
Return the Networks according the given filter.
|
NetworkIndicators |
getIndicators(String networkId) |
Network |
getNetwork(String networkTopiaId)
Return the Network matching with the network topiaId given has parameter.
|
long |
getNetworksCount(Boolean active)
return the number of networks
|
List<Network> |
getNteworkWithName(String networkName) |
ImportResult |
importNetworks(InputStream netStream)
Import de réseaux par lot.
|
Network |
newNetwork()
Return a new not persisted Network.
|
NetworkManager |
newNetworkManager()
Return a new not persisted Network Manager.
|
LinkedHashMap<String,String> |
searchNameFilteredActiveNetworks(String research,
Integer nbResult,
Set<String> exclusions,
String selfNetworkId,
boolean onNetworkEdition)
Return all the network with there name looking as the researched term.
|
void |
unactivateNetworks(List<String> networkIds,
boolean activate)
Unactivate or reactivate the given networks.
|
ResultList<Network> getFilteredNetworks(NetworkFilter filter)
filter - The Network filterNetwork getNetwork(String networkTopiaId)
networkTopiaId - the network topiaIdNetwork newNetwork()
NetworkManager newNetworkManager()
Network createOrUpdateNetwork(Network network, Collection<NetworkManagerDto> networkManagerDtos, List<String> parentsIds)
network - the network to updatenetworkManagerDtos - the network managers DTOparentsIds - List of network's parent's TopiaIdsLinkedHashMap<String,String> searchNameFilteredActiveNetworks(String research, Integer nbResult, Set<String> exclusions, String selfNetworkId, boolean onNetworkEdition)
research - The researched termnbResult - The maximum number if return resultexclusions - The identifiers of the networks to excludeselfNetworkId - The identifier of the current network (in case editing a network)onNetworkEdition - If the current request should consider only networks without SdC children or notNetworkGraph buildFullNetworkGraph()
NetworkGraph buildNetworkGraph(String fromNetworkId)
NetworkGraph buildGrowingSystemAndNetworkGraph(String growingSystemName, Set<String> parentNetworkIds)
void unactivateNetworks(List<String> networkIds, boolean activate)
networkIds - networkIds topiaId to unactivateactivate - activate insteadof unactivatelong getNetworksCount(Boolean active)
active - optional active filter (may be null)ImportResult importNetworks(InputStream netStream)
netStream - NetworkIndicators getIndicators(String networkId)
Copyright © 2013–2015 Inra. All rights reserved.