Search in sources :

Example 1 with Key

use of org.mifos.config.cache.Key in project head by mifos.

the class ConfigurationInitializer method setFiscalStartOfWeek.

private void setFiscalStartOfWeek(Map<Key, Object> officeConfigMap) throws SystemException, ApplicationException {
    Short id = new FiscalCalendarRules().getStartOfWeek();
    officeConfigMap.put(new Key(getHeadOffice().getOfficeId(), ConfigConstants.FISCAL_START_OF_WEEK), id);
}
Also used : Key(org.mifos.config.cache.Key) FiscalCalendarRules(org.mifos.config.FiscalCalendarRules)

Example 2 with Key

use of org.mifos.config.cache.Key in project head by mifos.

the class ConfigurationInitializer method setLateNessAndDormancyDaysForAccount.

private void setLateNessAndDormancyDaysForAccount(Map<Key, Object> officeConfigMap) throws SystemException, ApplicationException {
    Short latenessDays = new LoanPrdPersistence().retrieveLatenessForPrd();
    Short dormancyDays = ApplicationContextProvider.getBean(SavingsProductDao.class).findSavingsProductConfiguration().getDormancyDays();
    officeConfigMap.put(new Key(getHeadOffice().getOfficeId(), ConfigConstants.LATENESS_DAYS), latenessDays);
    officeConfigMap.put(new Key(getHeadOffice().getOfficeId(), ConfigConstants.DORMANCY_DAYS), dormancyDays);
}
Also used : LoanPrdPersistence(org.mifos.accounts.productdefinition.persistence.LoanPrdPersistence) Key(org.mifos.config.cache.Key)

Aggregations

Key (org.mifos.config.cache.Key)2 LoanPrdPersistence (org.mifos.accounts.productdefinition.persistence.LoanPrdPersistence)1 FiscalCalendarRules (org.mifos.config.FiscalCalendarRules)1