use of com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceObjectTypeDependencyType in project midpoint by Evolveum.
the class DependencyProcessor method findReverseDependecies.
private <F extends ObjectType> Collection<DependencyAndSource> findReverseDependecies(LensContext<F> context, LensProjectionContext targetProjectionContext) throws PolicyViolationException {
Collection<DependencyAndSource> deps = new ArrayList<>();
for (LensProjectionContext projectionContext : context.getProjectionContexts()) {
for (ResourceObjectTypeDependencyType dependency : projectionContext.getDependencies()) {
if (LensUtil.isDependencyTargetContext(projectionContext, targetProjectionContext, dependency)) {
DependencyAndSource ds = new DependencyAndSource();
ds.dependency = dependency;
ds.sourceProjectionContext = projectionContext;
deps.add(ds);
}
}
}
return deps;
}
Aggregations