Examples of subscribeResourceToRepos()


Examples of org.rhq.enterprise.server.content.RepoManagerLocal.subscribeResourceToRepos()

        if ((resourceIds != null) && (resourceIds.length > 0)) {
            try {
                RepoManagerLocal manager = LookupUtil.getRepoManagerLocal();

                for (int resourceId : resourceIds) {
                    manager.subscribeResourceToRepos(subject, resourceId, new int[] { repoId });
                }

                FacesContextUtility.addMessage(FacesMessage.SEVERITY_INFO, "Subscribed [" + resourceIds.length
                    + "] resources with repository");
            } catch (Exception e) {
View Full Code Here

Examples of org.rhq.enterprise.server.content.RepoManagerLocal.subscribeResourceToRepos()

        if ((repoIds != null) && (repoIds.length > 0)) {
            try {
                RepoManagerLocal manager = LookupUtil.getRepoManagerLocal();
                // TODO: mazz - this shouldn't required Permission.MANAGE_INVENTORY
                manager.subscribeResourceToRepos(subject, resourceId, repoIds);

                FacesContextUtility.addMessage(FacesMessage.SEVERITY_INFO, "Subscribed [" + repoIds.length
                    + "] repositories to resource");
            } catch (Exception e) {
                FacesContextUtility.addMessage(FacesMessage.SEVERITY_ERROR,
View Full Code Here

Examples of org.rhq.enterprise.server.content.RepoManagerLocal.subscribeResourceToRepos()

        } else if (repoOption.equals(REPO_OPTION_UNSUBSCRIBED)) {
            repoId = unsubscribedRepoId;
            int iRepoId = Integer.parseInt(repoId);

            RepoManagerLocal repoManager = LookupUtil.getRepoManagerLocal();
            repoManager.subscribeResourceToRepos(subject, resourceId, new int[] { iRepoId });

            // Change the subscribedRepoId so if we fall back to the page with a different error,
            // the drop down for selecting an existing subscribed repo will be populated with this
            // new repo
            subscribedRepoId = repoId;
View Full Code Here

Examples of org.rhq.enterprise.server.content.RepoManagerLocal.subscribeResourceToRepos()

            newRepo.setCandidate(false);
            newRepo = repoManager.createRepo(subject, newRepo);

            repoId = Integer.toString(newRepo.getId());

            repoManager.subscribeResourceToRepos(subject, resourceId, new int[] { newRepo.getId() });

            // Change the subscribedRepoId so if we fall back to the page with a different error,
            // the drop down for selecting an existing subscribed repo will be populated with this
            // new repo
            subscribedRepoId = repoId;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.