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

com.capitalone.dashboard.request.CollectorItemRequest Maven / Gradle / Ivy

There is a newer version: 3.4.53
Show newest version
package com.capitalone.dashboard.request;

import com.capitalone.dashboard.model.CollectorItem;
import org.bson.types.ObjectId;

import javax.validation.constraints.NotNull;
import java.util.HashMap;
import java.util.Map;

public class CollectorItemRequest {
    @NotNull
    private ObjectId collectorId;

    private ObjectId id;

    private String description;
    private Map options = new HashMap<>();

    private Map uniqueOptions = new HashMap<>();

    private boolean deleteFromComponent = true;

    public ObjectId getCollectorId() {
        return collectorId;
    }

    public void setCollectorId(ObjectId collectorId) {
        this.collectorId = collectorId;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Map getOptions() {
        return options;
    }

    public void setOptions(Map options) {
        this.options = options;
    }

    public Map getUniqueOptions() {
        return uniqueOptions;
    }

    public void setUniqueOptions(Map uniqueOptions) {
        this.uniqueOptions = uniqueOptions;
    }

    public boolean isDeleteFromComponent() { return deleteFromComponent; }

    public void setDeleteFromComponent(boolean deleteFromComponent) { this.deleteFromComponent = deleteFromComponent; }

    public ObjectId getId() { return id; }

    public void setId(ObjectId id) { this.id = id; }

    public CollectorItem toCollectorItem() {
        CollectorItem item = new CollectorItem();
        item.setCollectorId(collectorId);
        item.setEnabled(true);
        item.getOptions().putAll(options);
        return item;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy