public class ReferentialService extends SgqService
config, daoHelper| Constructor and Description |
|---|
ReferentialService() |
| Modifier and Type | Method and Description |
|---|---|
List<AnalyzeCategory> |
findAllAnalyzeCategories()
Find all analyze categories.
|
List<AnalyzeType> |
findAllAnalyzeTypes()
Find all analyze types.
|
List<String> |
findAllProductCategories()
Recherche parmis tous les produits les categories existantes.
|
List<ProductStatus> |
findAllProductStatus() |
AnalyzeCategory |
findAnalyzeCategoryById(String id) |
AnalyzeType |
findAnalyzeTypeById(String id)
Find single analyze types by id.
|
Client |
findClientById(String id) |
List<Supplier> |
getAllSupplierOnlyLabs()
Return all suppliers (laboratory first).
|
List<Client> |
getClients(int offset,
int count)
Get clients ordered by code.
|
long |
getClientsCount() |
protected Place |
getPlaceByCode(String code)
Utile seulement pour les tests.
|
Place |
getPlaceById(String placeId) |
List<Place> |
getPlaces()
Get places ordered by code.
|
long |
getPlacesCount() |
Product |
getProductById(String productId) |
List<Product> |
getProducts(int offset,
int count)
Get product ordered by code.
|
long |
getProductsCount() |
ProductStatus |
getProductStatusById(String productStatusId) |
Supplier |
getSupplierById(String supplierId)
Get supplier by topia id.
|
List<Supplier> |
getSuppliers(int offset,
int count)
Get suppliers ordered by code.
|
long |
getSuppliersCount() |
List<ImportLog<Client>> |
importClients(File file)
Import client dbf file.
|
List<ImportLog<Place>> |
importPlaces(File file)
Import suppliers dbf file.
|
void |
importProducts(File file) |
List<ImportLog<Supplier>> |
importSuppliers(File file)
Import suppliers dbf file.
|
void |
saveAnalyzeCategory(AnalyzeCategory analyzeCategory)
Save (create or update) analyze category.
|
void |
saveAnalyzeType(AnalyzeType analyzeType)
Save (create or update) analyze type.
|
void |
saveClient(Client client) |
void |
saveProduct(Product product,
String productStatusName) |
setConfig, setServiceDAOHelperpublic List<ImportLog<Client>> importClients(File file)
file - dbf filepublic void importProducts(File file)
public List<ImportLog<Place>> importPlaces(File file)
file - dbf filepublic List<ImportLog<Supplier>> importSuppliers(File file)
file - dbf filepublic long getClientsCount()
public List<Client> getClients(int offset, int count)
offset - offsetcount - countpublic void saveClient(Client client)
public long getPlacesCount()
protected Place getPlaceByCode(String code)
code - place codepublic long getSuppliersCount()
public List<Supplier> getSuppliers(int offset, int count)
offset - offsetcount - countpublic Supplier getSupplierById(String supplierId)
offset - offsetcount - countpublic long getProductsCount()
public List<Product> getProducts(int offset, int count)
offset - offsetcount - countpublic List<AnalyzeType> findAllAnalyzeTypes()
public AnalyzeType findAnalyzeTypeById(String id)
public void saveAnalyzeType(AnalyzeType analyzeType)
public void saveAnalyzeCategory(AnalyzeCategory analyzeCategory)
public List<AnalyzeCategory> findAllAnalyzeCategories()
public AnalyzeCategory findAnalyzeCategoryById(String id)
public List<Supplier> getAllSupplierOnlyLabs()
public List<ProductStatus> findAllProductStatus()
public ProductStatus getProductStatusById(String productStatusId)
Copyright © 2012 Herboristerie Cailleau. All Rights Reserved.