Class InventoryItemService
java.lang.Object
org.xbricks.inventories.inventory.services.GenericModelService<InventoryItem,InventoryItemRepository>
org.xbricks.inventories.inventory.services.inventoryItem.InventoryItemService
- All Implemented Interfaces:
IGenericModelService<InventoryItem>
,IInventoryItemService
- Direct Known Subclasses:
NetworkItemService
@Service
public class InventoryItemService
extends GenericModelService<InventoryItem,InventoryItemRepository>
implements IInventoryItemService
-
Field Summary
Fields inherited from class org.xbricks.inventories.inventory.services.GenericModelService
modelRepository
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
getCountOfChildren
(InventoryItem entity) getTags
(InventoryItem entity) boolean
isReferencedById
(long id) loadByDepot
(Depot depot) loadByDepotAndOwnerIn
(Depot depot, List<Owner> owners) loadByOwner
(Owner owner) loadByOwnerIdAndDepot
(Long owner, Depot depot) loadByOwnerIn
(List<Owner> owners) save
(InventoryItem entity) Methods inherited from class org.xbricks.inventories.inventory.services.GenericModelService
deleteById, loadAll, loadById
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
-
Field Details
-
logger
protected static final org.slf4j.Logger logger
-
-
Constructor Details
-
InventoryItemService
-
-
Method Details
-
isReferencedById
public boolean isReferencedById(long id) - Specified by:
isReferencedById
in interfaceIGenericModelService<InventoryItem>
- Specified by:
isReferencedById
in classGenericModelService<InventoryItem,
InventoryItemRepository>
-
save
- Specified by:
save
in interfaceIGenericModelService<InventoryItem>
- Overrides:
save
in classGenericModelService<InventoryItem,
InventoryItemRepository>
-
getTags
- Specified by:
getTags
in interfaceIInventoryItemService
-
getCountOfChildren
- Specified by:
getCountOfChildren
in interfaceIInventoryItemService
-
loadByOwner
- Specified by:
loadByOwner
in interfaceIInventoryItemService
-
loadByOwnerIdAndDepot
- Specified by:
loadByOwnerIdAndDepot
in interfaceIInventoryItemService
-
loadByDepot
- Specified by:
loadByDepot
in interfaceIInventoryItemService
-
loadByDepotAndOwnerIn
- Specified by:
loadByDepotAndOwnerIn
in interfaceIInventoryItemService
-
loadByOwnerIn
- Specified by:
loadByOwnerIn
in interfaceIInventoryItemService
-