mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 05:52:26 +00:00
got rid of Hudon.getJobs()
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1831 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
c467e67e46
commit
f133121f99
7 files changed
+15
-18
No files matched your search
@@ -359,13 +359,6 @@ public final class Hudson extends View implements ItemGroup<TopLevelItem>, Node
|
||||
throw new IllegalStateException("Trying to remove unknown computer");
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the snapshot of all the jobs.
|
||||
*/
|
||||
public List<Job> getJobs() {
|
||||
return Util.createSubList(items.values(),Job.class);
|
||||
}
|
||||
|
||||
public String getFullName() {
|
||||
return "";
|
||||
}
|
||||
@@ -653,6 +646,10 @@ public final class Hudson extends View implements ItemGroup<TopLevelItem>, Node
|
||||
}
|
||||
}
|
||||
|
||||
public Item getItemByFullName(String fullName) {
|
||||
return getItemByFullName(fullName,Item.class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the user of the given name.
|
||||
*
|
||||
|
||||
@@ -102,9 +102,9 @@ public class ListView extends View {
|
||||
req.setCharacterEncoding("UTF-8");
|
||||
|
||||
jobNames.clear();
|
||||
for (Job job : owner.getJobs()) {
|
||||
if(req.getParameter(job.getName())!=null)
|
||||
jobNames.add(job.getName());
|
||||
for (TopLevelItem item : owner.getItems()) {
|
||||
if(req.getParameter(item.getName())!=null)
|
||||
jobNames.add(item.getName());
|
||||
}
|
||||
|
||||
description = Util.nullify(req.getParameter("description"));
|
||||
|
||||
@@ -156,7 +156,7 @@ public class User extends AbstractModelObject {
|
||||
public List<AbstractBuild> getBuilds() {
|
||||
List<AbstractBuild> r = new ArrayList<AbstractBuild>();
|
||||
for (AbstractProject<?,?> p : Hudson.getInstance().getAllItems(AbstractProject.class)) {
|
||||
for (AbstractBuild b : p.getBuilds()) {
|
||||
for (AbstractBuild<?,?> b : p.getBuilds()) {
|
||||
for (ChangeLogSet.Entry e : b.getChangeSet()) {
|
||||
if(e.getAuthor()==this) {
|
||||
r.add(b);
|
||||
|
||||
Reference in new issue
Block a user