feat(licensedb): Add data transformation layer for LicenseDB integration#3898
Open
ADITYA-CODE-SOURCE wants to merge 2 commits intoeclipse-sw360:mainfrom
Open
feat(licensedb): Add data transformation layer for LicenseDB integration#3898ADITYA-CODE-SOURCE wants to merge 2 commits intoeclipse-sw360:mainfrom
ADITYA-CODE-SOURCE wants to merge 2 commits intoeclipse-sw360:mainfrom
Conversation
Added transformer classes to convert LicenseDB data to SW360 format: - LicenseTransformer: Maps LicenseDB License to SW360 License - ObligationTransformer: Maps LicenseDB Obligation to SW360 Obligation These transformers handle field mapping between external LicenseDB format and internal SW360 data model for licenses and obligations. Fixes eclipse-sw360#3897
- LicenseTransformer: use setExternalLicenseLink() instead of setUrl() - LicenseTransformer: use setLicenseTypeDatabaseId() for license type - LicenseTransformer: use setOSIApproved(Quadratic) enum instead of Boolean - ObligationTransformer: use ObligationType.valueOf() for enum conversion - ObligationTransformer: use ObligationLevel.valueOf() for enum conversion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add transformer classes to convert LicenseDB data format to SW360 internal format for licenses and obligations.
Changes
LicenseTransformer.javaObligationTransformer.javaLocation:
rest/resource-server/src/main/java/org/eclipse/sw360/rest/resourceserver/licensedb/transformer/Field Mapping
License Fields
Obligation Fields
Usage
Testing
Verification
Development Proof
Created 2 transformer classes:
[
Dependencies
None - This is an independent component.
Related
Fixes #3897
Part of: #3685 (LicenseDB integration)
@GMishx @deo002