com.offbytwo.jenkins.model.MainView Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jenkins-client Show documentation
Show all versions of jenkins-client Show documentation
A Jenkins API client for Java
/*
* Copyright (c) 2013 Rising Oak LLC.
*
* Distributed under the MIT license: http://opensource.org/licenses/MIT
*/
package com.offbytwo.jenkins.model;
import java.util.Arrays;
import java.util.List;
import com.google.common.collect.Lists;
public class MainView extends BaseModel {
private List jobs;
private List views;
/* default constructor needed for Jackson */
public MainView() {
this(Lists. newArrayList(), Lists. newArrayList());
}
public MainView(List jobs, List views) {
this.jobs = jobs;
this.views = views;
}
public MainView(Job... jobs) {
this(Arrays.asList(jobs), Lists. newArrayList());
}
public List getJobs() {
return jobs;
}
public void setJobs(List jobs) {
this.jobs = jobs;
}
public List getViews() {
return views;
}
public void setViews(List views) {
this.views = views;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy