use of org.mifos.customers.business.CustomerActivityEntity in project head by mifos.
the class CenterServiceFacadeWebTier method retrieveAllAccountActivity.
@Override
public List<CustomerRecentActivityDto> retrieveAllAccountActivity(String globalCustNum) {
List<CustomerRecentActivityDto> customerActivityViewList = new ArrayList<CustomerRecentActivityDto>();
CustomerBO customerBO = this.customerDao.findCustomerBySystemId(globalCustNum);
List<CustomerActivityEntity> customerActivityDetails = customerBO.getCustomerAccount().getCustomerActivitDetails();
for (CustomerActivityEntity customerActivityEntity : customerActivityDetails) {
customerActivityViewList.add(assembleCustomerActivityDto(customerActivityEntity, Locale.getDefault()));
}
return customerActivityViewList;
}
use of org.mifos.customers.business.CustomerActivityEntity in project head by mifos.
the class CenterServiceFacadeWebTier method retrieveRecentActivities.
@Override
public List<CustomerRecentActivityDto> retrieveRecentActivities(Integer customerId, Integer countOfActivities) {
CustomerBO customerBO = this.customerDao.findCustomerById(customerId);
List<CustomerActivityEntity> customerActivityDetails = customerBO.getCustomerAccount().getCustomerActivitDetails();
List<CustomerRecentActivityDto> customerActivityViewList = new ArrayList<CustomerRecentActivityDto>();
int count = 0;
for (CustomerActivityEntity customerActivityEntity : customerActivityDetails) {
customerActivityViewList.add(getCustomerActivityView(customerActivityEntity));
if (++count == countOfActivities) {
break;
}
}
return customerActivityViewList;
}
Aggregations