ItEr25S07CUAsignacionGrupoRecursosAPlanificacionItEr24S08: Removing specific resources
This commit is contained in:
parent
4f23fe7ad6
commit
a9c0d57fdd
2 changed files with 3 additions and 13 deletions
|
|
@ -50,14 +50,6 @@ public interface IResourceAllocationModel {
|
|||
*/
|
||||
Task getTask();
|
||||
|
||||
/**
|
||||
* Removes the {@link ResourceAllocation} from the current {@link Task}.
|
||||
*
|
||||
* @param resourceAllocation
|
||||
* The object to be removed
|
||||
*/
|
||||
void removeResourceAllocation(ResourceAllocation resourceAllocation);
|
||||
|
||||
/**
|
||||
* Removes {@link SpecificResourceAllocation} from current allocations list
|
||||
* @param data
|
||||
|
|
|
|||
|
|
@ -90,11 +90,6 @@ public class ResourceAllocationModel implements IResourceAllocationModel {
|
|||
return found;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeResourceAllocation(ResourceAllocation resourceAllocation) {
|
||||
task.removeResourceAllocation(resourceAllocation);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Set<Criterion> getCriterions() {
|
||||
return (task != null) ? task.getHoursGroup().getCriterions()
|
||||
|
|
@ -113,6 +108,9 @@ public class ResourceAllocationModel implements IResourceAllocationModel {
|
|||
public void removeSpecificResourceAllocation(
|
||||
SpecificAllocationDTO allocation) {
|
||||
currentAllocations.remove(allocation);
|
||||
if (allocation.isModifying()) {
|
||||
task.removeResourceAllocation(allocation.getOrigin());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue