Package org.libreplan.business.planner.entities.consolidations

Examples of org.libreplan.business.planner.entities.consolidations.Consolidation


    private void updateOriginalTotalAssigment() {
        if (!isSatisfied()) {
            return;
        }
        intendedNonConsolidatedEffort = getNonConsolidatedEffort();
        Consolidation consolidation = task.getConsolidation();
        if (consolidation == null) {
            intendedTotalAssignment = intendedNonConsolidatedEffort;
        } else if (consolidation.isCompletelyConsolidated()) {
            intendedTotalAssignment = getConsolidatedEffort();
        } else {
            intendedTotalAssignment = consolidation.getTotalFromNotConsolidated(getNonConsolidatedEffort());
        }
    }
View Full Code Here


            return result;
        }

        private void removeEmptyConsolidation(TaskElement taskElement) {
            if ((taskElement.isLeaf()) && (!taskElement.isMilestone())) {
                Consolidation consolidation = ((Task) taskElement)
                        .getConsolidation();
                if ((consolidation != null)
                        && (isEmptyConsolidation(consolidation))) {
                    if (!consolidation.isNewObject()) {
                        try {
                            consolidationDAO.remove(consolidation.getId());
                        } catch (InstanceNotFoundException e) {
                            throw new RuntimeException(e);
                        }
                    }
                    ((Task) taskElement).setConsolidation(null);
View Full Code Here

TOP

Related Classes of org.libreplan.business.planner.entities.consolidations.Consolidation

Copyright © 2018 www.massapicom. 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.