Search in sources :

Example 1 with VendorRepository

use of org.eclipse.sw360.datahandler.db.VendorRepository in project sw360portal by sw360.

the class LicenseDatabaseHandler method checkIfInUse.

public boolean checkIfInUse(String licenseId) {
    ReleaseRepository releaseRepository = new ReleaseRepository(db, new VendorRepository(db));
    final List<Release> usingReleases = releaseRepository.searchReleasesByUsingLicenseId(licenseId);
    return !usingReleases.isEmpty();
}
Also used : VendorRepository(org.eclipse.sw360.datahandler.db.VendorRepository) ReleaseRepository(org.eclipse.sw360.datahandler.db.ReleaseRepository) Release(org.eclipse.sw360.datahandler.thrift.components.Release)

Aggregations

ReleaseRepository (org.eclipse.sw360.datahandler.db.ReleaseRepository)1 VendorRepository (org.eclipse.sw360.datahandler.db.VendorRepository)1 Release (org.eclipse.sw360.datahandler.thrift.components.Release)1