Class PoolProvider
- java.lang.Object
-
- org.neotropic.kuwaiba.modules.optional.pools.providers.PoolProvider
-
public class PoolProvider extends Object
Data provider for inventory object pools that handles loading and accessing data. Extends thePoolProvider
class.- Author:
- Mauricio Ruiz Beltrán <mauricio.ruiz@kuwaiba.org>
-
-
Field Summary
Fields Modifier and Type Field Description static int
POOL_TYPE_GENERAL_PURPOSE
Type of pool general purpose.
-
Constructor Summary
Constructors Constructor Description PoolProvider(BusinessEntityManager bem, TranslationService ts)
Constructs a new instance ofPoolProvider
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.vaadin.flow.data.provider.AbstractBackEndDataProvider<InventoryObjectPool,Void>
buildDataProvider(InventoryObjectPool rootPool, boolean includedSelf)
Builds a data provider for inventory object pools.List<InventoryObjectPool>
getRootPools()
Retrieves the pools that don't have any parent and are normally intended to be managed by the Pool Manager.
-
-
-
Field Detail
-
POOL_TYPE_GENERAL_PURPOSE
public static final int POOL_TYPE_GENERAL_PURPOSE
Type of pool general purpose. These pools are not linked to any particular model.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PoolProvider
public PoolProvider(BusinessEntityManager bem, TranslationService ts)
Constructs a new instance ofPoolProvider
.- Parameters:
bem
- Reference to the Business Entity Manager.ts
- Reference to the Translation Service.
-
-
Method Detail
-
buildDataProvider
public com.vaadin.flow.data.provider.AbstractBackEndDataProvider<InventoryObjectPool,Void> buildDataProvider(InventoryObjectPool rootPool, boolean includedSelf)
Builds a data provider for inventory object pools.- Parameters:
rootPool
- The root pool from which data will be retrieved. If exists.includedSelf
- Boolean indicating whether the root pool should be included in the retrieved data.- Returns:
- Built data provider for inventory object pools.
-
getRootPools
public List<InventoryObjectPool> getRootPools()
Retrieves the pools that don't have any parent and are normally intended to be managed by the Pool Manager.- Returns:
- The inventory object pools.
-
-