use of org.codice.ddf.admin.application.service.ApplicationNode in project ddf by codice.
the class ApplicationServiceBean method getApplications.
@Override
public List<Map<String, Object>> getApplications() {
Set<ApplicationNode> rootApplications = appService.getApplicationTree();
List<Map<String, Object>> applications = new ArrayList<Map<String, Object>>();
List<Map<String, Object>> applicationsArray = new ArrayList<Map<String, Object>>();
for (ApplicationNode curRoot : rootApplications) {
List<String> parentList = new ArrayList<String>();
applications.add(convertApplicationEntries(curRoot, parentList, applicationsArray));
}
LOGGER.debug("Returning {} root applications.", applications.size());
return applicationsArray;
}
use of org.codice.ddf.admin.application.service.ApplicationNode in project ddf by codice.
the class ApplicationServiceBean method getApplicationTree.
@Override
public List<Map<String, Object>> getApplicationTree() {
Set<ApplicationNode> rootApplications = appService.getApplicationTree();
List<Map<String, Object>> applications = new ArrayList<Map<String, Object>>();
for (ApplicationNode curRoot : rootApplications) {
applications.add(convertApplicationNode(curRoot));
}
LOGGER.debug("Returning {} root applications.", applications.size());
return applications;
}
Aggregations