/** * Returns all applications that this project is a part of. This could be multiple applications if this project is included multiple times. */ default List<ProjectModel> getApplications() { return new ArrayList<>(this.getApplications(this)); }
/** * Returns all applications that this project is a part of. This could be multiple applications if this project is included multiple times. */ default List<ProjectModel> getApplications() { return new ArrayList<>(this.getApplications(this)); }
/** * Gets the list of all applications that this file is a part of. This will include both the "shared-libs" project as well as any actual * applications. */ @Override default List<ProjectModel> getApplications() { return getProjectModel().getApplications(); }
/** * Gets the list of all applications that this file is a part of. This will include both the "shared-libs" project as well as any actual * applications. */ @Override default List<ProjectModel> getApplications() { return getProjectModel().getApplications(); }
default Set<ProjectModel> getApplications(ProjectModel project) { Set<ProjectModel> applications = new HashSet<>(); for (ProjectModel duplicate : project.getDuplicateProjects()) { duplicate.getApplications().forEach(applications::add); } ProjectModel parent = project.getParentProject(); if (parent != null) parent.getApplications().forEach(applications::add); if (parent == null) applications.add(project); return applications; }
default Set<ProjectModel> getApplications(ProjectModel project) { Set<ProjectModel> applications = new HashSet<>(); for (ProjectModel duplicate : project.getDuplicateProjects()) { duplicate.getApplications().forEach(applications::add); } ProjectModel parent = project.getParentProject(); if (parent != null) parent.getApplications().forEach(applications::add); if (parent == null) applications.add(project); return applications; }
if (onlyForApplication == null) appsToCountTowards = StreamSupport.stream(stat.getProjectModel().getApplications().spliterator(), false) .map(ProjectModel::getElement) .map(Vertex::id)
if (onlyForApplication == null) appsToCountTowards = StreamSupport.stream(stat.getProjectModel().getApplications().spliterator(), false) .map(ProjectModel::getElement) .map(Vertex::id)