public class RequestFactory extends Object
ServiceRequest.| Constructor and Description |
|---|
RequestFactory(String agent,
String agentVersion,
String pluginVersion)
Constructor
|
@Deprecated public UpdateInventoryRequest newUpdateInventoryRequest(String orgToken, Collection<AgentProjectInfo> projects, String userKey)
orgToken - WhiteSource organization token.projects - Projects status statement to update.userKey - user key uniquely identifying the account at white source.@Deprecated public UpdateInventoryRequest newUpdateInventoryRequest(String orgToken, String product, String productVersion, Collection<AgentProjectInfo> projects, String userKey)
orgToken - WhiteSource organization token.projects - Projects status statement to update.product - Name or WhiteSource service token of the product to update.productVersion - Version of the product to update.userKey - user key uniquely identifying the account at white source.@Deprecated public UpdateInventoryRequest newUpdateInventoryRequest(String orgToken, UpdateType updateType, String requesterEmail, String product, String productVersion, Collection<AgentProjectInfo> projects, String userKey, String logData)
orgToken - WhiteSource organization token.updateType - Request UpdateTyperequesterEmail - Email of the WhiteSource user that requests to update WhiteSource.product - Name or WhiteSource service token of the product to update.productVersion - Version of the product to update.projects - Projects status statement to update.userKey - user key uniquely identifying the account at white source.logData - scan log data@Deprecated public UpdateInventoryRequest newUpdateInventoryRequest(String orgToken, UpdateType updateType, String requesterEmail, String product, String productVersion, Collection<AgentProjectInfo> projects, String userKey, String logData, String scanComment)
orgToken - WhiteSource organization token.updateType - Request UpdateTyperequesterEmail - Email of the WhiteSource user that requests to update WhiteSource.product - Name or WhiteSource service token of the product to update.productVersion - Version of the product to update.projects - Projects status statement to update.userKey - user key uniquely identifying the account at white source.logData - scan log datascanComment - scan description@Deprecated public UpdateInventoryRequest newUpdateInventoryRequest(String orgToken, UpdateType updateType, String requesterEmail, String product, String productVersion, Collection<AgentProjectInfo> projects, String userKey, String logData, String scanComment, String productToken, Map<String,String> extraProperties)
orgToken - WhiteSource organization token.updateType - Request UpdateTyperequesterEmail - Email of the WhiteSource user that requests to update WhiteSource.product - Name or WhiteSource service token of the product to update.productVersion - Version of the product to update.projects - Projects status statement to update.userKey - User key uniquely identifying the account at white source.logData - Scan log datascanComment - Scan descriptionproductToken - Product tokenextraProperties - Additional relevant request params@Deprecated public UpdateInventoryRequest newUpdateInventoryRequest(String orgToken, UpdateType updateType, String requesterEmail, String product, String productVersion, Collection<AgentProjectInfo> projects, String userKey, String logData, String scanComment, String productToken)
@Deprecated public UpdateInventoryRequest newUpdateInventoryRequest(String orgToken, String requesterEmail, String product, String productVersion, Collection<AgentProjectInfo> projects, String userKey, String scanComment, String productToken)
@Deprecated public UpdateInventoryRequest newUpdateInventoryRequest(String orgToken, String requesterEmail, String product, String productVersion, Collection<AgentProjectInfo> projects, String userKey, String scanComment)
@Deprecated public UpdateInventoryRequest newUpdateInventoryRequest(String orgToken, String requesterEmail, String product, String productVersion, Collection<AgentProjectInfo> projects, String userKey)
orgToken - WhiteSource organization token.requesterEmail - Email of the WhiteSource user that requests to update WhiteSource.projects - Projects status statement to update.product - Name or WhiteSource service token of the product to update.productVersion - Version of the product to update.userKey - user key uniquely identifying the account at white source.@Deprecated public UpdateInventoryRequest newUpdateInventoryRequest(String orgToken, String requesterEmail, String product, String productVersion, Collection<AgentProjectInfo> projects, String userKey, Map<String,String> extraProperties)
orgToken - WhiteSource organization token.requesterEmail - Email of the WhiteSource user that requests to update WhiteSource.projects - Projects status statement to update.product - Name or WhiteSource service token of the product to update.productVersion - Version of the product to update.userKey - user key uniquely identifying the account at white source.@Deprecated public UpdateInventoryRequest newUpdateInventoryRequest(String orgToken, String requesterEmail, String product, String productVersion, Collection<AgentProjectInfo> projects, String userKey, Boolean aggregateModules, Boolean preserveModuleStructure, String aggregateProjectName, String aggregateProjectToken)
orgToken - WhiteSource organization token.requesterEmail - Email of the WhiteSource user that requests to update WhiteSource.product - Name or WhiteSource service token of the product to update.productVersion - Version of the product to update.projects - Projects status statement to update.userKey - user key uniquely identifying the account at white source.aggregateModules - to combine all pom modules into a single WhiteSource project with an aggregated dependency flat list (no hierarchy).preserveModuleStructure - combine all pom modules to be dependencies of single project, each module will be represented as a parent of its dependencies.aggregateProjectName - aggregate project name identifier.aggregateProjectToken - aggregate project token identifier.public UpdateInventoryRequest newUpdateInventoryRequest(UpdateInventoryRequest request)
@Deprecated public CheckPoliciesRequest newCheckPoliciesRequest(String orgToken, Collection<AgentProjectInfo> projects, String userKey)
orgToken - WhiteSource organization token.projects - Projects status statement to check.userKey - user key uniquely identifying the account at white source.@Deprecated public CheckPoliciesRequest newCheckPoliciesRequest(String orgToken, String product, String productVersion, Collection<AgentProjectInfo> projects, String userKey, String requesterEmail)
newCheckPolicyComplianceRequest(String, String, String, Collection, boolean, String)orgToken - WhiteSource organization token.userKey - user key uniquely identifying the account at white source.projects - Projects status statement to check.product - Name or WhiteSource service token of the product whose policies to check.productVersion - Version of the product whose policies to check.requesterEmail - Email of the WhiteSource user that requests to update WhiteSource.@Deprecated public CheckPoliciesRequest newCheckPoliciesRequest(String orgToken, String product, String productVersion, Collection<AgentProjectInfo> projects, String userKey)
@Deprecated public CheckPolicyComplianceRequest newCheckPolicyComplianceRequest(String orgToken, Collection<AgentProjectInfo> projects, boolean forceCheckAllDependencies, String userKey)
orgToken - WhiteSource organization token.projects - Projects status statement to check.forceCheckAllDependencies - boolean check that all/added dependencies sent to WhiteSourceuserKey - user key uniquely identifying the account at white source.@Deprecated public CheckPolicyComplianceRequest newCheckPolicyComplianceRequest(String orgToken, String product, String productVersion, Collection<AgentProjectInfo> projects, boolean forceCheckAllDependencies, String userKey, String requesterEmail)
orgToken - WhiteSource organization token.projects - Projects status statement to check.product - Name or WhiteSource service token of the product whose policies to check.productVersion - Version of the product whose policies to check.forceCheckAllDependencies - boolean check that all/added dependencies sent to WhiteSourceuserKey - user key uniquely identifying the account at white source.requesterEmail - Email of the WhiteSource user that requests to update WhiteSource.@Deprecated public CheckPolicyComplianceRequest newCheckPolicyComplianceRequest(String orgToken, String product, String productVersion, Collection<AgentProjectInfo> projects, boolean forceCheckAllDependencies, String userKey, String requesterEmail, String logData, String productToken)
orgToken - WhiteSource organization token.projects - Projects status statement to check.product - Name or WhiteSource service token of the product whose policies to check.productVersion - Version of the product whose policies to check.forceCheckAllDependencies - boolean check that all/added dependencies sent to WhiteSourceuserKey - user key uniquely identifying the account at white source.requesterEmail - Email of the WhiteSource user that requests to update WhiteSource.logData - list of FSA's log data eventsproductToken - Token of the product whose policies to check.@Deprecated public CheckPolicyComplianceRequest newCheckPolicyComplianceRequest(String orgToken, String product, String productVersion, Collection<AgentProjectInfo> projects, boolean forceCheckAllDependencies, String userKey, String requesterEmail, String logData)
@Deprecated public CheckPolicyComplianceRequest newCheckPolicyComplianceRequest(String orgToken, String product, String productVersion, Collection<AgentProjectInfo> projects, boolean forceCheckAllDependencies, String userKey)
@Deprecated public CheckPolicyComplianceRequest newCheckPolicyComplianceRequest(String orgToken, String product, String productVersion, Collection<AgentProjectInfo> projects, boolean forceCheckAllDependencies, String userKey, String requesterEmail, boolean aggregateModules, boolean preserveModuleStructure, String aggregateProjectName, String aggregateProjectToken)
orgToken - WhiteSource organization token.projects - Projects status statement to check.product - Name or WhiteSource service token of the product whose policies to check.productVersion - Version of the product whose policies to check.forceCheckAllDependencies - boolean check that all/added dependencies sent to WhiteSourceuserKey - user key uniquely identifying the account at white source.requesterEmail - Email of the WhiteSource user that requests to update WhiteSource.aggregateModules - to combine all pom modules into a single WhiteSource project with an aggregated dependency flat list (no hierarchy).preserveModuleStructure - combine all pom modules to be dependencies of single project, each module will be represented as a parent of its dependencies.aggregateProjectName - aggregate project name identifier.aggregateProjectToken - aggregate project token identifier.public CheckPolicyComplianceRequest newCheckPolicyComplianceRequest(CheckPolicyComplianceRequest request)
public AsyncCheckPolicyComplianceRequest newAsyncCheckPolicyComplianceRequest(AsyncCheckPolicyComplianceRequest request)
public AsyncCheckPolicyComplianceStatusRequest newAsyncCheckPolicyComplianceStatusRequest(AsyncCheckPolicyComplianceStatusRequest request)
public AsyncCheckPolicyComplianceResponseRequest newAsyncCheckPolicyComplianceResponseRequest(AsyncCheckPolicyComplianceResponseRequest request)
@Deprecated public GetDependencyDataRequest newDependencyDataRequest(String orgToken, Collection<AgentProjectInfo> projects, String userKey)
orgToken - WhiteSource organization token.projects - Projects status statement to check.userKey - user key uniquely identifying the account at white source.@Deprecated public GetDependencyDataRequest newDependencyDataRequest(String orgToken, String product, String productVersion, Collection<AgentProjectInfo> projects, String userKey, String requesterEmail, String productToken)
orgToken - WhiteSource organization token.projects - Projects status statement to check.product - Name or WhiteSource service token of the product whose policies to check.productVersion - Version of the product whose policies to check.userKey - user key uniquely identifying the account at white source.requesterEmail - Email of the WhiteSource user that requests to update WhiteSource.@Deprecated public GetDependencyDataRequest newDependencyDataRequest(String orgToken, String product, String productVersion, Collection<AgentProjectInfo> projects, String userKey, String requesterEmail)
@Deprecated public GetDependencyDataRequest newDependencyDataRequest(String orgToken, String product, String productVersion, Collection<AgentProjectInfo> projects, String userKey)
public GetDependencyDataRequest newDependencyDataRequest(GetDependencyDataRequest request)
@Deprecated public SummaryScanRequest newSummaryScanRequest(String orgToken, String product, String productVersion, Collection<AgentProjectInfo> projects, String userKey, String requesterEmail, String productToken)
orgToken - WhiteSource organization token.projects - Projects status statement to update.product - Name or WhiteSource service token of the product to update.productVersion - Version of the product to update.userKey - user key uniquely identifying the account at white source.requesterEmail - Email of the WhiteSource user that requests to update WhiteSource.@Deprecated public SummaryScanRequest newSummaryScanRequest(String orgToken, String product, String productVersion, Collection<AgentProjectInfo> projects, String userKey, String requesterEmail)
@Deprecated public SummaryScanRequest newSummaryScanRequest(String orgToken, String product, String productVersion, Collection<AgentProjectInfo> projects, String userKey)
public SummaryScanRequest newSummaryScanRequest(SummaryScanRequest request)
@Deprecated public CheckVulnerabilitiesRequest newCheckVulnerabilitiesRequest(String orgToken, String product, String productVersion, Collection<AgentProjectInfo> projects, String userKey, String requesterEmail, String productToken)
orgToken - WhiteSource organization token.projects - Projects status statement to update.product - Name or WhiteSource service token of the product to update.productVersion - Version of the product to update.userKey - user key uniquely identifying the account at white source.requesterEmail - Email of the WhiteSource user that requests to update WhiteSource.@Deprecated public CheckVulnerabilitiesRequest newCheckVulnerabilitiesRequest(String orgToken, String product, String productVersion, Collection<AgentProjectInfo> projects, String userKey, String requesterEmail)
@Deprecated public CheckVulnerabilitiesRequest newCheckVulnerabilitiesRequest(String orgToken, String product, String productVersion, Collection<AgentProjectInfo> projects, String userKey)
public CheckVulnerabilitiesRequest newCheckVulnerabilitiesRequest(CheckVulnerabilitiesRequest request)
@Deprecated public ConfigurationRequest newConfigurationRequest(String orgToken, String product, String productVersion, String userKey, String requesterEmail, String productToken)
orgToken - WhiteSource organization token.product - Name or WhiteSource service token of the product to update.productVersion - Version of the product to update.userKey - user key uniquely identifying the account at white source.requesterEmail - Email of the WhiteSource user that requests to update WhiteSource.@Deprecated public ConfigurationRequest newConfigurationRequest(String orgToken, String product, String productVersion, String userKey, String requesterEmail)
@Deprecated public ConfigurationRequest newConfigurationRequest(String orgToken, String product, String productVersion, String userKey)
public ConfigurationRequest newConfigurationRequest(ConfigurationRequest request)
@Deprecated protected <R> BaseRequest<R> prepareRequest(BaseRequest<R> request, String orgToken, String requesterEmail, String product, String productVersion, String userKey, boolean aggregateModules, boolean preserveModuleStructure, String aggregateProjectName, String aggregateProjectToken, String logData, String scanComment, String productToken, Map<String,String> extraProperties)
protected <R> BaseRequest<R> prepareRequest(BaseRequest<R> request)
public String getAgent()
public String getAgentVersion()
public String getPluginVersion()
Copyright © 2011-2024 White Source. All Rights Reserved.