public Map<String, String> getAllProjects() { Map<String, String> allProjs = new TreeMap<String, String>(); List<Project> projs = prMgr.getProjectObjects(); if (projs != null) { for (Project proj : projs) { allProjs.put(proj.getId().toString(), getProjView(proj.getName(), proj.getDescription())); } } return allProjs; }
public AffectedProject(final Project project) { this.projectId = project.getId(); this.projectName = project.getName(); }