com.capitalone.dashboard.model.Template Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
Core package shared by API layer and Microservices
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