Search in sources :

Example 26 with EVTaskList

use of net.sourceforge.processdash.ev.EVTaskList in project processdash by dtuma.

the class TeamProjectSetupWizard method createIndivSchedule.

protected String createIndivSchedule(String scheduleName) {
    // if an older schedule exists with this same name, delete it.
    // (Based on our checks above, the older task list should be empty
    // anyway.  But we don't want to reuse its task list ID.)
    EVTaskList oldList = EVTaskList.openExisting(scheduleName, getDataRepository(), getPSPProperties(), getObjectCache(), false);
    if (oldList != null)
        oldList.save(null);
    EVTaskListData schedule = new EVTaskListData(scheduleName, getDataRepository(), getPSPProperties(), false);
    schedule.addTask(getPrefix(), getDataRepository(), getPSPProperties(), null, false);
    schedule.getSchedule().setDatesLocked(true);
    schedule.setMetadata(PROJECT_SCHEDULE_SYNC_SCHEDULE, schedule.getSchedule().getSaveList().formatClean());
    schedule.setMetadata(PROJECT_SCHEDULE_SYNC_PDT, Double.toString(schedule.getSchedule().get(1).planDirectTime()));
    schedule.save();
    return schedule.getID();
}
Also used : EVTaskListData(net.sourceforge.processdash.ev.EVTaskListData) EVTaskList(net.sourceforge.processdash.ev.EVTaskList)

Aggregations

EVTaskList (net.sourceforge.processdash.ev.EVTaskList)26 EVTaskListRollup (net.sourceforge.processdash.ev.EVTaskListRollup)8 EVTaskListGroupFilter (net.sourceforge.processdash.ev.EVTaskListGroupFilter)7 UserFilter (net.sourceforge.processdash.team.group.UserFilter)7 ArrayList (java.util.ArrayList)5 EVSchedule (net.sourceforge.processdash.ev.EVSchedule)5 EVTask (net.sourceforge.processdash.ev.EVTask)5 EVTaskListFilter (net.sourceforge.processdash.ev.EVTaskListFilter)5 Iterator (java.util.Iterator)4 TreePath (javax.swing.tree.TreePath)4 Date (java.util.Date)3 HashSet (java.util.HashSet)3 DefaultTaskLabeler (net.sourceforge.processdash.ev.DefaultTaskLabeler)3 EVDependencyCalculator (net.sourceforge.processdash.ev.EVDependencyCalculator)3 EVTaskListData (net.sourceforge.processdash.ev.EVTaskListData)3 HashMap (java.util.HashMap)2 List (java.util.List)2 Map (java.util.Map)2 Set (java.util.Set)2 EVTaskFilter (net.sourceforge.processdash.ev.EVTaskFilter)2