Examples of addFilterIds()


Examples of org.rhq.core.domain.criteria.ResourceGroupCriteria.addFilterIds()

                        callback.onSuccess(new Favorites(resources, new PageList<ResourceGroupComposite>()));
                        return;
                    }

                    ResourceGroupCriteria criteria = new ResourceGroupCriteria();
                    criteria.addFilterIds(groupIds.toArray(new Integer[groupIds.size()]));
                    GWTServiceLookup.getResourceGroupService().findResourceGroupCompositesByCriteria(criteria,
                        new AsyncCallback<PageList<ResourceGroupComposite>>() {
                            public void onFailure(Throwable caught) {
                                callback.onFailure(caught);
                            }
View Full Code Here

Examples of org.rhq.core.domain.criteria.ResourceTypeCriteria.addFilterIds()

        // In addition to the types of the result resources, get the types of their ancestry
        typesSet.addAll(getAncestryTypeIds(ancestries));

        ResourceTypeCriteria resourceTypeCriteria = new ResourceTypeCriteria();
        resourceTypeCriteria.addFilterIds(typesSet.toArray(new Integer[typesSet.size()]));
        resourceTypeCriteria.addFilterIgnored(null); // don't worry if they are ignored or not, get the ancestry anyway
        List<ResourceType> types = typeManager.findResourceTypesByCriteria(subject, resourceTypeCriteria);

        for (Resource resource : resources) {
            String decodedAncestry = getDecodedAncestry(resource, types, format);
View Full Code Here

Examples of org.rhq.core.domain.criteria.ResourceTypeCriteria.addFilterIds()

                if (callback != null) {
                    callback.onTypesLoaded(cachedTypes);
                }
                return;
            }
            criteria.addFilterIds(typesNeeded.toArray(new Integer[typesNeeded.size()]));
        }

        for (MetadataType metadataType : metadataTypesNeeded) {
            switch (metadataType) {
            case children:
View Full Code Here

Examples of org.rhq.core.domain.criteria.RoleCriteria.addFilterIds()

        String roleIds = getConfiguration().getSimpleValue(PROPNAME, ""); // we know the role plugin defines this
        if (roleIds != null && roleIds.length() > 0) {
            try {
                List<Integer> ids = unfence(roleIds, Integer.class);
                RoleCriteria criteria = new RoleCriteria();
                criteria.addFilterIds(ids.toArray(new Integer[ids.size()]));
                GWTServiceLookup.getRoleService().findRolesByCriteria(criteria, new AsyncCallback<PageList<Role>>() {
                    @Override
                    public void onSuccess(PageList<Role> result) {
                        createNewSelector(result);
                    }
View Full Code Here

Examples of org.rhq.core.domain.criteria.SubjectCriteria.addFilterIds()

        String subjectIds = getConfiguration().getSimpleValue(PROPNAME, ""); // we know the subject plugin defines this
        if (subjectIds != null && subjectIds.length() > 0) {
            try {
                List<Integer> ids = unfence(subjectIds, Integer.class);
                SubjectCriteria criteria = new SubjectCriteria();
                criteria.addFilterIds(ids.toArray(new Integer[ids.size()]));
                GWTServiceLookup.getSubjectService().findSubjectsByCriteria(criteria,
                    new AsyncCallback<PageList<Subject>>() {
                        @Override
                        public void onSuccess(PageList<Subject> result) {
                            createNewSelector(result);
View Full Code Here

Examples of org.rhq.core.domain.criteria.SubjectCriteria.addFilterIds()

         * to list" widget- awaiting association with the rolewhen the form's "ok" button is clicked. */
        Integer[] pendingUserIds = SessionUtils.getList(request.getSession(), Constants.PENDING_USERS_SES_ATTR);

        log.trace("getting pending users for role [" + roleId + "]");
        SubjectCriteria c = new SubjectCriteria();
        c.addFilterIds(pendingUserIds);
        c.addFilterFsystem(false);
        c.addFilterFactive(true);
        c.fetchRoles(true);
        c.addSortName(PageOrdering.ASC);
        PageList<Subject> pendingUsers = subjectManager.findSubjectsByCriteria(RequestUtils.getSubject(request), c);
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.