Search in sources :

Example 1 with UserFavoriteAccountService

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));
    }
}
Also used : UserFavoriteAccountService(edu.cornell.kfs.sys.service.UserFavoriteAccountService) FavoriteAccount(edu.cornell.kfs.sys.businessobject.FavoriteAccount)

Aggregations

FavoriteAccount (edu.cornell.kfs.sys.businessobject.FavoriteAccount)1 UserFavoriteAccountService (edu.cornell.kfs.sys.service.UserFavoriteAccountService)1