All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.offbytwo.jenkins.model.MainView Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (c) 2013 Cosmin Stejerean, Karl Heinz Marbaise, and contributors.
 *
 * 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