/** * Collects configs. * * @param folderName folderName, usually just the empty string. * @return List of ConfigInfo, may be empty * @throws IOException if an entry could not be read. */ public List<ConfigInfo> collect(final String folderName) throws IOException { final File[] itemDirs; if ("deleted".equals(type)) { itemDirs = overViewhistoryDao.getDeletedJobs(folderName); } else { itemDirs = (File[]) ArrayUtils.addAll( overViewhistoryDao.getDeletedJobs(folderName), overViewhistoryDao.getJobs(folderName)); } Arrays.sort(itemDirs, FileNameComparator.INSTANCE); for (final File itemDir : itemDirs) { getConfigsForType(itemDir, folderName); } return configs; }