Examples of TaskSourceSynchronization


Examples of org.libreplan.business.orders.entities.TaskSource.TaskSourceSynchronization

        return schedulingDataForVersion;
    }

    private TaskSourceSynchronization taskSourceRemoval() {
        Validate.notNull(getOnDBTaskSource());
        TaskSourceSynchronization result = TaskSource
                .mustRemove(getOnDBTaskSource());
        getCurrentSchedulingData().taskSourceRemovalRequested();
        return result;
    }
View Full Code Here

Examples of org.libreplan.business.orders.entities.TaskSource.TaskSourceSynchronization

        TaskSource taskSource = TaskSource.create(schedulingDataForVersion,
                Arrays.asList(associatedHoursGroup));

        orderLine.getCurrentSchedulingData().requestedCreationOf(taskSource);

        TaskSourceSynchronization mustAdd = TaskSource.mustAdd(taskSource);
        mustAdd.apply(TaskSource.persistTaskSources(taskSourceDAO));

        Task task = (Task) taskSource.getTask();
        return task;
    }
View Full Code Here

Examples of org.libreplan.business.orders.entities.TaskSource.TaskSourceSynchronization

        List<HoursGroup> hoursGroups = Arrays.asList(hoursGroup);
        TaskSource taskSource = TaskSource.create(orderLine
                        .getCurrentSchedulingDataForVersion(),
                        hoursGroups);
        TaskSourceSynchronization synchronization = TaskSource
                .mustAdd(taskSource);
        synchronization.apply(TaskSource.persistTaskSources(taskSourceDAO));
        Task task = (Task) taskSource.getTask();
        if (ResourceAllocationType.SPECIFIC_RESOURCE_ALLOCATION.equals(type)) {
            SpecificResourceAllocation specificResourceAllocation = SpecificResourceAllocation
                    .createForTesting(ResourcesPerDay.amount(1),
                            task);
View Full Code Here

Examples of org.libreplan.business.orders.entities.TaskSource.TaskSourceSynchronization

        orderLine.useSchedulingDataFor(orderVersion);
        SchedulingDataForVersion schedulingDataForVersion = orderLine
                .getCurrentSchedulingDataForVersion();
        TaskSource taskSource = TaskSource.create(schedulingDataForVersion,
                Arrays.asList(associatedHoursGroup));
        TaskSourceSynchronization mustAdd = TaskSource.mustAdd(taskSource);
        mustAdd.apply(TaskSource.persistTaskSources(taskSourceDAO));
        Task task = (Task) taskSource.getTask();
        return task;
    }
View Full Code Here

Examples of org.libreplan.business.orders.entities.TaskSource.TaskSourceSynchronization

        orderLine.useSchedulingDataFor(orderVersion);
        SchedulingDataForVersion schedulingDataForVersion = orderLine
                .getCurrentSchedulingDataForVersion();
        TaskSource taskSource = TaskSource.create(schedulingDataForVersion,
                Arrays.asList(associatedHoursGroup));
        TaskSourceSynchronization mustAdd = TaskSource.mustAdd(taskSource);
        mustAdd.apply(TaskSource.persistTaskSources(taskSourceDAO));
        Task task = (Task) taskSource.getTask();
        return task;
    }
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.