# hub-sdk-samples **Repository Path**: mirrors_blackducksoftware/hub-sdk-samples ## Basic Information - **Project Name**: hub-sdk-samples - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-10-29 - **Last Updated**: 2026-04-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # hub-sdk-samples ## Overview Collection of classes that demonstrate how to execute certain Hub API processes In Java using the hub-common library. These processes include: * Adding a user with a role * Delete all unmapped code locations * Get a component's matched files * Get policy status for a component on the BOM * Get vulnerability info for a component * Get risk profile for an application/version ## Structure of samples All samples are based off of `AbstractSample.java` , which contains two abstract methods and a `connect()` method which simply connects to a Hub Server and initializes a `HubServicesFactory` object using that connection. ```java public abstract void parseCommandLineArguments(String args[]); ``` * Simply parses the command line and does a basic validation of the parsed arguments ```java public abstract void execute() throws MalformedURLException, IntegrationException; ``` * Where the code that demonstrates how to perform a certain function resides. This is consistent across all samples