public class WhitesourceService extends Object
| Constructor and Description |
|---|
WhitesourceService() |
WhitesourceService(String agent,
String agentVersion,
String pluginVersion) |
WhitesourceService(String agent,
String agentVersion,
String serviceUrl,
boolean setProxy) |
WhitesourceService(String agent,
String agentVersion,
String serviceUrl,
boolean setProxy,
int connectionTimeoutMinutes) |
WhitesourceService(String agent,
String agentVersion,
String pluginVersion,
String serviceUrl) |
WhitesourceService(String agent,
String agentVersion,
String pluginVersion,
String serviceUrl,
boolean setProxy) |
WhitesourceService(String agent,
String agentVersion,
String pluginVersion,
String serviceUrl,
boolean setProxy,
int connectionTimeoutMinutes) |
WhitesourceService(String agent,
String agentVersion,
String pluginVersion,
String serviceUrl,
boolean setProxy,
int connectionTimeoutMinutes,
boolean ignoreCertificateCheck) |
| Modifier and Type | Method and Description |
|---|---|
CheckPoliciesResult |
checkPolicies(String orgToken,
String product,
String productVersion,
Collection<AgentProjectInfo> projectInfos)
Deprecated.
|
CheckPolicyComplianceResult |
checkPolicyCompliance(String orgToken,
String product,
String productVersion,
Collection<AgentProjectInfo> projectInfos,
boolean forceCheckAllDependencies)
Checks the policies application of the given OSS information.
|
CheckVulnerabilitiesResult |
checkVulnerabilities(String orgToken,
String product,
String productVersion,
Collection<AgentProjectInfo> projectInfos)
Gets vulnerabilities data for given dependencies.
|
WssServiceClient |
getClient() |
GetDependencyDataResult |
getDependencyData(String orgToken,
String product,
String productVersion,
Collection<AgentProjectInfo> projectInfos)
Gets additional data for given dependencies.
|
RequestFactory |
getRequestFactory() |
UpdateInventoryRequest |
offlineUpdate(String orgToken,
String product,
Boolean removeBeforeAdd,
String productVersion,
Collection<AgentProjectInfo> projectInfos)
Generates a file with json representation of the update request.
|
UpdateInventoryRequest |
offlineUpdate(String orgToken,
String product,
String productVersion,
Collection<AgentProjectInfo> projectInfos)
Generates a file with json representation of the update request.
|
void |
setClient(WssServiceClient client) |
void |
setRequestFactory(RequestFactory requestFactory) |
void |
shutdown()
The method close the underlying client to the White Source service.
|
SummaryScanResult |
summaryScan(String orgToken,
String product,
String productVersion,
Collection<AgentProjectInfo> projectInfos)
Updates the White Source organization account with the given OSS information.
|
UpdateInventoryResult |
update(String orgToken,
String product,
String productVersion,
Collection<AgentProjectInfo> projectInfos)
Updates the White Source organization account with the given OSS information.
|
UpdateInventoryResult |
update(String orgToken,
String requesterEmail,
String product,
String productVersion,
Collection<AgentProjectInfo> projectInfos)
Updates the White Source organization account with the given OSS information.
|
UpdateInventoryResult |
update(String orgToken,
String requesterEmail,
UpdateType updateType,
String product,
String productVersion,
Collection<AgentProjectInfo> projectInfos)
Updates the White Source organization account with the given OSS information.
|
public WhitesourceService()
public WhitesourceService(String agent, String agentVersion, String pluginVersion)
public WhitesourceService(String agent, String agentVersion, String pluginVersion, String serviceUrl)
public WhitesourceService(String agent, String agentVersion, String pluginVersion, String serviceUrl, boolean setProxy)
public WhitesourceService(String agent, String agentVersion, String pluginVersion, String serviceUrl, boolean setProxy, int connectionTimeoutMinutes)
public WhitesourceService(String agent, String agentVersion, String pluginVersion, String serviceUrl, boolean setProxy, int connectionTimeoutMinutes, boolean ignoreCertificateCheck)
public WhitesourceService(String agent, String agentVersion, String serviceUrl, boolean setProxy)
public UpdateInventoryResult update(String orgToken, String product, String productVersion, Collection<AgentProjectInfo> projectInfos) throws WssServiceException
orgToken - Organization token uniquely identifying the account at white source.product - The product name or token to update.productVersion - The product version.projectInfos - OSS usage information to send to white source.WssServiceException - In case of errors while updating white source.public UpdateInventoryResult update(String orgToken, String requesterEmail, String product, String productVersion, Collection<AgentProjectInfo> projectInfos) throws WssServiceException
orgToken - Organization token uniquely identifying the account at white source.requesterEmail - Email of the WhiteSource user that requests to update WhiteSource.product - The product name or token to update.productVersion - The product version.projectInfos - OSS usage information to send to white source.WssServiceExceptionpublic UpdateInventoryResult update(String orgToken, String requesterEmail, UpdateType updateType, String product, String productVersion, Collection<AgentProjectInfo> projectInfos) throws WssServiceException
orgToken - Organization token uniquely identifying the account at white source.requesterEmail - Email of the WhiteSource user that requests to update WhiteSource.updateType - Request UpdateTypeproduct - The product name or token to update.productVersion - The product version.projectInfos - OSS usage information to send to white source.WssServiceExceptionpublic UpdateInventoryRequest offlineUpdate(String orgToken, String product, Boolean removeBeforeAdd, String productVersion, Collection<AgentProjectInfo> projectInfos)
orgToken - Organization token uniquely identifying the account at white source.product - The product name or token to update.removeBeforeAdd - Should remove before addproductVersion - The product version.projectInfos - OSS usage information to send to white source.public UpdateInventoryRequest offlineUpdate(String orgToken, String product, String productVersion, Collection<AgentProjectInfo> projectInfos)
orgToken - Organization token uniquely identifying the account at white source.product - The product name or token to update.productVersion - The product version.projectInfos - OSS usage information to send to white source.public CheckPoliciesResult checkPolicies(String orgToken, String product, String productVersion, Collection<AgentProjectInfo> projectInfos) throws WssServiceException
checkPolicyCompliance(String, String, String, Collection, boolean).orgToken - Organization token uniquely identifying the account at white source.product - The product name or token to update.productVersion - The product version.projectInfos - OSS usage information to send to white source.WssServiceException - In case of errors while checking the policies with white source.public CheckPolicyComplianceResult checkPolicyCompliance(String orgToken, String product, String productVersion, Collection<AgentProjectInfo> projectInfos, boolean forceCheckAllDependencies) throws WssServiceException
orgToken - Organization token uniquely identifying the account at white source.product - The product name or token to update.productVersion - The product version.projectInfos - OSS usage information to send to white source.forceCheckAllDependencies - Boolean to check new data only or not.WssServiceException - In case of errors while checking the policies with white source.public GetDependencyDataResult getDependencyData(String orgToken, String product, String productVersion, Collection<AgentProjectInfo> projectInfos) throws WssServiceException
orgToken - Organization token uniquely identifying the account at white source.product - The product name or token to update.productVersion - The product version.projectInfos - OSS usage information to send to white source.WssServiceException - In case of errors while getting additional dependency data with white source.public SummaryScanResult summaryScan(String orgToken, String product, String productVersion, Collection<AgentProjectInfo> projectInfos) throws WssServiceException
orgToken - Organization token uniquely identifying the account at white source.product - The product name or token to update.productVersion - The product version.projectInfos - OSS usage information to send to white source.WssServiceExceptionpublic CheckVulnerabilitiesResult checkVulnerabilities(String orgToken, String product, String productVersion, Collection<AgentProjectInfo> projectInfos) throws WssServiceException
orgToken - Organization token uniquely identifying the account at white source.product - The product name or token to update.productVersion - The product version.projectInfos - OSS usage information to send to white source.WssServiceExceptionpublic void shutdown()
WssServiceClient.shutdown()public WssServiceClient getClient()
public void setClient(WssServiceClient client)
public RequestFactory getRequestFactory()
public void setRequestFactory(RequestFactory requestFactory)
Copyright © 2011-2018 White Source. All Rights Reserved.