org.whitesource.agent.api.dispatch.CheckPolicyComplianceRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wss-agent-api Show documentation
Show all versions of wss-agent-api Show documentation
Java bindings for White Source API
package org.whitesource.agent.api.dispatch;
import org.whitesource.agent.api.model.AgentProjectInfo;
import java.util.Collection;
/**
* Request to check policies application results before actual inventory update inventory.
* The decision if check the policies for all the inventory or just the new data is made by the user.
*
* Created by anna.rozin
*/
public class CheckPolicyComplianceRequest extends BaseRequest {
/* --- Static members --- */
private static final long serialVersionUID = -8257797945728036283L;
/* --- Members --- */
/**
* When set to true, check that all dependencies sent to WhiteSource comply with organization policies.
* When set to false, check that the added dependencies sent to WhiteSource comply with organization policies.
*/
protected boolean forceCheckAllDependencies;
/* --- Constructors --- */
/**
* Default constructor
*/
public CheckPolicyComplianceRequest() {
super(RequestType.CHECK_POLICY_COMPLIANCE);
forceCheckAllDependencies = false;
}
/**
* Constructor
*
* @param projects Open Source usage statement to check against policies.
* @param forceCheckAllDependencies Check policies for the all the Inventory or just for the new one.
*/
public CheckPolicyComplianceRequest(Collection projects, boolean forceCheckAllDependencies) {
this();
this.projects = projects;
this.forceCheckAllDependencies = forceCheckAllDependencies;
}
/**
* Constructor
*
* @param orgToken WhiteSource organization token.
* @param projects Open Source usage statement to check against policies.
* @param forceCheckAllDependencies Check policies for the all the Inventory or just for the new one.
*/
public CheckPolicyComplianceRequest(String orgToken, Collection projects, boolean forceCheckAllDependencies) {
this(projects, forceCheckAllDependencies);
this.orgToken = orgToken;
}
/* --- Getters / Setters --- */
public boolean isForceCheckAllDependencies() {
return forceCheckAllDependencies;
}
public void setForceCheckAllDependencies(boolean forceCheckAllDependencies) {
this.forceCheckAllDependencies = forceCheckAllDependencies;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy