public class ConfigurationService extends SgqService
| Modifier and Type | Field and Description |
|---|---|
static String |
NEXT_BIO_BATCH_NUMBER_CONFIG |
static String |
NEXT_NON_BIO_BATCH_NUMBER_CONFIG |
config, daoHelper| Constructor and Description |
|---|
ConfigurationService() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getBackupDevices()
Execute list devices script to get connected devices map (id and names).
|
int |
getLastBioBatchNumber()
Get
lastBioBatchNumber from appConfiguration. |
int |
getLastNonBioBatchNumber()
Get
lastNonBioBatchNumber from appConfiguration. |
int |
getNextBioBatchNumber()
Get
nextBioBatchNumber from database or appConfiguration. |
int |
getNextNonBioBatchNumber()
Get
nextNonBioBatchNumber from database or appConfiguration. |
void |
saveBackupOnDevice(String deviceId,
String notificationEmail)
Run save backup command and wait for command ending.
|
void |
saveBatchLimit(int nextNonBioBatchNumber,
int nextBioBatchNumber)
Save
nextBioBatchNumber into database. |
setConfig, setServiceDAOHelperpublic static final String NEXT_NON_BIO_BATCH_NUMBER_CONFIG
public static final String NEXT_BIO_BATCH_NUMBER_CONFIG
public int getNextNonBioBatchNumber()
nextNonBioBatchNumber from database or appConfiguration.public void saveBatchLimit(int nextNonBioBatchNumber,
int nextBioBatchNumber)
nextBioBatchNumber into database.public int getNextBioBatchNumber()
nextBioBatchNumber from database or appConfiguration.public int getLastNonBioBatchNumber()
lastNonBioBatchNumber from appConfiguration.public int getLastBioBatchNumber()
lastBioBatchNumber from appConfiguration.public Map<String,String> getBackupDevices()
Copyright © 2012-2013 Herboristerie Cailleau. All Rights Reserved.