Package org.rhq.enterprise.server.content

Examples of org.rhq.enterprise.server.content.ContentUIManagerLocal


            if (history == null) {
                log.error("Trying to load steps for null history");
                return installationSteps;
            }

            ContentUIManagerLocal contentUIManager = LookupUtil.getContentUIManager();
            installationSteps = contentUIManager.getPackageInstallationSteps(history.getId());
        }

        return installationSteps;
    }
View Full Code Here


    private UIData stepsData;

    private final Log log = LogFactory.getLog(this.getClass());

    public String loadSteps() {
        ContentUIManagerLocal contentUIManager = LookupUtil.getContentUIManager();
        ContentManagerLocal contentManager = LookupUtil.getContentManager();

        HttpServletRequest request = FacesContextUtility.getRequest();
        selectedPackageId = Integer.parseInt(request.getParameter("selectedPackageId"));

        log.info("Loading package version for ID: " + selectedPackageId);

        packageVersion = contentUIManager.getPackageVersion(selectedPackageId);

        Resource resource = EnterpriseFacesContextUtility.getResource();

        // Going forward, we'll need to create this earlier and store the user entered configuration in these
        // objects.  jdobies, Mar 3, 2008
View Full Code Here

    // Public  --------------------------------------------

    public List<PackageType> getPackageTypesForResourceType() {
        Resource resource = EnterpriseFacesContextUtility.getResource();

        ContentUIManagerLocal contentUIManager = LookupUtil.getContentUIManager();
        List<PackageType> packageTypes = contentUIManager.getPackageTypes(resource.getResourceType().getId());

        return packageTypes;
    }
View Full Code Here

        @Override
        public PageList<PackageType> fetchPage(PageControl pc) {
            Resource resource = EnterpriseFacesContextUtility.getResource();
            ResourceType resourceType = resource.getResourceType();
            ContentUIManagerLocal manager = LookupUtil.getContentUIManager();

            PageList<PackageType> pageList = manager.getPackageTypes(resourceType.getId(), pc);

            return pageList;
        }
View Full Code Here

            return;
        }

        int currentPackageId = Integer.parseInt(FacesContextUtility.getRequest().getParameter("currentPackageId"));

        ContentUIManagerLocal contentUIManager = LookupUtil.getContentUIManager();
        currentPackage = contentUIManager.getInstalledPackage(currentPackageId);
    }
View Full Code Here

            Subject subject = EnterpriseFacesContextUtility.getSubject();
            Resource resource = EnterpriseFacesContextUtility.getResourceIfExists();
            int currentInstalledPackageId = Integer.parseInt(FacesContextUtility.getRequest().getParameter(
                "currentPackageId"));

            ContentUIManagerLocal contentUIManager = LookupUtil.getContentUIManager();

            // Load the current installed package so we can get the general package in question
            InstalledPackage currentInstalledPackage = contentUIManager.getInstalledPackage(currentInstalledPackageId);
            Package generalPackage = currentInstalledPackage.getPackageVersion().getGeneralPackage();

            PageList<InstalledPackageHistory> result = contentUIManager.getInstalledPackageHistory(subject, resource
                .getId(), generalPackage.getId(), pc);
            return result;
        }
View Full Code Here

    private SelectItem[] getPackageTypes(boolean includeResourceTypeResolution) {
        Resource resource = EnterpriseFacesContextUtility.getResourceIfExists();

        List<PackageType> packageTypes;
        ContentUIManagerLocal contentUIManager = LookupUtil.getContentUIManager();
        if (resource != null) {
            packageTypes = contentUIManager.getPackageTypes(resource.getResourceType().getId());
        } else {
            packageTypes = contentUIManager.getPackageTypes();
        }

        SelectItem[] items = new SelectItem[packageTypes.size()];
        int itemCounter = 0;
        for (PackageType packageType : packageTypes) {
View Full Code Here

    }

    public SelectItem[] getPackageTypes() {
        Resource resource = EnterpriseFacesContextUtility.getResource();

        ContentUIManagerLocal contentUIManager = LookupUtil.getContentUIManager();
        List<PackageType> packageTypes = contentUIManager.getPackageTypes(resource.getResourceType().getId());

        SelectItem[] items = new SelectItem[packageTypes.size()];
        int itemCounter = 0;
        for (PackageType packageType : packageTypes) {
            SelectItem item = new SelectItem(packageType.getId(), packageType.getDisplayName());
View Full Code Here

        @Override
        public PageList<ContentServiceRequest> fetchPage(PageControl pc) {
            Subject subject = EnterpriseFacesContextUtility.getSubject();
            Resource requestResource = EnterpriseFacesContextUtility.getResourceIfExists();
            ContentUIManagerLocal manager = LookupUtil.getContentUIManager();

            if (requestResource == null) {
                requestResource = resource; // request not associated with a resource - use the resource we used before
            } else {
                resource = requestResource; // request switched the resource this UI bean is using
            }

            PageList<ContentServiceRequest> pageList = manager.getContentRequestsWithNotStatus(subject, requestResource
                .getId(), ContentRequestStatus.IN_PROGRESS, pc);

            return pageList;
        }
View Full Code Here

            super(view, beanName);
        }

        public PageList<InstalledPackageHistory> fetchPage(PageControl pc) {
            Resource requestResource = EnterpriseFacesContextUtility.getResourceIfExists();
            ContentUIManagerLocal manager = LookupUtil.getContentUIManager();

            if (requestResource == null) {
                requestResource = resource; // request not associated with a resource - use the resource we used before
            } else {
                resource = requestResource; // request switched the resource this UI bean is using
            }

            PageList<InstalledPackageHistory> pageList =
                manager.getInstalledPackageHistoryForResource(resource.getId(), pc);

            return pageList;
        }
View Full Code Here

TOP

Related Classes of org.rhq.enterprise.server.content.ContentUIManagerLocal

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.