Package org.rhq.core.domain.content

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


        // don't get id, if not needed downstream
        //int id = distManager.createDistribution(overlord, kslabel, kspath, distType).getId();
        distManager.createDistribution(overlord, kslabel, kspath, distType);
        Distribution distro = distManager.getDistributionByLabel(kslabel);

        DistributionFile distfile = new DistributionFile(distro, "vmlinux", "d41d8cd98f00b204e9800998ecf8427e");
        em.persist(distfile);
        Query query = em.createNamedQuery(DistributionFile.SELECT_BY_DIST_ID);

        query.setParameter("distId", distro.getId());
        List<DistributionFile> results = query.getResultList();
View Full Code Here


                    + newDist.getId());
                entityManager.persist(repoDist);
                List<DistributionFileDetails> files = detail.getFiles();
                for (DistributionFileDetails f : files) {
                    log.debug("Creating DistributionFile for: " + f);
                    DistributionFile df = new DistributionFile(newDist, f.getRelativeFilename(), f.getMd5sum());
                    df.setLastModified(f.getLastModified());
                    entityManager.persist(df);
                    entityManager.flush();
                }
            } catch (DistributionException e) {
                progress.append("Caught exception when trying to add: " + detail.getLabel() + "\n");
View Full Code Here

        querydel.setParameter("distId", distId);

        querydel.executeUpdate();

        DistributionFile distFile = entityManager.find(DistributionFile.class, distId);
        if (distFile != null) {
            entityManager.remove(distFile);
            log.debug("User [" + user + "] deleted distribution file [" + distFile + "]");
        } else {
            log.debug("Distribution file [" + distFile + "] doesn't exist - nothing to delete");
View Full Code Here

TOP

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

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.