use of org.mifos.config.business.MifosConfigurationManager in project head by mifos.
the class GeneralConfig method getMaxPointsPerPPISurvey.
public static int getMaxPointsPerPPISurvey() {
// default value is 101
int maxPointsPerPPISurvey = 101;
MifosConfigurationManager configMgr = MifosConfigurationManager.getInstance();
if (configMgr.containsKey(MaxPointsPerPPISurvey)) {
maxPointsPerPPISurvey = configMgr.getInt(MaxPointsPerPPISurvey);
}
return maxPointsPerPPISurvey;
}
use of org.mifos.config.business.MifosConfigurationManager in project head by mifos.
the class GeneralConfig method getBatchSizeForBatchJobs.
public static int getBatchSizeForBatchJobs() {
// default value is 40
int batchSizeForBatchJobs = 40;
MifosConfigurationManager configMgr = MifosConfigurationManager.getInstance();
if (configMgr.containsKey(BatchSizeForBatchJobs)) {
batchSizeForBatchJobs = configMgr.getInt(BatchSizeForBatchJobs);
}
return batchSizeForBatchJobs;
}
use of org.mifos.config.business.MifosConfigurationManager in project head by mifos.
the class GeneralConfig method getRecordCommittingSizeForBatchJobs.
public static int getRecordCommittingSizeForBatchJobs() {
// default value is 1000
int committingRecordSizeForBatchJobs = 1000;
MifosConfigurationManager configMgr = MifosConfigurationManager.getInstance();
if (configMgr.containsKey(RecordCommittingSizeForBatchJobs)) {
committingRecordSizeForBatchJobs = configMgr.getInt(RecordCommittingSizeForBatchJobs);
}
return committingRecordSizeForBatchJobs;
}
use of org.mifos.config.business.MifosConfigurationManager in project head by mifos.
the class GeneralConfig method getAllowDataPrefetchingWhenSavingCollectionSheets.
public static Boolean getAllowDataPrefetchingWhenSavingCollectionSheets() {
// default value is true
Boolean allowDataPrefetching = true;
MifosConfigurationManager configMgr = MifosConfigurationManager.getInstance();
if (configMgr.containsKey(allowDataPrefetchingWhenSavingCollectionSheets)) {
allowDataPrefetching = configMgr.getBoolean(allowDataPrefetchingWhenSavingCollectionSheets, allowDataPrefetching);
}
return allowDataPrefetching;
}
use of org.mifos.config.business.MifosConfigurationManager in project head by mifos.
the class LocaleSetting method setCountryCodeToConfigFile.
public void setCountryCodeToConfigFile() {
MifosConfigurationManager configMgr = MifosConfigurationManager.getInstance();
configMgr.addProperty(COUNTRY_CODE, countryCode);
}
Aggregations