View Javadoc
1   package org.kuali.kpme.edo.reviewlayerdef.service;
2   
3   import java.util.List;
4   
5   import org.kuali.kpme.edo.api.reviewlayerdef.EdoSuppReviewLayerDefinition;
6   import org.kuali.kpme.edo.reviewlayerdef.EdoSuppReviewLayerDefinitionBo;
7   import org.kuali.kpme.edo.reviewlayerdef.dao.EdoSuppReviewLayerDefinitionDao;
8   import org.kuali.rice.core.api.mo.ModelObjectUtils;
9   
10  public class EdoSuppReviewLayerDefinitionServiceImpl implements EdoSuppReviewLayerDefinitionService {
11  
12      private EdoSuppReviewLayerDefinitionDao edoSuppReviewLayerDefinitionDao;
13  
14      protected List<EdoSuppReviewLayerDefinition> convertToImmutable(List<EdoSuppReviewLayerDefinitionBo> bos) {
15  		return ModelObjectUtils.transform(bos, EdoSuppReviewLayerDefinitionBo.toImmutable);
16  	}
17  
18      public EdoSuppReviewLayerDefinitionDao getEdoSuppReviewLayerDefinitionDao() {
19          return edoSuppReviewLayerDefinitionDao;
20      }
21  
22      public void setEdoSuppReviewLayerDefinitionDao(EdoSuppReviewLayerDefinitionDao edoSuppReviewLayerDefinitionDao) {
23          this.edoSuppReviewLayerDefinitionDao = edoSuppReviewLayerDefinitionDao;
24      }
25   
26      public List<String> getAuthorizedSupplementalNodes(String edoReviewLayerDefinitionId) {
27      
28      	return this.edoSuppReviewLayerDefinitionDao.getAuthorizedSupplementalNodes(edoReviewLayerDefinitionId);	
29      }
30      
31      public List<EdoSuppReviewLayerDefinition> getSuppReviewLayerDefinitions(String edoReviewLayerDefinitionId) {
32      	List<EdoSuppReviewLayerDefinitionBo> bos = edoSuppReviewLayerDefinitionDao.getSuppReviewLayerDefinitions(edoReviewLayerDefinitionId);
33      	return convertToImmutable(bos);
34      } 
35  
36      public String getSuppLevelQualifierByWorkflowId(String edoWorkflowId, String nodeName) {
37          return this.edoSuppReviewLayerDefinitionDao.getSuppLevelQualifierByWorkflowId(edoWorkflowId, nodeName);
38      }
39  
40  }