Examples of DriftComposite


Examples of org.rhq.core.domain.drift.DriftComposite

        PageList<JPADrift> drifts = findDriftsByCriteria(subject, jpaCriteria);
        PageList<DriftComposite> result = new PageList<DriftComposite>();
        for (JPADrift drift : drifts) {
            JPADriftChangeSet changeSet = drift.getChangeSet();
            DriftDefinition driftDef = changeSet.getDriftDefinition();
            result.add(new DriftComposite(drift, changeSet.getResource(), driftDef.getName()));
        }

        return result;
    }
View Full Code Here

Examples of org.rhq.core.domain.drift.DriftComposite

                //        ok without messing up paging.
                String defFilter = getFilter(request, FILTER_DEFINITION, String.class);
                if (null != defFilter && !defFilter.isEmpty()) {
                    defFilter = defFilter.toLowerCase();
                    for (Iterator<DriftComposite> i = result.getValues().iterator(); i.hasNext();) {
                        DriftComposite composite = i.next();
                        if (!composite.getDriftDefinitionName().toLowerCase().contains(defFilter)) {
                            i.remove();
                        }
                    }
                }
View Full Code Here

Examples of org.rhq.core.domain.drift.DriftComposite

            DriftDTO driftDTO = mapper.toDTO(entry);
            if (criteria.isFetchChangeSet()) {
                DriftChangeSetDTO changeSetDTO = mapper.toDTO(changeSet);
                driftDTO.setChangeSet(changeSetDTO);
            }
            results.add(new DriftComposite(driftDTO, resources.get(changeSet.getResourceId()),
                    changeSet.getDriftDefinitionName()));
        }

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