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

org.whitesource.agent.api.dispatch.CheckVulnerabilitiesRequest Maven / Gradle / Ivy

There is a newer version: 18.4.1
Show newest version
package org.whitesource.agent.api.dispatch;


import org.whitesource.agent.api.model.AgentProjectInfo;

import java.util.Collection;

/**
 * @author ruslan.gogerman
 * @since 2.5.5
 */
public class CheckVulnerabilitiesRequest extends BaseRequest {

    /* --- Static Members --- */

    private static final long serialVersionUID = -945532206429866395L;

    /* --- Constructors --- */

    /**
     * Default constructor
     */
    public CheckVulnerabilitiesRequest() {
        super(RequestType.CHECK_VULNERABILITIES);
    }

    /**
     * Constructor
     *
     * @param projects Open Source usage statement to check vulnerabilities.
     */
    public CheckVulnerabilitiesRequest(Collection projects) {
        this();
        this.projects = projects;
    }

    /**
     * Constructor
     *
     * @param orgToken WhiteSource organization token.
     * @param projects Open Source usage statement to check vulnerabilities.
     */
    public CheckVulnerabilitiesRequest(String orgToken, Collection projects) {
        this();
        this.orgToken = orgToken;
        this.projects = projects;
    }

    /**
     * Constructor
     *
     * @param orgToken       WhiteSource organization token.
     * @param product        The product name or token to update.
     * @param productVersion The product version.
     * @param projects       Open Source usage statement to check vulnerabilities.
     */
    public CheckVulnerabilitiesRequest(String orgToken, String product, String productVersion, Collection projects) {
        this(orgToken, projects);
        this.product = product;
        this.productVersion = productVersion;

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy