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,
String userKey) |
CheckPoliciesResult |
checkPolicies(String orgToken,
String product,
String productVersion,
Collection<AgentProjectInfo> projectInfos,
String userKey,
String requesterEmail)
|
CheckPolicyComplianceResult |
checkPolicyCompliance(String orgToken,
String product,
String productVersion,
Collection<AgentProjectInfo> projectInfos,
boolean forceCheckAllDependencies) |
CheckPolicyComplianceResult |
checkPolicyCompliance(String orgToken,
String product,
String productVersion,
Collection<AgentProjectInfo> projectInfos,
boolean forceCheckAllDependencies,
String userKey) |
CheckPolicyComplianceResult |
checkPolicyCompliance(String orgToken,
String product,
String productVersion,
Collection<AgentProjectInfo> projectInfos,
boolean forceCheckAllDependencies,
String userKey,
String requesterEmail)
Checks the policies application of the given OSS information.
|
CheckPolicyComplianceResult |
checkPolicyCompliance(String orgToken,
String product,
String productVersion,
Collection<AgentProjectInfo> projectInfos,
boolean forceCheckAllDependencies,
String userKey,
String requesterEmail,
Boolean aggregateModules,
Boolean preserveModuleStructure,
String aggregateProjectName,
String aggregateProjectToken)
Checks the policies application of the given OSS information.
|
CheckPolicyComplianceResult |
checkPolicyCompliance(String orgToken,
String product,
String productVersion,
Collection<AgentProjectInfo> projectInfos,
boolean forceCheckAllDependencies,
String userKey,
String requesterEmail,
String logData)
Checks the policies application of the given OSS information.
|
CheckVulnerabilitiesResult |
checkVulnerabilities(String orgToken,
String product,
String productVersion,
Collection<AgentProjectInfo> projectInfos) |
CheckVulnerabilitiesResult |
checkVulnerabilities(String orgToken,
String product,
String productVersion,
Collection<AgentProjectInfo> projectInfos,
String userKey) |
CheckVulnerabilitiesResult |
checkVulnerabilities(String orgToken,
String product,
String productVersion,
Collection<AgentProjectInfo> projectInfos,
String userKey,
String requesterEmail)
Gets vulnerabilities data for given dependencies.
|
WssServiceClient |
getClient() |
ConfigurationResult |
getConfiguration(String orgToken,
String product,
String productVersion) |
ConfigurationResult |
getConfiguration(String orgToken,
String product,
String productVersion,
String userKey) |
ConfigurationResult |
getConfiguration(String orgToken,
String product,
String productVersion,
String userKey,
String requesterEmail)
Updates the White Source organization account with the given OSS information.
|
GetDependencyDataResult |
getDependencyData(String orgToken,
String product,
String productVersion,
Collection<AgentProjectInfo> projectInfos) |
GetDependencyDataResult |
getDependencyData(String orgToken,
String product,
String productVersion,
Collection<AgentProjectInfo> projectInfos,
String userKey) |
GetDependencyDataResult |
getDependencyData(String orgToken,
String product,
String productVersion,
Collection<AgentProjectInfo> projectInfos,
String userKey,
String requesterEmail)
Gets additional data for given dependencies.
|
RequestFactory |
getRequestFactory() |
UpdateInventoryRequest |
offlineUpdate(String orgToken,
String product,
Boolean removeBeforeAdd,
String productVersion,
Collection<AgentProjectInfo> projectInfos) |
UpdateInventoryRequest |
offlineUpdate(String orgToken,
String product,
Boolean removeBeforeAdd,
String productVersion,
Collection<AgentProjectInfo> projectInfos,
String userKey) |
UpdateInventoryRequest |
offlineUpdate(String orgToken,
String product,
Boolean removeBeforeAdd,
String productVersion,
Collection<AgentProjectInfo> projectInfos,
String userKey,
String requesterEmail,
String scanComment)
Generates a file with json representation of the update request.
|
UpdateInventoryRequest |
offlineUpdate(String orgToken,
String product,
String productVersion,
Collection<AgentProjectInfo> projectInfos) |
UpdateInventoryRequest |
offlineUpdate(String orgToken,
String product,
String productVersion,
Collection<AgentProjectInfo> projectInfos,
String userKey)
Generates a file with json representation of the update request.
|
UpdateInventoryRequest |
offlineUpdate(String orgToken,
String product,
String productVersion,
Collection<AgentProjectInfo> projectInfos,
String userKey,
String scanComment) |
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) |
SummaryScanResult |
summaryScan(String orgToken,
String product,
String productVersion,
Collection<AgentProjectInfo> projectInfos,
String userKey) |
SummaryScanResult |
summaryScan(String orgToken,
String product,
String productVersion,
Collection<AgentProjectInfo> projectInfos,
String userKey,
String requesterEmail)
Updates the White Source organization account with the given OSS information.
|
UpdateInventoryResult |
update(String orgToken,
String product,
String productVersion,
Collection<AgentProjectInfo> projectInfos) |
UpdateInventoryResult |
update(String orgToken,
String product,
String productVersion,
Collection<AgentProjectInfo> projectInfos,
String userKey)
Updates the White Source organization account with the given OSS information.
|
UpdateInventoryResult |
update(String orgToken,
String requesterEmail,
String product,
String productVersion,
Collection<AgentProjectInfo> projectInfos) |
UpdateInventoryResult |
update(String orgToken,
String requesterEmail,
String product,
String productVersion,
Collection<AgentProjectInfo> projectInfos,
String userKey)
Updates the White Source organization account with the given OSS information.
|
UpdateInventoryResult |
update(String orgToken,
String requesterEmail,
String product,
String productVersion,
Collection<AgentProjectInfo> projectInfos,
String userKey,
boolean aggregateModules,
boolean preserveModuleStructure,
String aggregateProjectName,
String aggregateProjectToken)
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) |
UpdateInventoryResult |
update(String orgToken,
String requesterEmail,
UpdateType updateType,
String product,
String productVersion,
Collection<AgentProjectInfo> projectInfos,
String userKey)
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,
String userKey,
String logData)
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,
String userKey,
String logData,
String scanComment)
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, String userKey) 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.userKey - user key uniquely identifying the account at white source.WssServiceException - In case of errors while updating white source.public UpdateInventoryResult update(String orgToken, String product, String productVersion, Collection<AgentProjectInfo> projectInfos) throws WssServiceException
WssServiceExceptionpublic UpdateInventoryResult update(String orgToken, String requesterEmail, String product, String productVersion, Collection<AgentProjectInfo> projectInfos, String userKey) 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.userKey - user key uniquely identifying the account at white source.WssServiceExceptionpublic UpdateInventoryResult update(String orgToken, String requesterEmail, String product, String productVersion, Collection<AgentProjectInfo> projectInfos) throws WssServiceException
WssServiceExceptionpublic UpdateInventoryResult update(String orgToken, String requesterEmail, UpdateType updateType, String product, String productVersion, Collection<AgentProjectInfo> projectInfos, String userKey) 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.userKey - user key uniquely identifying the account at white source.WssServiceExceptionpublic UpdateInventoryResult update(String orgToken, String requesterEmail, UpdateType updateType, String product, String productVersion, Collection<AgentProjectInfo> projectInfos, String userKey, String logData) 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.userKey - user key uniquely identifying the account at white source.logData - list of FSA's log data eventsWssServiceExceptionpublic UpdateInventoryResult update(String orgToken, String requesterEmail, UpdateType updateType, String product, String productVersion, Collection<AgentProjectInfo> projectInfos, String userKey, String logData, String scanComment) 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.userKey - user key uniquely identifying the account at white source.logData - list of FSA's log data eventsscanComment - scan descriptionWssServiceExceptionpublic UpdateInventoryResult update(String orgToken, String requesterEmail, UpdateType updateType, String product, String productVersion, Collection<AgentProjectInfo> projectInfos) throws WssServiceException
WssServiceExceptionpublic UpdateInventoryResult update(String orgToken, String requesterEmail, String product, String productVersion, Collection<AgentProjectInfo> projectInfos, String userKey, boolean aggregateModules, boolean preserveModuleStructure, String aggregateProjectName, String aggregateProjectToken) 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.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.WssServiceExceptionpublic UpdateInventoryRequest offlineUpdate(String orgToken, String product, Boolean removeBeforeAdd, String productVersion, Collection<AgentProjectInfo> projectInfos, String userKey, String requesterEmail, String scanComment)
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.userKey - user key uniquely identifying the account at white source.requesterEmail - Email of the WhiteSource user that requests to update WhiteSource.public UpdateInventoryRequest offlineUpdate(String orgToken, String product, Boolean removeBeforeAdd, String productVersion, Collection<AgentProjectInfo> projectInfos, String userKey)
public UpdateInventoryRequest offlineUpdate(String orgToken, String product, Boolean removeBeforeAdd, String productVersion, Collection<AgentProjectInfo> projectInfos)
public UpdateInventoryRequest offlineUpdate(String orgToken, String product, String productVersion, Collection<AgentProjectInfo> projectInfos, String userKey)
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.userKey - user key uniquely identifying the account at white source.public UpdateInventoryRequest offlineUpdate(String orgToken, String product, String productVersion, Collection<AgentProjectInfo> projectInfos, String userKey, String scanComment)
public UpdateInventoryRequest offlineUpdate(String orgToken, String product, String productVersion, Collection<AgentProjectInfo> projectInfos)
public CheckPoliciesResult checkPolicies(String orgToken, String product, String productVersion, Collection<AgentProjectInfo> projectInfos, String userKey, String requesterEmail) 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.userKey - user key uniquely identifying the account at white source.requesterEmail - Email of the WhiteSource user that requests to update WhiteSource.WssServiceException - In case of errors while checking the policies with white source.public CheckPoliciesResult checkPolicies(String orgToken, String product, String productVersion, Collection<AgentProjectInfo> projectInfos, String userKey) throws WssServiceException
WssServiceExceptionpublic CheckPolicyComplianceResult checkPolicyCompliance(String orgToken, String product, String productVersion, Collection<AgentProjectInfo> projectInfos, boolean forceCheckAllDependencies, String userKey, String requesterEmail) 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.userKey - user key uniquely identifying the account at white source.requesterEmail - Email of the WhiteSource user that requests to update WhiteSource.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, String userKey, String requesterEmail, String logData) 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.userKey - 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 eventsWssServiceException - 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, String userKey) throws WssServiceException
WssServiceExceptionpublic CheckPolicyComplianceResult checkPolicyCompliance(String orgToken, String product, String productVersion, Collection<AgentProjectInfo> projectInfos, boolean forceCheckAllDependencies) throws WssServiceException
WssServiceExceptionpublic CheckPolicyComplianceResult checkPolicyCompliance(String orgToken, String product, String productVersion, Collection<AgentProjectInfo> projectInfos, boolean forceCheckAllDependencies, String userKey, String requesterEmail, Boolean aggregateModules, Boolean preserveModuleStructure, String aggregateProjectName, String aggregateProjectToken) 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.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.WssServiceException - In case of errors while checking the policies with white source.public GetDependencyDataResult getDependencyData(String orgToken, String product, String productVersion, Collection<AgentProjectInfo> projectInfos, String userKey, String requesterEmail) 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.userKey - user key uniquely identifying the account at white source.requesterEmail - Email of the WhiteSource user that requests to update WhiteSource.WssServiceException - In case of errors while getting additional dependency data with white source.public GetDependencyDataResult getDependencyData(String orgToken, String product, String productVersion, Collection<AgentProjectInfo> projectInfos, String userKey) throws WssServiceException
WssServiceExceptionpublic GetDependencyDataResult getDependencyData(String orgToken, String product, String productVersion, Collection<AgentProjectInfo> projectInfos) throws WssServiceException
WssServiceExceptionpublic SummaryScanResult summaryScan(String orgToken, String product, String productVersion, Collection<AgentProjectInfo> projectInfos, String userKey, String requesterEmail) 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.userKey - user key uniquely identifying the account at white source.requesterEmail - Email of the WhiteSource user that requests to update WhiteSource.WssServiceExceptionpublic SummaryScanResult summaryScan(String orgToken, String product, String productVersion, Collection<AgentProjectInfo> projectInfos, String userKey) throws WssServiceException
WssServiceExceptionpublic SummaryScanResult summaryScan(String orgToken, String product, String productVersion, Collection<AgentProjectInfo> projectInfos) throws WssServiceException
WssServiceExceptionpublic CheckVulnerabilitiesResult checkVulnerabilities(String orgToken, String product, String productVersion, Collection<AgentProjectInfo> projectInfos, String userKey, String requesterEmail) 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.userKey - user key uniquely identifying the account at white source.requesterEmail - Email of the WhiteSource user that requests to update WhiteSource.WssServiceExceptionpublic CheckVulnerabilitiesResult checkVulnerabilities(String orgToken, String product, String productVersion, Collection<AgentProjectInfo> projectInfos, String userKey) throws WssServiceException
WssServiceExceptionpublic CheckVulnerabilitiesResult checkVulnerabilities(String orgToken, String product, String productVersion, Collection<AgentProjectInfo> projectInfos) throws WssServiceException
WssServiceExceptionpublic ConfigurationResult getConfiguration(String orgToken, String product, String productVersion, String userKey, String requesterEmail) throws WssServiceException
orgToken - Organization token uniquely identifying the account at white source.product - The product name or token to update.productVersion - The product version.userKey - user key uniquely identifying the account at white source.requesterEmail - Email of the WhiteSource user that requests to update WhiteSource.WssServiceExceptionpublic ConfigurationResult getConfiguration(String orgToken, String product, String productVersion, String userKey) throws WssServiceException
WssServiceExceptionpublic ConfigurationResult getConfiguration(String orgToken, String product, String productVersion) throws WssServiceException
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.