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

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

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

import org.bson.types.ObjectId;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.HashMap;
import java.util.Map;

/**
 * 

* Represents a unique collection in an external tool. For example, for a CI tool * the collector item would be a Job. For a project management tool, the collector item * might be a Scope. *

*

* Each {@link Collector} is responsible for specifying how it's {@link CollectorItem}s are * uniquely identified by storing key/value pairs in the options Map. The description field will * be visible to users in the UI to aid in selecting the correct {@link CollectorItem} for their dashboard. * Ideally, the description will be unique for a given {@link Collector}. *

*/ @Document(collection="collector_items") public class CollectorItem extends BaseModel { private String description; private String niceName; private boolean enabled; private boolean pushed; private ObjectId collectorId; private long lastUpdated; private Map options = new HashMap<>(); @Transient private Collector collector; public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public boolean isEnabled() { return enabled; } public void setEnabled(boolean enabled) { this.enabled = enabled; } public ObjectId getCollectorId() { return collectorId; } public void setCollectorId(ObjectId collectorId) { this.collectorId = collectorId; } public Collector getCollector() { return collector; } public void setCollector(Collector collector) { this.collector = collector; } public Map getOptions() { return options; } public boolean isPushed() { return pushed; } public void setPushed(boolean pushed) { this.pushed = pushed; } public long getLastUpdated() { return lastUpdated; } public void setLastUpdated(long lastUpdated) { this.lastUpdated = lastUpdated; } public String getNiceName() { return niceName; } public void setNiceName(String niceName) { this.niceName = niceName; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy