Package org.rhq.core.domain.content

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


    protected void beforeMethod() throws Exception {
        TransactionManager tx = getTransactionManager();
        tx.begin();

        distManager = LookupUtil.getDistributionManagerLocal();
        distType = new DistributionType("kickstart");

        overlord = LookupUtil.getSubjectManager().getOverlord();
    }
View Full Code Here


        List<DistributionDetails> newDetails = report.getDistributions();
        for (DistributionDetails detail : newDetails) {
            try {

                log.debug("Attempting to create new distribution based off of: " + detail);
                DistributionType distType = distManager.getDistributionTypeByName(detail.getDistributionType());
                Distribution newDist = distManager.createDistribution(overlord, detail.getLabel(), detail
                    .getDistributionPath(), distType);
                log.debug("Created new distribution: " + newDist);
                Repo repo = repoManager.getRepo(overlord, report.getRepoId());
                RepoDistribution repoDist = new RepoDistribution(repo, newDist);
View Full Code Here

    @RequiredPermission(Permission.MANAGE_INVENTORY)
    public Distribution createDistribution(Subject user, String kslabel, String basepath, DistributionType disttype)
        throws DistributionException {

        DistributionType loaded = distributionManager.getDistributionTypeByName(disttype.getName());
        if (loaded != null) {
            disttype = loaded;
        }

        Distribution kstree = new Distribution(kslabel, basepath, disttype);
View Full Code Here

TOP

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

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.