Search in sources :

Example 1 with FinosLicenceComplianceImporter

use of org.finos.waltz.jobs.tools.importers.licence.finos.FinosLicenceComplianceImporter in project waltz by khartec.

the class LicenceGenerator method create.

@Override
public Map<String, Integer> create(ApplicationContext ctx) {
    try {
        DSLContext dsl = getDsl(ctx);
        LicenceDao licenceDao = ctx.getBean(LicenceDao.class);
        SpdxLicenceImporter spdxLicenceImporter = new SpdxLicenceImporter(dsl, licenceDao);
        FinosLicenceComplianceImporter finosImporter = new FinosLicenceComplianceImporter(dsl, licenceDao);
        spdxLicenceImporter.doImport();
        finosImporter.doImport();
    } catch (Exception e) {
        e.printStackTrace();
    }
    return null;
}
Also used : FinosLicenceComplianceImporter(org.finos.waltz.jobs.tools.importers.licence.finos.FinosLicenceComplianceImporter) SpdxLicenceImporter(org.finos.waltz.jobs.tools.importers.licence.spdx.SpdxLicenceImporter) DSLContext(org.jooq.DSLContext) LicenceDao(org.finos.waltz.data.licence.LicenceDao)

Aggregations

LicenceDao (org.finos.waltz.data.licence.LicenceDao)1 FinosLicenceComplianceImporter (org.finos.waltz.jobs.tools.importers.licence.finos.FinosLicenceComplianceImporter)1 SpdxLicenceImporter (org.finos.waltz.jobs.tools.importers.licence.spdx.SpdxLicenceImporter)1 DSLContext (org.jooq.DSLContext)1