Package org.rhq.enterprise.gui.legacy.WebUserPreferences

Examples of org.rhq.enterprise.gui.legacy.WebUserPreferences.FavoriteResourcePortletPreferences.asArray()


            WebUserPreferences preferences = user.getWebPreferences();
            FavoriteResourcePortletPreferences favoriteResourcePreferences = preferences
                .getFavoriteResourcePortletPreferences();

            PageList<ResourceHealthComposite> results = manager.findResourceHealth(user.getSubject(),
                favoriteResourcePreferences.asArray(), PageControl.getUnlimitedInstance());

            if ((results != null) && (results.size() > 0)) {
                PageList<DisambiguationReport<ResourceHealthComposite>> list = DisambiguatedResourceListUtil.disambiguate(manager, results, ViewAction.RESOURCE_ID_EXTRACTOR);
               
                for (DisambiguationReport<ResourceHealthComposite> summary : list) {
View Full Code Here


            preferences.setFavoriteResourcePortletPreferences(favoriteResourcePreferences);
            forwardStr = "review";
        } else if (pForm.isOkClicked()) {
            FavoriteResourcePortletPreferences favoriteResourcePreferences = preferences
                .getFavoriteResourcePortletPreferences();
            int[] savedResourceIds = favoriteResourcePreferences.asArray();
            favoriteResourcePreferences = pForm.getFavoriteResourcePortletPreferences();
            favoriteResourcePreferences.setFavorites(ArrayUtils.wrapInList(savedResourceIds));
            preferences.setFavoriteResourcePortletPreferences(favoriteResourcePreferences);
        }
View Full Code Here

        FavoriteResourcePortletPreferences favoriteResourcePreferences = preferences
            .getFavoriteResourcePortletPreferences();
        pForm.setFavoriteResourcePortletPreferences(favoriteResourcePreferences);

        PageList<Resource> resources = LookupUtil.getResourceManager().findResourceByIds(user.getSubject(),
            favoriteResourcePreferences.asArray(), false, pc);

        request.setAttribute("resourceHealthList", resources);
        request.setAttribute("resourceHealthTotalSize", resources.getTotalSize());

        return null;
View Full Code Here

            FavoriteResourcePortletPreferences favoriteResourcePreferences = preferences
                .getFavoriteResourcePortletPreferences();

            ResourceManagerLocal manager = LookupUtil.getResourceManager();
            PageList<ResourceHealthComposite> lst = manager.findResourceHealth(user.getSubject(), favoriteResourcePreferences.asArray(), pc);
           
            list = DisambiguatedResourceListUtil.disambiguate(manager, lst, RESOURCE_ID_EXTRACTOR);
           
            showAvailability = favoriteResourcePreferences.showAvailability;
            showAlerts = favoriteResourcePreferences.showAlerts;
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.