@@ -0,0 +1,2057 @@
+/*%0A * This file is part of LibrePlan%0A *%0A * Copyright (C) 2012 Igalia, S.L.%0A *%0A * This program is free software: you can redistribute it and/or modify%0A * it under the terms of the GNU Affero General Public License as published by%0A * the Free Software Foundation, either version 3 of the License, or%0A * (at your option) any later version.%0A *%0A * This program is distributed in the hope that it will be useful,%0A * but WITHOUT ANY WARRANTY; without even the implied warranty of%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the%0A * GNU Affero General Public License for more details.%0A *%0A * You should have received a copy of the GNU Affero General Public License%0A * along with this program.  If not, see %3Chttp://www.gnu.org/licenses/%3E.%0A */%0A%0Apackage org.libreplan.importers;%0A%0Aimport java.util.List;%0A%0Aimport org.libreplan.business.orders.entities.Order;%0Aimport org.libreplan.business.workreports.entities.WorkReportType;%0Aimport org.libreplan.importers.jira.Issue;%0A%0A/**%0A * Synchronize the timesheets of order tasks of an existing order with jira%0A * issues.%0A *%0A * A %7B@link WorkReportType%7D with the name %22jira-connector%22 must also be exist%0A * and configured properly prior to start synchronization.%0A *%0A * Jira issues will be retrieved from Jira RESTful web service during%0A * synchronization of order elements%0A *%0A * @author Miciele Ghiorghis %3Cm.ghiorghis@antoniusziekenhuis.nl%3E%0A */%0Apublic interface IJiraTimesheetSynchronizer %7B%0A%0A    /**%0A     * Synchronize jira timesheet with the specified jira %3Ccode%3Eissues%3C/code%3E .%0A     *%0A     *%0A     * Loop through all jira %3Ccode%3Eissues%3C/code%3E and check if timesheet is%0A     * already exist for the specified issue item. If it is, update the%0A     * timesheet with that issue item. If not create new one%0A     *%0A     * @param issues%0A     *            the jira issues%0A     * @param order%0A     *            an existing order%0A     */%0A    void syncJiraTimesheetWithJiraIssues(List%3CIssue%3E issues, Order order);%0A%0A    /**%0A     * returns synchronization info, success or fail info%0A     */%0A    JiraSyncInfo getJiraSyncInfo();%0A%0A%7D%0A

synchronize the timesheets of order-tasks with jira issues