Package edu.monash.merc.domain

Examples of edu.monash.merc.domain.Licence


        } else {
            this.updateRegMetadata(regMetadata);
        }
        //save the licence:
        LicenceBean licenceBean = mdRegistrationBean.getLicenceBean();
        Licence licence = copyLicenceBeanToLicence(licenceBean);
        licence.setRegMetadata(regMetadata);
        if (licence.getId() == 0) {
            Licence existedLicence = this.getLicenceByRegMetadataId(regMetadata.getId());
            if (existedLicence != null) {
                licence.setId(existedLicence.getId());
                this.mergeLicence(licence);
            } else {
                this.saveLicence(licence);
            }
        } else {
View Full Code Here


        //publish the rifcs
        this.rifcsService.publishExpRifcs(mdRegistrationBean);
    }

    private Licence copyLicenceBeanToLicence(LicenceBean licenceBean) {
        Licence licence = new Licence();
        licence.setLicenceType(licenceBean.getLicenceType());
        licence.setCommercial(licenceBean.getCommercial());
        licence.setDerivatives(licenceBean.getDerivatives());
        licence.setJurisdiction(licenceBean.getJurisdiction());
        licence.setLicenceContents(licenceBean.getLicenceContents());
        return licence;
    }
View Full Code Here

TOP

Related Classes of edu.monash.merc.domain.Licence

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.