Examples of ResourceCategory


Examples of org.rhq.core.domain.resource.ResourceCategory

            Integer typeId = (Integer) prefetched[i++];
            String typeName = (String) prefetched[i++];
            String typePlugin = (String) prefetched[i++];
            Boolean typeSingleton = (Boolean) prefetched[i++];
            ResourceCategory typeCategory = (ResourceCategory) prefetched[i++];

            String subCategory = (String) prefetched[i++];

            //we don't need the resource type reference here, only in the cache
            flyweightCache
View Full Code Here

Examples of org.rhq.core.domain.resource.ResourceCategory

        // Split the Resources into two lists - one for platforms and one for servers, since that's what
        // updateInventoryStatus() expects.
        List<Resource> platforms = new ArrayList<Resource>();
        List<Resource> servers = new ArrayList<Resource>();
        for (Resource resource : resources) {
            ResourceCategory category = resource.getResourceType().getCategory();
            if (category == ResourceCategory.PLATFORM) {
                if (target == InventoryStatus.IGNORED && (resource.getInventoryStatus() == InventoryStatus.COMMITTED)) {
                    LOG.warn("Cannot ignore a committed platform - skipping request to ignore:" + resource);
                } else {
                    platforms.add(resource);
View Full Code Here

Examples of org.rhq.core.domain.resource.ResourceCategory

            super(view, beanName);
        }

        @Override
        public PageList<ResourceComposite> fetchPage(PageControl pageControl) {
            ResourceCategory resourceCategory = null;
            int resourceTypeId = -1;
            ListChildResourcesUIBean.this.initChildTypeFilter();
            if ((ListChildResourcesUIBean.this.childTypeFilter != null)
                && !ListChildResourcesUIBean.this.childTypeFilter.equals(CHILD_TYPE_FILTER_VALUE_ALL)) {
                try {
View Full Code Here

Examples of org.rhq.core.domain.resource.ResourceCategory

            int repoId = Integer.parseInt(FacesContextUtility.getRequiredRequestParameter("id"));
            String search = FacesContextUtility
                .getOptionalRequestParameter("repoUnsubscriptionsListForm:searchStringFilter");
            String category = FacesContextUtility
                .getOptionalRequestParameter("repoUnsubscriptionsListForm:searchCategoryFilter");
            ResourceCategory categoryEnum = ResourceCategory.PLATFORM;

            if (search != null && search.trim().equals("")) {
                search = null;
            }
View Full Code Here

Examples of org.rhq.core.domain.resource.ResourceCategory

    public ResourceTypeFlyweight constructResourceType(ResourceType original) {
        int id = original.getId();
        String name = original.getName();
        String plugin = original.getPlugin();
        boolean singleton = original.isSingleton();
        ResourceCategory category = original.getCategory();
        String subCategory = original.getSubCategory();

        return constructResourceType(id, name, plugin, singleton, category, subCategory);
    }
View Full Code Here

Examples of org.rhq.core.domain.resource.ResourceCategory

        }

        public PageList<ResourceComposite> fetchDataForPage(PageControl pc) {
            try {
                String search = getSearch();
                ResourceCategory category = getCategory();

                ResourceCriteria criteria = new ResourceCriteria();
                criteria.setPageControl(pc);
                criteria.addFilterResourceCategories(category);
                if (search != null && !search.trim().equals("")) {
View Full Code Here

Examples of org.rhq.core.domain.resource.ResourceCategory

            }
            totalCount++;
            if (resource.getResourceType() == null) {
                return;
            }
            ResourceCategory category = resource.getResourceType().getCategory();
            switch (category) {
            case PLATFORM:
                platformCount++;
                break;
            case SERVER:
View Full Code Here

Examples of org.rhq.core.domain.resource.ResourceCategory

        HLayout hLayout = new HLayout();
        VLayout horizontalSpacer = new VLayout();
        horizontalSpacer.setWidth(140);
        hLayout.addMember(horizontalSpacer);
        ResourceCategory resourceCategory = this.groupComposite.getResourceGroup().getResourceType().getCategory();
        String memberIcon = ImageManager.getResourceIcon(resourceCategory);
        HoverCustomizer nameHoverCustomizer = new HoverCustomizer() {
            public String hoverHTML(Object value, ListGridRecord listGridRecord, int rowNum, int colNum) {
                return AncestryUtil.getAncestryHoverHTML(listGridRecord, 0);
            }
View Full Code Here

Examples of org.rhq.core.domain.resource.ResourceCategory

        // available resources are all resources in the system that are not associated with the user and are not pending
        log.debug("determine if user wants to filter available resources");
        Integer typeIdFilter = ((addForm.getType() == null) || (addForm.getType() == DEFAULT_RESOURCE_TYPE)) ? null
            : addForm.getType();
        ResourceCategory categoryFilter = (addForm.getCategory() != null) ? ResourceCategory.valueOf(addForm
            .getCategory().toUpperCase()) : ResourceCategory.PLATFORM;

        int[] excludeIds = StringUtility.getIntArray(pendingResourceList);
        PageList<Resource> availableResources = null;
View Full Code Here

Examples of org.rhq.core.domain.resource.ResourceCategory

        if ((hubForm.getResourceCategory() == null) || hubForm.getResourceCategory().equals("")) {
            hubForm.setResourceCategory(DEFAULT_RESOURCE_CATEGORY);
        }

        ResourceCategory resourceCategory = ResourceCategory.valueOf(hubForm.getResourceCategory());
        String pluginName = ALL_PLUGINS;
        if ((hubForm.getPlugin() != null) && !hubForm.getPlugin().trim().equals("")) {
            pluginName = decode(hubForm.getPlugin());
        }
        PageList<ResourceComposite> resources = LookupUtil.getResourceManager().findResourceComposites(subject,
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.