use of edu.cornell.kfs.sys.service.UserFavoriteAccountService in project cu-kfs by CU-CommunityApps.
the class PurchasingActionBase method populatePrimaryFavoriteAccount.
// KFSPTS_985, KFSUPGRADE-75
protected void populatePrimaryFavoriteAccount(List<PurApAccountingLine> sourceAccountinglines, Class<? extends PurApAccountingLine> accountingLineClass) {
UserFavoriteAccountService userFavoriteAccountService = SpringContext.getBean(UserFavoriteAccountService.class);
FavoriteAccount account = userFavoriteAccountService.getFavoriteAccount(GlobalVariables.getUserSession().getPrincipalId());
if (ObjectUtils.isNotNull(account)) {
sourceAccountinglines.add(userFavoriteAccountService.getPopulatedNewAccount(account, accountingLineClass));
}
}
Aggregations