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();
}
Aggregations