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

com.capitalone.dashboard.model.Template Maven / Gradle / Ivy

There is a newer version: 4.0.2
Show newest version
package com.capitalone.dashboard.model;

import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.ArrayList;
import java.util.List;

/**
 * A collection of templates represent a software
 * project under development and/or in production use.
 */
@Document(collection = "templates")
public class Template extends BaseModel {
    @Indexed(unique = true)
    private String template;

    private List widgets = new ArrayList<>();

    private List order = new ArrayList<>();

    public Template(String template, List widgets, List order) {
        this.template = template;
        this.widgets = widgets;
        this.order = order;
    }

    public String getTemplate() {
        return template;
    }

    public void setTemplate(String template) {
        this.template = template;
    }

    public List getWidgets() {
        return widgets;
    }

    public void setWidgets(List widgets) {
        this.widgets = widgets;
    }

    public List getOrder() {
        return order;
    }

    public void setOrder(List order) {
        this.order = order;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy