public class NetworkServiceImpl extends AbstractAgrosystService implements NetworkService
| Modifier and Type | Field and Description |
|---|---|
protected static com.google.common.base.Predicate<Network> |
ACTIVE_NETWORK |
protected static Comparator<SmallNetworkDto> |
ALPHABETICAL_NETWORK_COMPARATOR |
protected BusinessAuthorizationService |
authorizationService |
protected GrowingSystemTopiaDao |
growingSystemTopiaDao |
protected NetworkTopiaDao |
networkDao |
protected NetworkManagerTopiaDao |
networkManagerDao |
protected AgrosystUserTopiaDao |
userDao |
context__PARANAMER_DATA| Constructor and Description |
|---|
NetworkServiceImpl() |
easyBind, easyBind, easyBindNoDelete, finalize, getConfig, getContext, getPersistenceContext, getSecurityContext, getSecurityContextAsUser, getTransaction, newInstance, setContextprotected static final Comparator<SmallNetworkDto> ALPHABETICAL_NETWORK_COMPARATOR
protected static final com.google.common.base.Predicate<Network> ACTIVE_NETWORK
protected BusinessAuthorizationService authorizationService
protected NetworkTopiaDao networkDao
protected NetworkManagerTopiaDao networkManagerDao
protected AgrosystUserTopiaDao userDao
protected GrowingSystemTopiaDao growingSystemTopiaDao
public void setAuthorizationService(BusinessAuthorizationService authorizationService)
public void setNetworkDao(NetworkTopiaDao networkDao)
public void setNetworkManagerDao(NetworkManagerTopiaDao networkManagerDao)
public void setUserDao(AgrosystUserTopiaDao userDao)
public void setGrowingSystemTopiaDao(GrowingSystemTopiaDao growingSystemTopiaDao)
public ResultList<Network> getFilteredNetworks(NetworkFilter filter)
getFilteredNetworks in interface NetworkServicepublic Network getNetwork(String networkTopiaId)
getNetwork in interface NetworkServicepublic Network newNetwork()
newNetwork in interface NetworkServicepublic Network createOrUpdateNetwork(Network network, Collection<NetworkManagerDto> networkManagerDtos, List<String> parentsIds)
createOrUpdateNetwork in interface NetworkServicepublic NetworkManager newNetworkManager()
newNetworkManager in interface NetworkServicepublic LinkedHashMap<String,String> searchNameFilteredActiveNetworks(String research, Integer nbResult, Set<String> exclusions, String selfNetworkId, boolean onNetworkEdition)
searchNameFilteredActiveNetworks in interface NetworkServicepublic Set<String> findNetworksByName(String name, String excludeNetworkId)
findNetworksByName in interface NetworkServicepublic NetworkGraph buildFullNetworkGraph()
buildFullNetworkGraph in interface NetworkServiceprotected void sortLevels(NetworkGraph graph)
protected void escapeTopiaIds(NetworkGraph graph)
public NetworkGraph buildNetworkGraph(String fromNetworkId)
buildNetworkGraph in interface NetworkServicepublic NetworkGraph buildGrowingSystemAndNetworkGraph(String growingSystemName, Set<String> parentNetworkIds)
buildGrowingSystemAndNetworkGraph in interface NetworkServicepublic void unactivateNetworks(List<String> networkIds, boolean activate)
unactivateNetworks in interface NetworkServicepublic long getNetworksCount(Boolean active)
getNetworksCount in interface NetworkServicepublic ImportResult importNetworks(InputStream networkStream)
importNetworks in interface NetworkServicepublic NetworkIndicators getIndicators(String networkId)
getIndicators in interface NetworkServicepublic List<Network> getNteworkWithName(String networkName)
getNteworkWithName in interface NetworkServiceCopyright © 2013–2015 Inra. All rights reserved.