Ejemplo n.º 1
0
 @Override
 public List<Action> getMatchedActionList(int projectId, String pattern) {
   List<Action> actionList = projectDao.getMatchedActionList(projectId, pattern);
   if (actionList == null || actionList.size() == 0) {
     Project project = projectDao.getProject(projectId);
     if (project != null) {
       String ids = project.getRelatedIds();
       if (ids != null && !ids.isEmpty()) {
         String[] arr = ids.split(",");
         for (String id : arr) {
           actionList = projectDao.getMatchedActionList(Integer.parseInt(id), pattern);
           if (actionList != null && actionList.size() != 0) {
             return actionList;
           }
         }
       }
     }
   }
   return actionList;
 }
Ejemplo n.º 2
0
 @Override
 public Project getProject(int id) {
   return projectDao.getProject(id);
 }