use of org.mifos.accounts.util.helpers.AccountTypes in project head by mifos.
the class AccountStateMachines method initializeLoanStates.
public void initializeLoanStates() throws StatesInitializationException {
AccountTypes accountType = AccountTypes.LOAN_ACCOUNT;
CustomerLevel level = null;
String configName = getConfigurationName(accountType, level);
try {
statesMapForLoan = loadMap(AccountStates.TRANSITION_CONFIG_FILE_PATH_LOAN, configName);
accountStateEntityListForLoan = retrieveAllAccountStateList(accountType);
removeLoanReversalFlagForCancelState();
populateLoanStatesViewMap();
} catch (Exception e) {
throw new StatesInitializationException(SavingsConstants.STATEINITIALIZATION_EXCEPTION, e);
}
}
use of org.mifos.accounts.util.helpers.AccountTypes in project head by mifos.
the class AccountStateMachines method initializeSavingsStates.
public void initializeSavingsStates() throws StatesInitializationException {
AccountTypes accountType = AccountTypes.SAVINGS_ACCOUNT;
CustomerLevel level = null;
String configName = getConfigurationName(accountType, level);
try {
statesMapForSavings = loadMap(AccountStates.TRANSITION_CONFIG_FILE_PATH_SAVINGS, configName);
accountStateEntityListForSavings = retrieveAllAccountStateList(accountType);
populateSavingsStatesViewMap();
} catch (Exception e) {
throw new StatesInitializationException(SavingsConstants.STATEINITIALIZATION_EXCEPTION, e);
}
}
use of org.mifos.accounts.util.helpers.AccountTypes in project head by mifos.
the class AccountStateMachines method initializeCenterStates.
public void initializeCenterStates() throws StatesInitializationException {
AccountTypes accountType = AccountTypes.CUSTOMER_ACCOUNT;
CustomerLevel level = CustomerLevel.CENTER;
String configName = getConfigurationName(accountType, level);
try {
statesMapForCenter = loadMap(CustomerConstants.TRANSITION_CONFIG_FILE_PATH_CENTER, configName);
customerStatusListForCenter = retrieveAllCustomerStatusList(level);
populateCenterStatesViewMap();
} catch (Exception e) {
throw new StatesInitializationException(SavingsConstants.STATEINITIALIZATION_EXCEPTION, e);
}
}
use of org.mifos.accounts.util.helpers.AccountTypes in project head by mifos.
the class AccountStateMachines method initializeGroupStates.
public void initializeGroupStates() throws StatesInitializationException {
AccountTypes accountType = AccountTypes.CUSTOMER_ACCOUNT;
CustomerLevel level = CustomerLevel.GROUP;
String configName = getConfigurationName(accountType, level);
try {
statesMapForGroup = loadMap(CustomerConstants.TRANSITION_CONFIG_FILE_PATH_GROUP, configName);
customerStatusListForGroup = retrieveAllCustomerStatusList(level);
populateGroupStatesViewMap();
} catch (Exception e) {
throw new StatesInitializationException(SavingsConstants.STATEINITIALIZATION_EXCEPTION, e);
}
}
use of org.mifos.accounts.util.helpers.AccountTypes in project head by mifos.
the class AccountStateMachines method initializeClientStates.
public void initializeClientStates() throws StatesInitializationException {
AccountTypes accountType = AccountTypes.CUSTOMER_ACCOUNT;
CustomerLevel level = CustomerLevel.CLIENT;
String configName = getConfigurationName(accountType, level);
try {
statesMapForClient = loadMap(CustomerConstants.TRANSITION_CONFIG_FILE_PATH_CLIENT, configName);
customerStatusListForClient = retrieveAllCustomerStatusList(level);
populateClientStatesViewMap();
} catch (Exception e) {
throw new StatesInitializationException(SavingsConstants.STATEINITIALIZATION_EXCEPTION, e);
}
}
Aggregations