Package org.rhq.enterprise.server.content

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


        ResourceType resourceType = resource.getResourceType();

        if (resourceType.getCreationDataType() != ResourceCreationDataType.CONTENT)
            return null;

        ContentUIManagerLocal contentUIManager = LookupUtil.getContentUIManager();
        List<PackageType> packageTypes = contentUIManager.getPackageTypes(resourceType.getId());
        for (PackageType type : packageTypes) {
            if (type.isCreationData())
                return type.getName();
        }
View Full Code Here


        // Going forward, we'll need to create this earlier and store the user entered configuration in these
        // objects.  jdobies, Mar 3, 2008
        // The following code is completely unnecessary as the package version ids are already
        // stored in session.
        ContentUIManagerLocal contentUIManager = LookupUtil.getContentUIManager();
        int[] packagesVersionsIdsToDeploy = new int[packageIds.length];
        for (int iterator = 0; iterator < packageIds.length; iterator++) {
            PackageVersion packageVersion = contentUIManager.getPackageVersion(packageIds[iterator]);
            packagesVersionsIdsToDeploy[iterator] = packageVersion.getId();
        }

        Subject subject = EnterpriseFacesContextUtility.getSubject();
        Resource resource = EnterpriseFacesContextUtility.getResource();
View Full Code Here

        if (notes == null) {
            HttpServletRequest request = FacesContextUtility.getRequest();
            HttpSession session = request.getSession();
            int[] packageIds = (int[]) session.getAttribute("selectedPackages");

            ContentUIManagerLocal contentUIManager = LookupUtil.getContentUIManager();

            StringBuffer sb = new StringBuffer("Packages: ");
            int counter = 0;
            for (int pkgId : packageIds) {
                PackageVersion packageVersion = contentUIManager.getPackageVersion(pkgId);
                Package generalPackage = packageVersion.getGeneralPackage();

                String version = packageVersion.getDisplayVersion() != null ? packageVersion.getDisplayVersion()
                    : packageVersion.getVersion();
View Full Code Here

        }

        public PageList<PackageVersionComposite> fetchPage(PageControl pc) {
            Subject subject = EnterpriseFacesContextUtility.getSubject();

            ContentUIManagerLocal contentUIManager = LookupUtil.getContentUIManager();
            PageList<PackageVersionComposite> results = contentUIManager.getPackageVersionComposites(subject,
                getSelectedPackageIds(), pc);

            return results;
        }
View Full Code Here

        @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.getUpdatePackageVersionCompositesByFilter(subject,
                resourceId, null, pc);
            return results;
        }
View Full Code Here

    private ContentServiceRequest contentServiceRequest;
    private int selectedRequestId;

    public ContentServiceRequest getContentServiceRequest() {
        if (contentServiceRequest == null) {
            ContentUIManagerLocal contentUIManager = LookupUtil.getContentUIManager();
            contentServiceRequest = contentUIManager.getContentServiceRequest(getSelectedRequestId());
        }

        return contentServiceRequest;
    }
View Full Code Here

        }

        public PageList<InstalledPackageHistory> fetchPage(PageControl pc) {
            int requestId = getSelectedRequestId();

            ContentUIManagerLocal contentUIManager = LookupUtil.getContentUIManager();
            PageList<InstalledPackageHistory> history = contentUIManager.getInstalledPackageHistory(requestId, pc);

            return history;
        }
View Full Code Here

            if (getPackageIdsToDelete() == null)
                return Collections.EMPTY_LIST;

            packagesToDelete = new ArrayList<InstalledPackage>(packageIdsToDelete.length);

            ContentUIManagerLocal contentUIManager = LookupUtil.getContentUIManager();

            for (String installedPackageId : packageIdsToDelete) {
                int iInstalledPackageId = Integer.parseInt(installedPackageId);
                InstalledPackage installedPackage = contentUIManager.getInstalledPackage(iInstalledPackageId);
                packagesToDelete.add(installedPackage);
            }
        }

        return packagesToDelete;
View Full Code Here

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

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

        return history;
    }
View Full Code Here

    public PackageInstallationStep getStep() {
        if (step == null) {
            HttpServletRequest request = FacesContextUtility.getRequest();
            int stepId = Integer.parseInt(request.getParameter("stepId"));

            ContentUIManagerLocal contentUIManager = LookupUtil.getContentUIManager();
            step = contentUIManager.getPackageInstallationStep(stepId);
        }

        return step;
    }
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.