git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1157 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2006-11-18 15:04:09 +00:00
1 parent d6ea370f5c
commit e3969834b4
2 files changed
+23 -1

No files matched your search

@@ -90,6 +90,26 @@ public abstract class JobCollection extends AbstractModelObject {
return that.lastChange.compareTo(this.lastChange);
}
}
/**
* Does this {@link JobCollection} has any associated user information recorded?
*/
public final boolean hasPeople() {
for (Job job : getJobs()) {
if (job instanceof Project) {
Project p = (Project) job;
for (Build build : p.getBuilds()) {
for (Entry entry : build.getChangeSet()) {
User user = entry.getAuthor();
if(user!=null)
return true;
}
}
}
}
return false;
}
/**
* Gets the users that show up in the changelog of this job collection.
*/