Class NetworkHostService
java.lang.Object
org.xbricks.inventories.inventory.services.GenericModelService<NetworkHost,NetworkHostRepository>
org.xbricks.inventories.inventory.services.networkHost.NetworkHostService
- All Implemented Interfaces:
IGenericModelService<NetworkHost>
,IListItemService<NetworkHost>
,INetworkHostService
@Service
public class NetworkHostService
extends GenericModelService<NetworkHost,NetworkHostRepository>
implements INetworkHostService
-
Field Summary
Fields inherited from class org.xbricks.inventories.inventory.services.GenericModelService
modelRepository
-
Constructor Summary
ConstructorDescriptionNetworkHostService
(NetworkHostRepository repository, NetworkInterfaceControllerRepository networkInterfaceControllerRepository, INetworkInterfaceControllerService networkInterfaceControllerService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteByNetworkItemId
(long networkItemId) getIpAddresses
(NetworkHost entity) getNetworkPrefixes
(NetworkHost entity) boolean
isReferencedById
(long id) loadByNetworkItemIn
(List<InventoryItem> items) Methods inherited from class org.xbricks.inventories.inventory.services.GenericModelService
deleteById, loadAll, loadById, save
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xbricks.inventories.inventory.services.IGenericModelService
deleteById, loadAll, loadById, save
-
Constructor Details
-
NetworkHostService
public NetworkHostService(NetworkHostRepository repository, NetworkInterfaceControllerRepository networkInterfaceControllerRepository, INetworkInterfaceControllerService networkInterfaceControllerService)
-
-
Method Details
-
isReferencedById
public boolean isReferencedById(long id) - Specified by:
isReferencedById
in interfaceIGenericModelService<NetworkHost>
- Specified by:
isReferencedById
in classGenericModelService<NetworkHost,
NetworkHostRepository>
-
deleteByNetworkItemId
public void deleteByNetworkItemId(long networkItemId) - Specified by:
deleteByNetworkItemId
in interfaceINetworkHostService
-
getNetworkInterfaceControllers
- Specified by:
getNetworkInterfaceControllers
in interfaceINetworkHostService
-
getIpAddresses
- Specified by:
getIpAddresses
in interfaceINetworkHostService
-
getNetworkPrefixes
- Specified by:
getNetworkPrefixes
in interfaceINetworkHostService
-
loadByNetworkItemIn
- Specified by:
loadByNetworkItemIn
in interfaceINetworkHostService
-