Classes for representing import data
* ImportData represents the whole project to be imported. * ImportTask represent a single task. FEA: ItEr77S05BasicProjectImport
This commit is contained in:
parent
f5d99cdb82
commit
b951d38f34
2 changed files with 87 additions and 0 deletions
|
|
@ -0,0 +1,43 @@
|
|||
/*
|
||||
* This file is part of LibrePlan
|
||||
*
|
||||
* Copyright (C) 2012 Igalia, S.L.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package org.libreplan.business.orders.imports;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Class that represents no persistent imported data.
|
||||
*
|
||||
* At these moment it only represent the tasks and its subtasks.
|
||||
*
|
||||
* @author Alba Carro Pérez <alba.carro@gmail.com>
|
||||
* @todo It last relationships. resources, calendars, hours, etc
|
||||
*/
|
||||
public class ImportData {
|
||||
/**
|
||||
* Name of the project that is going to be imported.
|
||||
*/
|
||||
public String name;
|
||||
|
||||
/**
|
||||
* List of {@link ImportTask} of the project that is going to be imported.
|
||||
*/
|
||||
public List<ImportTask> tasks;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
/*
|
||||
* This file is part of LibrePlan
|
||||
*
|
||||
* Copyright (C) 2012 Igalia, S.L.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package org.libreplan.business.orders.imports;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Class that represents no persistent imported tasks. <br />
|
||||
*
|
||||
* At these moment it only represent the tasks that can have any subtasks.
|
||||
*
|
||||
* @author Alba Carro Pérez <alba.carro@gmail.com>
|
||||
* @todo It last hours, resources, relationships, etc.
|
||||
*/
|
||||
public class ImportTask {
|
||||
|
||||
/**
|
||||
* Name of the task
|
||||
*/
|
||||
public String name;
|
||||
|
||||
/**
|
||||
* List of task that are children of this task
|
||||
*/
|
||||
public List<ImportTask> children;
|
||||
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue