Ejemplo n.º 1
0
  @Override
  public SearchResultWrapper<Test> getAvailableTests() {
    TestSearchTO search = new TestSearchTO();
    search.setGroupFilter(GroupFilter.MY_GROUPS);
    List<String> groups = userService.getLoggedUserGroupNames();

    return testDAO.searchTests(search, groups);
  }
Ejemplo n.º 2
0
  @Override
  public SearchResultWrapper<TestExecution> searchTestExecutions(TestExecutionSearchTO search) {
    // remove param criteria with empty param name
    if (search.getParameters() != null) {
      for (Iterator<ParamCriteria> allParams = search.getParameters().iterator();
          allParams.hasNext(); ) {
        ParamCriteria param = allParams.next();
        if (param.isNameEmpty()) {
          allParams.remove();
        }
      }
    }

    return testExecutionDAO.searchTestExecutions(search, userService.getLoggedUserGroupNames());
  }
Ejemplo n.º 3
0
 @Override
 public SearchResultWrapper<Test> searchTest(TestSearchTO search) {
   return testDAO.searchTests(search, userService.getLoggedUserGroupNames());
 }