Uses of Class
com.lpvs.entity.LPVSQueue
Package
Description
This package contains services responsible for various business logic and functionality
within the LPVS application.
Provides services related to scanning operations.
The package contains service related to the Scanoss scanner integration.
This package contains utility classes used across the LPVS (License Plate Verification Service) application.
-
Uses of LPVSQueue in com.lpvs.service
Modifier and TypeMethodDescriptionLPVSGitHubService.getInternalQueueByPullRequest
(String pullRequest) Retrieves the LPVSQueue configuration for a given GitHub pull request URL.LPVSQueueService.getLatestScan
(List<LPVSQueue> webhookConfigList) Gets the LPVSQueue element with the latest scan date.LPVSQueueService.getQueueFirstElement()
Gets the first element from the LPVSQueue.Modifier and TypeMethodDescriptionvoid
Adds the LPVSQueue element to the end of the queue.void
Adds the LPVSQueue element to the front of the queue.void
LPVSGitHubService.commentResults
(LPVSQueue webhookConfig, List<LPVSFile> scanResults, List<LPVSLicenseService.Conflict<String, String>> conflicts, LPVSPullRequest lpvsPullRequest) Comments on the pull request with the scan results and detected issues.void
Deletes the LPVSQueue element from the repository and the queue.LPVSLicenseService.findConflicts
(LPVSQueue webhookConfig, List<LPVSFile> scanResults) Finds license conflicts based on the provided scan results and repository information.LPVSGitHubService.getPullRequestFiles
(LPVSQueue webhookConfig) Retrieves the file differences for a given pull request from GitHub.LPVSGitHubService.getRepositoryLicense
(LPVSQueue webhookConfig) Retrieves the license of the GitHub repository associated with the pull request.void
LPVSQueueService.processWebHook
(LPVSQueue webhookConfig) Asynchronously processes the LPVSQueue element, handling GitHub webhook events.void
LPVSGitHubService.setErrorCheck
(LPVSQueue webhookConfig) Sets the commit status to error for the specified pull request.void
LPVSGitHubService.setPendingCheck
(LPVSQueue webhookConfig) Sets the commit status to pending for the specified pull request.Modifier and TypeMethodDescriptionLPVSQueueService.getLatestScan
(List<LPVSQueue> webhookConfigList) Gets the LPVSQueue element with the latest scan date. -
Uses of LPVSQueue in com.lpvs.service.scan
Modifier and TypeMethodDescriptionLPVSScanService.checkLicenses
(LPVSQueue webhookConfig) Checks licenses for files using the provided webhook configuration.Runs a license scan based on the selected scanner type.void
Runs a scan on the specified path using the provided webhook configuration. -
Uses of LPVSQueue in com.lpvs.service.scan.scanner
Modifier and TypeMethodDescriptionLPVSScanossDetectService.checkLicenses
(LPVSQueue webhookConfig) Checks the licenses detected by Scanoss and returns a list of LPVSFile entities.void
Initiates the Scanoss scan for the specified LPVSQueue and file path. -
Uses of LPVSQueue in com.lpvs.util
Modifier and TypeMethodDescriptionstatic LPVSQueue
LPVSPayloadUtil.getGitHubWebhookConfig
(String payload) Parses the GitHub webhook payload and extracts relevant information to create an LPVSQueue object.static LPVSQueue
LPVSPayloadUtil.getGitHubWebhookConfig
(org.kohsuke.github.GHRepository repo, org.kohsuke.github.GHPullRequest pR) Retrieves an LPVSQueue configuration based on the GitHub repository and pull request.Modifier and TypeMethodDescriptionstatic String
LPVSCommentUtil.buildHTMLComment
(LPVSQueue webhookConfig, List<LPVSFile> scanResults, List<LPVSLicenseService.Conflict<String, String>> conflicts) Generates a formatted string for an HTML report with scan results.static String
LPVSFileUtil.getLocalDirectoryPath
(LPVSQueue webhookConfig) Retrieves the local directory path based on the provided webhook configuration.static String
LPVSCommentUtil.getMatchedLinesAsLink
(LPVSQueue webhookConfig, LPVSFile file, LPVSVcs vcs) Generates a formatted string containing links to matched lines in a file.static String
LPVSFileUtil.getPathByPullRequest
(LPVSQueue webhookConfig) Retrieves the local directory path for a given LPVSQueue configuration.static String
LPVSPayloadUtil.getPullRequestId
(LPVSQueue webhookConfig) Retrieves the pull request ID from the pull request URL in the LPVSQueue object.static String
LPVSPayloadUtil.getRepositoryName
(LPVSQueue webhookConfig) Retrieves the repository name from the repository URL in the LPVSQueue object.static String
LPVSPayloadUtil.getRepositoryOrganization
(LPVSQueue webhookConfig) Retrieves the organization name from the repository URL in the LPVSQueue object.static String
LPVSPayloadUtil.getRepositoryUrl
(LPVSQueue webhookConfig) Retrieves the repository URL from the LPVSQueue object.static String
LPVSFileUtil.getScanResultsDirectoryPath
(LPVSQueue webhookConfig) Retrieves the directory path for storing scan results based on the provided webhook configuration.static String
LPVSFileUtil.getScanResultsJsonFilePath
(LPVSQueue webhookConfig) Retrieves the file path for storing scan results in JSON format based on the provided webhook configuration.static String
LPVSCommentUtil.reportCommentBuilder
(LPVSQueue webhookConfig, List<LPVSFile> scanResults, List<LPVSLicenseService.Conflict<String, String>> conflicts) Generates a formatted string for an LPVS GitHub comment.static String
LPVSFileUtil.saveGithubDiffs
(Iterable<org.kohsuke.github.GHPullRequestFileDetail> files, LPVSQueue webhookConfig) Saves the GitHub pull request file details, including the file patches, to a local directory.