@Test public void testFindByCriteria() { WorkflowRunService wfService = BeanFactory.getWorkflowRunServiceBean(); List<WorkflowRun> found = wfService.findByCriteria("NC_001807", false); assertEquals(4, found.size()); found = wfService.findByCriteria("ExomesOrHg19Tumour", true); assertEquals(1, found.size()); found = wfService.findByCriteria("exomesOrHg19Tumour", true); assertEquals(0, found.size()); found = wfService.findByCriteria("2862", true); assertEquals(1, found.size()); }
@Override public List<WorkflowRun> findByCriteria(String criteria, boolean isCaseSens) { return workflowRunDAO.findByCriteria(criteria, isCaseSens); }
WorkflowRunServiceImpl implements WorkflowRunService { @Override public List<WorkflowRun> findByCriteria(String criteria, boolean isCaseSens) { return workflowRunDAO.findByCriteria(criteria, isCaseSens); } }
WorkflowRunServiceImpl implements WorkflowRunService { @Override public List<WorkflowRun> findByCriteria(String criteria, boolean isCaseSens) { return workflowRunDAO.findByCriteria(criteria, isCaseSens); } WorkflowRunServiceImpl(); }
WorkflowRunServiceImpl implements WorkflowRunService { @Override public List<WorkflowRun> findByCriteria(String criteria, boolean isCaseSens) { return workflowRunDAO.findByCriteria(criteria, isCaseSens); } WorkflowRunServiceImpl(); @Override void setWorkflowRunDAO(WorkflowRunDAO workflowRunDAO); void setProcessingDAO(ProcessingDAO processingDAO); void setWorkflowRunParamDAO(WorkflowRunParamDAO workflowRunParamDAO); void setFileDAO(FileDAO fileDAO); @Override Integer insert(WorkflowRun workflowRun); @Override Integer insert(WorkflowRun workflowRun, SortedSet<WorkflowRunParam> workflowRunParams, Map<String, List<File>> allSelectedFiles); @Override Integer insert(Registration registration, WorkflowRun workflowRun, SortedSet<WorkflowRunParam> workflowRunParams,
            Map<String, List<File>> allSelectedFiles); @Override void update(WorkflowRun workflowRun); @Override void update(WorkflowRun workflowRun, List<Integer> laneIds); @Override void delete(WorkflowRun workflowRun, boolean deleteRealFiles); @Override Processing getRootProcessing(Integer wfrId); @Override List<File> getFiles(Integer wfrId); @Override List<WorkflowRun> listWithHasFile(List<WorkflowRun> list); @Override List<WorkflowRun> list(); @Override List<WorkflowRun> list(Registration registration); @Override List<WorkflowRun> listMyShared(Registration registration); @Override List<WorkflowRun> listSharedWithMe(Registration registration); @Override List<WorkflowRun> listRunning(Registration registration); @Override List<WorkflowRun> list(Registration registration, Boolean isAsc); @Override List<WorkflowRun> listMyShared(Registration registration, Boolean isAsc); @Override List<WorkflowRun> listSharedWithMe(Registration registration, Boolean isAsc); @Override List<WorkflowRun> listRunning(Registration registration, Boolean isAsc); @Override List<Workflow> listRelatedWorkflows(Registration registration); @Override WorkflowRun findByName(String name); @Override WorkflowRun findByID(Integer wfrID); @Override WorkflowRun findBySWAccession(Integer swAccession); @Override List<WorkflowRun> findByOwnerID(Integer registrationID); @Override WorkflowRun findByIDWithIUS(Integer wfrID); @Override WorkflowRun findByIDWithIUSAndRunningWR(Integer wfrID); @Override List<WorkflowRun> listSharedWithMeWithSample(Registration registration); @Override List<WorkflowRun> findByCriteria(String criteria, boolean isCaseSens); @Override List<WorkflowRun> findByCriteria(String criteria); @Override WorkflowRun updateDetached(WorkflowRun workflowRun); @Override Set<WorkflowRun> findRunsForIUS(IUS ius); @Override List<File> findFiles(Integer swAccession); @Override Set<WorkflowRun> findRunsForSample(Sample sample); @Override void update(Registration registration, WorkflowRun workflowRun); @Override Integer insert(Registration registration, WorkflowRun workflowRun); @Override void update(Registration registration, WorkflowRun workflowRun, List<Integer> laneIds); }
WorkflowRunServiceImpl implements WorkflowRunService { @Override public List<WorkflowRun> findByCriteria(String criteria, boolean isCaseSens) { return workflowRunDAO.findByCriteria(criteria, isCaseSens); } WorkflowRunServiceImpl(); @Override void setWorkflowRunDAO(WorkflowRunDAO workflowRunDAO); void setProcessingDAO(ProcessingDAO processingDAO); void setWorkflowRunParamDAO(WorkflowRunParamDAO workflowRunParamDAO); void setFileDAO(FileDAO fileDAO); @Override Integer insert(WorkflowRun workflowRun); @Override Integer insert(WorkflowRun workflowRun, SortedSet<WorkflowRunParam> workflowRunParams, Map<String, List<File>> allSelectedFiles); @Override Integer insert(Registration registration, WorkflowRun workflowRun, SortedSet<WorkflowRunParam> workflowRunParams,
            Map<String, List<File>> allSelectedFiles); @Override void update(WorkflowRun workflowRun); @Override void update(WorkflowRun workflowRun, List<Integer> laneIds); @Override void delete(WorkflowRun workflowRun, boolean deleteRealFiles); @Override Processing getRootProcessing(Integer wfrId); @Override List<File> getFiles(Integer wfrId); @Override List<WorkflowRun> listWithHasFile(List<WorkflowRun> list); @Override List<WorkflowRun> list(); @Override List<WorkflowRun> list(Registration registration); @Override List<WorkflowRun> listMyShared(Registration registration); @Override List<WorkflowRun> listSharedWithMe(Registration registration); @Override List<WorkflowRun> listRunning(Registration registration); @Override List<WorkflowRun> list(Registration registration, Boolean isAsc); @Override List<WorkflowRun> listMyShared(Registration registration, Boolean isAsc); @Override List<WorkflowRun> listSharedWithMe(Registration registration, Boolean isAsc); @Override List<WorkflowRun> listRunning(Registration registration, Boolean isAsc); @Override List<Workflow> listRelatedWorkflows(Registration registration); @Override WorkflowRun findByName(String name); @Override WorkflowRun findByID(Integer wfrID); @Override WorkflowRun findBySWAccession(Integer swAccession); @Override List<WorkflowRun> findByOwnerID(Integer registrationID); @Override WorkflowRun findByIDWithIUS(Integer wfrID); @Override WorkflowRun findByIDWithIUSAndRunningWR(Integer wfrID); @Override List<WorkflowRun> listSharedWithMeWithSample(Registration registration); @Override List<WorkflowRun> findByCriteria(String criteria, boolean isCaseSens); @Override List<WorkflowRun> findByCriteria(String criteria); @Override WorkflowRun updateDetached(WorkflowRun workflowRun); @Override Set<WorkflowRun> findRunsForIUS(IUS ius); @Override List<File> findFiles(Integer swAccession); @Override Set<WorkflowRun> findRunsForSample(Sample sample); @Override void update(Registration registration, WorkflowRun workflowRun); @Override Integer insert(Registration registration, WorkflowRun workflowRun); @Override void update(Registration registration, WorkflowRun workflowRun, List<Integer> laneIds);  }