Class OrtResultExtensionsKt
-
- All Implemented Interfaces:
public final class OrtResultExtensionsKt
-
-
Method Summary
Modifier and Type Method Description final static OrtResultaddPackageConfigurations(OrtResult $self, PackageConfigurationProvider packageConfigurationProvider)Add all package configurations from packageConfigurationProvider that match any scan result in this OrtResult to OrtResult.resolvedConfiguration, overwriting any previously contained package configurations. final static OrtResultaddPackageCurations(OrtResult $self, List<Pair<String, PackageCurationProvider>> packageCurationProviders)Add all package curations from packageCurationProviders that match any packages in this OrtResult to OrtResult.resolvedConfiguration, overwriting any previously contained package curations. final static OrtResultaddResolutions(OrtResult $self, ResolutionProvider resolutionProvider)Add all resolutions from resolutionProvider that match the content of this OrtResult to OrtResult.resolvedConfiguration, overwriting any previously contained resolutions. final static LicenseInfoResolvercreateLicenseInfoResolver(OrtResult $self, PackageConfigurationProvider packageConfigurationProvider, CopyrightGarbage copyrightGarbage, Boolean addAuthorsToCopyrights, FileArchiver archiver)Create a LicenseInfoResolver for this. final static StringgetRepositoryPath(OrtResult $self, RepositoryProvenance provenance)Return the path where the repository given by provenance is linked into the source tree. final static OrtResultmergeLabels(OrtResult $self, Map<String, String> labels)Copy this OrtResult and add all labels to the existing labels, overwriting existing labels on conflict. -
-
Method Detail
-
addPackageConfigurations
final static OrtResult addPackageConfigurations(OrtResult $self, PackageConfigurationProvider packageConfigurationProvider)
Add all package configurations from packageConfigurationProvider that match any scan result in this OrtResult to OrtResult.resolvedConfiguration, overwriting any previously contained package configurations.
-
addPackageCurations
final static OrtResult addPackageCurations(OrtResult $self, List<Pair<String, PackageCurationProvider>> packageCurationProviders)
Add all package curations from packageCurationProviders that match any packages in this OrtResult to OrtResult.resolvedConfiguration, overwriting any previously contained package curations. The packageCurationProviders must be ordered highest-priority-first.
-
addResolutions
final static OrtResult addResolutions(OrtResult $self, ResolutionProvider resolutionProvider)
Add all resolutions from resolutionProvider that match the content of this OrtResult to OrtResult.resolvedConfiguration, overwriting any previously contained resolutions.
-
createLicenseInfoResolver
final static LicenseInfoResolver createLicenseInfoResolver(OrtResult $self, PackageConfigurationProvider packageConfigurationProvider, CopyrightGarbage copyrightGarbage, Boolean addAuthorsToCopyrights, FileArchiver archiver)
Create a LicenseInfoResolver for this. If the resolver is used multiple times it should be stored instead of calling this function multiple times for better performance.
-
getRepositoryPath
final static String getRepositoryPath(OrtResult $self, RepositoryProvenance provenance)
Return the path where the repository given by provenance is linked into the source tree.
-
-
-
-