Package org.rhq.core.domain.content

Examples of org.rhq.core.domain.content.ProductVersionPackageVersion


    public ProductVersionPackageVersion addPackageVersion(PackageVersion packageVersion) {
        if (this.productVersionPackageVersions == null) {
            this.productVersionPackageVersions = new HashSet<ProductVersionPackageVersion>();
        }

        ProductVersionPackageVersion mapping = new ProductVersionPackageVersion(this, packageVersion);
        this.productVersionPackageVersions.add(mapping);
        return mapping;
    }
View Full Code Here


    public ProductVersionPackageVersion removePackageVersion(PackageVersion packageVersion) {
        if ((this.productVersionPackageVersions == null) || (packageVersion == null)) {
            return null;
        }

        ProductVersionPackageVersion doomed = null;

        for (ProductVersionPackageVersion pvpv : this.productVersionPackageVersions) {
            if (packageVersion.equals(pvpv.getProductVersionPackageVersionPK().getPackageVersion())) {
                doomed = pvpv;
                break;
View Full Code Here

            em.persist(package1);

            // Package 2 - Has list of product versions that contains the resource's version
            package2 = new Package("Package2", packageType1);
            PackageVersion packageVersion2 = new PackageVersion(package2, "1.0.0", architecture);
            ProductVersionPackageVersion pvpv1 = packageVersion2.addProductVersion(productVersion1);
            ProductVersionPackageVersion pvpv2 = packageVersion2.addProductVersion(productVersion2);
            package2.addVersion(packageVersion2);

            em.persist(package2);
            em.persist(pvpv1);
            em.persist(pvpv2);

            // Package 3 - Has list of product versions where the resource version is not included
            package3 = new Package("Package3", packageType1);
            PackageVersion packageVersion3 = new PackageVersion(package3, "1.0.0", architecture);
            ProductVersionPackageVersion pvpv3 = packageVersion3.addProductVersion(productVersion2);
            package3.addVersion(packageVersion3);

            em.persist(package3);
            em.persist(pvpv3);
View Full Code Here

                    if (productVersion == null) {
                        productVersion = productVersionManager.addProductVersion(rt, version);
                        cachedProductVersions.put(version, productVersion);
                    }

                    ProductVersionPackageVersion mapping = new ProductVersionPackageVersion(productVersion, pv);
                    entityManager.merge(mapping); // use merge just in case this mapping somehow already exists
                }
            } else if (resourceVersions != null) {
                log.info("Misbehaving content provider detected. It declares resource versions " + resourceVersions
                    + " but no resource type in package " + newDetails + ".");
View Full Code Here

TOP

Related Classes of org.rhq.core.domain.content.ProductVersionPackageVersion

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.