Package org.rhq.enterprise.server.content

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


        @SuppressWarnings("unchecked")
        public PageList<PackageVersionComposite> fetchPage(PageControl pc) {
            Subject subject = EnterpriseFacesContextUtility.getSubject();
            Integer resourceId = Integer.parseInt(FacesContextUtility.getRequiredRequestParameter("id"));
            //String filter = FacesContextUtility.getRequiredRequestParameter("contentForm:filter");
            ContentUIManagerLocal manager = LookupUtil.getContentUIManager();

            PageList<PackageVersionComposite> results = manager.getPackageVersionCompositesByFilter(subject,
                resourceId, null, pc);
            return results;
        }
View Full Code Here


    private InstalledPackageHistory history;
    private int selectedHistoryId;

    public InstalledPackageHistory getHistory() {
        if (history == null) {
            ContentUIManagerLocal contentUIManager = LookupUtil.getContentUIManager();
            history = contentUIManager.getInstalledPackageHistory(getSelectedHistoryId());
        }

        return history;
    }
View Full Code Here

            // If the package types are in a radio button group and one wasn't selected, JSF will set the
            // string to "", in which case this exception is triggered
            return null;
        }

        ContentUIManagerLocal contentUIManager = LookupUtil.getContentUIManager();
        PackageType packageType = contentUIManager.getPackageType(packageTypeId);

        return packageType;
    }
View Full Code Here

    private void loadPackageVersionComposite() {
        if (this.packageVersionComposite == null) {
            Subject subject = EnterpriseFacesContextUtility.getSubject();
            Integer id = FacesContextUtility.getRequiredRequestParameter("id", Integer.class);
            ContentUIManagerLocal manager = LookupUtil.getContentUIManager();
            this.packageVersionComposite = manager.loadPackageVersionCompositeWithExtraProperties(subject, id);
        }
    }
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.getContentRequestsWithStatus(subject, requestResource
                .getId(), ContentRequestStatus.IN_PROGRESS, pc);

            return pageList;
        }
View Full Code Here

    private void loadAdvisoryDetailsComposite() {
        if (this.advisoryDetailsComposite == null) {
            Subject subject = EnterpriseFacesContextUtility.getSubject();
            Integer id = FacesContextUtility.getRequiredRequestParameter("id", Integer.class);
            ContentUIManagerLocal manager = LookupUtil.getContentUIManager();
            this.advisoryDetailsComposite = manager.loadAdvisoryDetailsComposite(subject, id);
        }
    }
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.