1 package org.kuali.kpme.edo.committeesready.service; 2 3 import java.util.List; 4 5 import org.kuali.kpme.edo.api.committeesready.EdoCommitteesReady; 6 import org.kuali.kpme.edo.committeesready.EdoCommitteesReadyBo; 7 import org.kuali.kpme.edo.committeesready.dao.EdoCommitteesReadyDao; 8 import org.kuali.rice.core.api.mo.ModelObjectUtils; 9 10 public class EdoCommitteesReadyServiceImpl implements EdoCommitteesReadyService { 11 12 private EdoCommitteesReadyDao edoCommitteesReadyDao; 13 14 protected List<EdoCommitteesReady> convertToImmutable(List<EdoCommitteesReadyBo> bos) { 15 return ModelObjectUtils.transform(bos, EdoCommitteesReadyBo.toImmutable); 16 } 17 18 public EdoCommitteesReadyDao getEdoCommitteesReadyDao() { 19 return edoCommitteesReadyDao; 20 } 21 22 public void setEdoCommitteesReadyDao(EdoCommitteesReadyDao edoCommitteesReadyDao) { 23 this.edoCommitteesReadyDao = edoCommitteesReadyDao; 24 } 25 26 public boolean saveOrUpdate(EdoCommitteesReady edoCommitteesReady ) { 27 EdoCommitteesReadyBo bo = EdoCommitteesReadyBo.from(edoCommitteesReady); 28 return this.edoCommitteesReadyDao.saveOrUpdate(bo); 29 } 30 31 public EdoCommitteesReady getEdoCommitteesReady(String groupKeyCode) { 32 return EdoCommitteesReadyBo.to(this.edoCommitteesReadyDao.getEdoCommitteesReady(groupKeyCode)); 33 } 34 35 public List<EdoCommitteesReady> getEdoCommitteesReadyList() { 36 List<EdoCommitteesReadyBo> bos = this.edoCommitteesReadyDao.getEdoCommitteesReadyList(); 37 return convertToImmutable(bos); 38 } 39 40 }