Collection<? extends ResourceAllocation<?>> requestedToRemove) {
List<ResourceAllocation<?>> allocationsToDiscount = getToDiscount(rows);
allocationsToDiscount.addAll(requestedToRemove);
final IAssignedEffortForResource effortForResource = AssignedEffortForResource
.effortDiscounting(allocationsToDiscount);
List<ResourceAllocation<?>> beingModified = AllocationRow
.getBeingModified(rows);
final WithTheLoadOf withTheLoadOf = AssignedEffortForResource
.withTheLoadOf(beingModified);
for (GenericResourceAllocation each : ResourceAllocation.getOfType(GenericResourceAllocation.class, beingModified)) {
IAssignedEffortForResource custom = AssignedEffortForResource.sum(
withTheLoadOf.withoutConsidering(each), effortForResource);
each.setAssignedEffortForResource(custom);
}
}