r3359 - in trunk: . lima-business lima-business/src/main/java/org/chorem/lima/business lima-business/src/main/java/org/chorem/lima/business/ejb lima-business/src/main/java/org/chorem/lima/business/ejbinterface lima-business/src/main/java/org/chorem/lima/business/monitorable lima-business/src/main/java/org/chorem/lima/business/utils lima-business/src/test/java/org/chorem/lima/business lima-business-api lima-business-api/src lima-business-api/src/main lima-business-api/src/main/java lima-busine
Author: athimel Date: 2012-04-11 17:59:40 +0200 (Wed, 11 Apr 2012) New Revision: 3359 Url: http://chorem.org/repositories/revision/lima/3359 Log: Create a separated business API module that externalize business service public interfaces Added: trunk/lima-business-api/ trunk/lima-business-api/LICENSE.txt trunk/lima-business-api/README.txt trunk/lima-business-api/changelog.txt trunk/lima-business-api/pom.xml trunk/lima-business-api/src/ trunk/lima-business-api/src/main/ trunk/lima-business-api/src/main/java/ trunk/lima-business-api/src/main/java/org/ trunk/lima-business-api/src/main/java/org/chorem/ trunk/lima-business-api/src/main/java/org/chorem/lima/ trunk/lima-business-api/src/main/java/org/chorem/lima/business/ trunk/lima-business-api/src/main/java/org/chorem/lima/business/LimaException.java trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/AccountService.java trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/AccountServiceLocal.java trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/DocumentService.java trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/DocumentServiceLocal.java trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/EntryBookService.java trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/EntryBookServiceLocal.java trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/ExportService.java trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/ExportServiceLocal.java trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FinancialPeriodService.java trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FinancialPeriodServiceLocal.java trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FinancialStatementService.java trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FinancialStatementServiceLocal.java trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FinancialTransactionService.java trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FinancialTransactionServiceLocal.java trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FiscalPeriodService.java trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FiscalPeriodServiceLocal.java trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/HttpServerService.java trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/HttpServerServiceLocal.java trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/IdentityService.java trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/IdentityServiceLocal.java trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/ImportService.java trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/ImportServiceLocal.java trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/OptionsService.java trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/OptionsServiceLocal.java trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/ReportService.java trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/ReportServiceLocal.java trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/VatStatementService.java trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/VatStatementServiceLocal.java trunk/lima-business-api/src/main/java/org/chorem/lima/business/utils/ trunk/lima-business-api/src/main/java/org/chorem/lima/business/utils/FormatsEnum.java trunk/lima-business-api/src/main/java/org/chorem/lima/business/utils/ImportExportEntityEnum.java Removed: trunk/lima-business/src/main/java/org/chorem/lima/business/LimaException.java trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/AccountService.java trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/AccountServiceLocal.java trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/DocumentService.java trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/DocumentServiceLocal.java trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/EntryBookService.java trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/EntryBookServiceLocal.java trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/ExportService.java trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/ExportServiceLocal.java trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/FinancialPeriodService.java trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/FinancialPeriodServiceLocal.java trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/FinancialStatementService.java trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/FinancialStatementServiceLocal.java trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/FinancialTransactionService.java trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/FinancialTransactionServiceLocal.java trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/FiscalPeriodService.java trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/FiscalPeriodServiceLocal.java trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/HttpServerService.java trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/HttpServerServiceLocal.java trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/IdentityService.java trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/IdentityServiceLocal.java trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/ImportService.java trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/ImportServiceLocal.java trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/OptionsService.java trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/OptionsServiceLocal.java trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/ReportService.java trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/ReportServiceLocal.java trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/VatStatementService.java trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/VatStatementServiceLocal.java trunk/lima-business/src/main/java/org/chorem/lima/business/utils/FormatsEnum.java trunk/lima-business/src/main/java/org/chorem/lima/business/utils/ImportExportEntityEnum.java Modified: trunk/ trunk/lima-business/pom.xml trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/AccountServiceImpl.java trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/DocumentServiceImpl.java trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/EntryBookServiceImpl.java trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ExportServiceImpl.java trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialPeriodServiceImpl.java trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialStatementServiceImpl.java trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialTransactionServiceImpl.java trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FiscalPeriodServiceImpl.java trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/HttpServerServiceImpl.java trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/IdentityServiceImpl.java trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ImportServiceImpl.java trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/OptionsServiceImpl.java trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ReportServiceImpl.java trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/VatStatementServiceImpl.java trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/AccountServiceMonitorable.java trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/DocumentServiceMonitorable.java trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/EntryBookServiceMonitorable.java trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/ExportServiceMonitorable.java trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/FinancialPeriodServiceMonitorable.java trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/FinancialStatementServiceMonitorable.java trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/FinancialTransactionServiceMonitorable.java trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/FiscalPeriodServiceMonitorable.java trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/HttpServerServiceMonitorable.java trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/IdentityServiceMonitorable.java trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/ImportServiceMonitorable.java trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/OptionsServiceMonitorable.java trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/ReportServiceMonitorable.java trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/VatStatementServiceMonitorable.java trunk/lima-business/src/test/java/org/chorem/lima/business/AbstractLimaTest.java trunk/lima-swing/src/main/java/org/chorem/lima/LimaMain.java trunk/lima-swing/src/main/java/org/chorem/lima/ui/account/AccountViewHandler.java trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/AccountComboBoxModel.java trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/EntryBookComboBoxModel.java trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/FinancialPeriodComboBoxModel.java trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/FiscalPeriodComboBoxModel.java trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/LetterComboBoxModel.java trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/SubAccountComboBoxModel.java trunk/lima-swing/src/main/java/org/chorem/lima/ui/entrybook/EntryBookViewHandler.java trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialperiod/FinancialPeriodTable.java trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialstatementreport/FinancialStatementReportTableModel.java trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransaction/FinancialTransactionTableModel.java trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransactionsearch/FinancialTransactionSearchTableModel.java trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransactionsearch/FinancialTransactionSearchViewHandler.java trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransactionunbalanced/FinancialTransactionUnbalancedTableModel.java trunk/lima-swing/src/main/java/org/chorem/lima/ui/fiscalperiod/FiscalPeriodViewHandler.java trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/EntryBooksPane.java trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/FinancialTransactionsPane.java trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/FiscalPeriodsPane.java trunk/lima-swing/src/main/java/org/chorem/lima/ui/identity/IdentityHandler.java trunk/lima-swing/src/main/java/org/chorem/lima/ui/ledger/LedgerViewHandler.java trunk/lima-swing/src/main/java/org/chorem/lima/ui/lettering/LetteringTableModel.java trunk/lima-swing/src/main/java/org/chorem/lima/ui/vatreports/VatReportTableModel.java trunk/pom.xml Property changes on: trunk ___________________________________________________________________ Modified: svn:ignore - *.log target bin .classpath .project *.ipr *.iws *.iml .settings + *.log target bin .classpath .project *.ipr *.iws *.iml .settings .idea Modified: trunk/lima-business/pom.xml =================================================================== --- trunk/lima-business/pom.xml 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/pom.xml 2012-04-11 15:59:40 UTC (rev 3359) @@ -27,6 +27,11 @@ <version>${project.version}</version> </dependency> <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>lima-business-api</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> <groupId>net.sf.opencsv</groupId> <artifactId>opencsv</artifactId> </dependency> Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/LimaException.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/LimaException.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/LimaException.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -1,60 +0,0 @@ -/* - * #%L - * Lima business - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2008 - 2010 CodeLutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this program. If not, see - * <http://www.gnu.org/licenses/gpl-3.0.html>. - * #L% - */ - -package org.chorem.lima.business; - -/** - * Lima exception. - * - * @author chatellier - * @version $Revision$ - * <p/> - * Last update : $Date$ - * By : $Author$ - */ -public class LimaException extends Exception { - - /** serialVersionUID. */ - private static final long serialVersionUID = -6876236663940184462L; - - /** - * Constructs a new exception with the specified detail message. - * - * @param message message - */ - public LimaException(String message) { - super(message); - } - - /** - * Constructs a new exception with the specified detail message and cause. - * - * @param message message - * @param cause cause - */ - public LimaException(String message, Throwable cause) { - super(message, cause); - } -} Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/AccountServiceImpl.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/AccountServiceImpl.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/AccountServiceImpl.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -29,8 +29,8 @@ import org.chorem.lima.business.LimaBusinessException; import org.chorem.lima.business.LimaConfig; import org.chorem.lima.business.LimaException; -import org.chorem.lima.business.ejbinterface.AccountService; -import org.chorem.lima.business.ejbinterface.AccountServiceLocal; +import org.chorem.lima.business.api.AccountService; +import org.chorem.lima.business.api.AccountServiceLocal; import org.chorem.lima.business.utils.AccountComparator; import org.chorem.lima.entity.Account; import org.chorem.lima.entity.AccountDAO; Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/DocumentServiceImpl.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/DocumentServiceImpl.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/DocumentServiceImpl.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -48,12 +48,12 @@ import org.chorem.lima.beans.ReportsDatas; import org.chorem.lima.business.LimaConfig; import org.chorem.lima.business.LimaException; -import org.chorem.lima.business.ejbinterface.DocumentService; -import org.chorem.lima.business.ejbinterface.DocumentServiceLocal; -import org.chorem.lima.business.ejbinterface.FinancialStatementServiceLocal; -import org.chorem.lima.business.ejbinterface.IdentityServiceLocal; -import org.chorem.lima.business.ejbinterface.ReportServiceLocal; -import org.chorem.lima.business.ejbinterface.VatStatementServiceLocal; +import org.chorem.lima.business.api.DocumentService; +import org.chorem.lima.business.api.DocumentServiceLocal; +import org.chorem.lima.business.api.FinancialStatementServiceLocal; +import org.chorem.lima.business.api.IdentityServiceLocal; +import org.chorem.lima.business.api.ReportServiceLocal; +import org.chorem.lima.business.api.VatStatementServiceLocal; import org.chorem.lima.business.utils.DocumentsEnum; import org.chorem.lima.business.utils.EntryComparator; import org.chorem.lima.business.utils.FormatsEnum; Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/EntryBookServiceImpl.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/EntryBookServiceImpl.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/EntryBookServiceImpl.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -36,8 +36,8 @@ import org.chorem.lima.business.LimaBusinessException; import org.chorem.lima.business.LimaConfig; import org.chorem.lima.business.LimaException; -import org.chorem.lima.business.ejbinterface.EntryBookService; -import org.chorem.lima.business.ejbinterface.EntryBookServiceLocal; +import org.chorem.lima.business.api.EntryBookService; +import org.chorem.lima.business.api.EntryBookServiceLocal; import org.chorem.lima.entity.ClosedPeriodicEntryBook; import org.chorem.lima.entity.ClosedPeriodicEntryBookDAO; import org.chorem.lima.entity.ClosedPeriodicEntryBookImpl; Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ExportServiceImpl.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ExportServiceImpl.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ExportServiceImpl.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -29,8 +29,8 @@ import org.apache.commons.lang3.StringUtils; import org.chorem.lima.FinancialStatementWayEnum; import org.chorem.lima.business.LimaException; -import org.chorem.lima.business.ejbinterface.ExportService; -import org.chorem.lima.business.ejbinterface.ExportServiceLocal; +import org.chorem.lima.business.api.ExportService; +import org.chorem.lima.business.api.ExportServiceLocal; import org.chorem.lima.business.utils.ImportExportEntityEnum; import org.chorem.lima.entity.Account; import org.chorem.lima.entity.AccountDAO; Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialPeriodServiceImpl.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialPeriodServiceImpl.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialPeriodServiceImpl.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -28,8 +28,8 @@ import org.chorem.lima.business.AccountingRules; import org.chorem.lima.business.LimaConfig; import org.chorem.lima.business.LimaException; -import org.chorem.lima.business.ejbinterface.FinancialPeriodService; -import org.chorem.lima.business.ejbinterface.FinancialPeriodServiceLocal; +import org.chorem.lima.business.api.FinancialPeriodService; +import org.chorem.lima.business.api.FinancialPeriodServiceLocal; import org.chorem.lima.entity.ClosedPeriodicEntryBook; import org.chorem.lima.entity.ClosedPeriodicEntryBookDAO; import org.chorem.lima.entity.ClosedPeriodicEntryBookImpl; Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialStatementServiceImpl.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialStatementServiceImpl.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialStatementServiceImpl.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -35,9 +35,9 @@ import org.chorem.lima.beans.FinancialStatementDatasImpl; import org.chorem.lima.beans.ReportsDatas; import org.chorem.lima.business.LimaException; -import org.chorem.lima.business.ejbinterface.FinancialStatementService; -import org.chorem.lima.business.ejbinterface.FinancialStatementServiceLocal; -import org.chorem.lima.business.ejbinterface.ReportServiceLocal; +import org.chorem.lima.business.api.FinancialStatementService; +import org.chorem.lima.business.api.FinancialStatementServiceLocal; +import org.chorem.lima.business.api.ReportServiceLocal; import org.chorem.lima.entity.Account; import org.chorem.lima.entity.AccountDAO; import org.chorem.lima.entity.FinancialStatement; Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialTransactionServiceImpl.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialTransactionServiceImpl.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialTransactionServiceImpl.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -30,12 +30,12 @@ import org.chorem.lima.business.AccountingRules; import org.chorem.lima.business.LimaConfig; import org.chorem.lima.business.LimaException; -import org.chorem.lima.business.ejbinterface.EntryBookServiceLocal; -import org.chorem.lima.business.ejbinterface.FinancialPeriodServiceLocal; -import org.chorem.lima.business.ejbinterface.FinancialTransactionService; -import org.chorem.lima.business.ejbinterface.FinancialTransactionServiceLocal; -import org.chorem.lima.business.ejbinterface.OptionsServiceLocal; -import org.chorem.lima.business.ejbinterface.ReportServiceLocal; +import org.chorem.lima.business.api.EntryBookServiceLocal; +import org.chorem.lima.business.api.FinancialPeriodServiceLocal; +import org.chorem.lima.business.api.FinancialTransactionService; +import org.chorem.lima.business.api.FinancialTransactionServiceLocal; +import org.chorem.lima.business.api.OptionsServiceLocal; +import org.chorem.lima.business.api.ReportServiceLocal; import org.chorem.lima.entity.Account; import org.chorem.lima.entity.AccountDAO; import org.chorem.lima.entity.Entry; Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FiscalPeriodServiceImpl.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FiscalPeriodServiceImpl.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FiscalPeriodServiceImpl.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -32,13 +32,13 @@ import org.chorem.lima.business.LimaBusinessException; import org.chorem.lima.business.LimaConfig; import org.chorem.lima.business.LimaException; -import org.chorem.lima.business.ejbinterface.AccountServiceLocal; -import org.chorem.lima.business.ejbinterface.EntryBookServiceLocal; -import org.chorem.lima.business.ejbinterface.FinancialPeriodServiceLocal; -import org.chorem.lima.business.ejbinterface.FinancialTransactionServiceLocal; -import org.chorem.lima.business.ejbinterface.FiscalPeriodService; -import org.chorem.lima.business.ejbinterface.FiscalPeriodServiceLocal; -import org.chorem.lima.business.ejbinterface.ReportServiceLocal; +import org.chorem.lima.business.api.AccountServiceLocal; +import org.chorem.lima.business.api.EntryBookServiceLocal; +import org.chorem.lima.business.api.FinancialPeriodServiceLocal; +import org.chorem.lima.business.api.FinancialTransactionServiceLocal; +import org.chorem.lima.business.api.FiscalPeriodService; +import org.chorem.lima.business.api.FiscalPeriodServiceLocal; +import org.chorem.lima.business.api.ReportServiceLocal; import org.chorem.lima.business.utils.FinancialPeriodComparator; import org.chorem.lima.entity.Account; import org.chorem.lima.entity.AccountImpl; Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/HttpServerServiceImpl.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/HttpServerServiceImpl.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/HttpServerServiceImpl.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -48,9 +48,9 @@ import org.apache.commons.lang3.time.DateUtils; import org.chorem.lima.business.LimaConfig; import org.chorem.lima.business.LimaException; -import org.chorem.lima.business.ejbinterface.DocumentServiceLocal; -import org.chorem.lima.business.ejbinterface.HttpServerService; -import org.chorem.lima.business.ejbinterface.HttpServerServiceLocal; +import org.chorem.lima.business.api.DocumentServiceLocal; +import org.chorem.lima.business.api.HttpServerService; +import org.chorem.lima.business.api.HttpServerServiceLocal; import org.chorem.lima.business.utils.DocumentsEnum; import org.chorem.lima.business.utils.FormatsEnum; import org.eclipse.jetty.server.Server; Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/IdentityServiceImpl.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/IdentityServiceImpl.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/IdentityServiceImpl.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -26,8 +26,8 @@ package org.chorem.lima.business.ejb; import org.chorem.lima.business.LimaException; -import org.chorem.lima.business.ejbinterface.IdentityService; -import org.chorem.lima.business.ejbinterface.IdentityServiceLocal; +import org.chorem.lima.business.api.IdentityService; +import org.chorem.lima.business.api.IdentityServiceLocal; import org.chorem.lima.entity.Identity; import org.chorem.lima.entity.IdentityDAO; import org.chorem.lima.entity.LimaCallaoDAOHelper; Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ImportServiceImpl.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ImportServiceImpl.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ImportServiceImpl.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -54,16 +54,16 @@ import org.chorem.lima.business.LimaBusinessException; import org.chorem.lima.business.LimaConfig; import org.chorem.lima.business.LimaException; -import org.chorem.lima.business.ejbinterface.AccountServiceLocal; -import org.chorem.lima.business.ejbinterface.EntryBookServiceLocal; -import org.chorem.lima.business.ejbinterface.FinancialPeriodServiceLocal; -import org.chorem.lima.business.ejbinterface.FinancialStatementServiceLocal; -import org.chorem.lima.business.ejbinterface.FinancialTransactionServiceLocal; -import org.chorem.lima.business.ejbinterface.FiscalPeriodServiceLocal; -import org.chorem.lima.business.ejbinterface.IdentityServiceLocal; -import org.chorem.lima.business.ejbinterface.ImportService; -import org.chorem.lima.business.ejbinterface.ImportServiceLocal; -import org.chorem.lima.business.ejbinterface.VatStatementServiceLocal; +import org.chorem.lima.business.api.AccountServiceLocal; +import org.chorem.lima.business.api.EntryBookServiceLocal; +import org.chorem.lima.business.api.FinancialPeriodServiceLocal; +import org.chorem.lima.business.api.FinancialStatementServiceLocal; +import org.chorem.lima.business.api.FinancialTransactionServiceLocal; +import org.chorem.lima.business.api.FiscalPeriodServiceLocal; +import org.chorem.lima.business.api.IdentityServiceLocal; +import org.chorem.lima.business.api.ImportService; +import org.chorem.lima.business.api.ImportServiceLocal; +import org.chorem.lima.business.api.VatStatementServiceLocal; import org.chorem.lima.business.utils.AccountEBPComparator; import org.chorem.lima.business.utils.DocumentsEnum; import org.chorem.lima.business.utils.EntryEBPComparator; Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/OptionsServiceImpl.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/OptionsServiceImpl.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/OptionsServiceImpl.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -25,8 +25,8 @@ package org.chorem.lima.business.ejb; import org.chorem.lima.business.LimaConfig; -import org.chorem.lima.business.ejbinterface.OptionsService; -import org.chorem.lima.business.ejbinterface.OptionsServiceLocal; +import org.chorem.lima.business.api.OptionsService; +import org.chorem.lima.business.api.OptionsServiceLocal; import javax.ejb.Stateless; Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ReportServiceImpl.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ReportServiceImpl.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ReportServiceImpl.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -31,10 +31,10 @@ import org.chorem.lima.beans.ReportsDatas; import org.chorem.lima.beans.ReportsDatasImpl; import org.chorem.lima.business.LimaException; -import org.chorem.lima.business.ejbinterface.AccountServiceLocal; -import org.chorem.lima.business.ejbinterface.FinancialPeriodServiceLocal; -import org.chorem.lima.business.ejbinterface.ReportService; -import org.chorem.lima.business.ejbinterface.ReportServiceLocal; +import org.chorem.lima.business.api.AccountServiceLocal; +import org.chorem.lima.business.api.FinancialPeriodServiceLocal; +import org.chorem.lima.business.api.ReportService; +import org.chorem.lima.business.api.ReportServiceLocal; import org.chorem.lima.entity.Account; import org.chorem.lima.entity.AccountDAO; import org.chorem.lima.entity.Entry; Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/VatStatementServiceImpl.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/VatStatementServiceImpl.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/VatStatementServiceImpl.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -33,9 +33,9 @@ import org.chorem.lima.beans.VatStatementDatas; import org.chorem.lima.beans.VatStatementDatasImpl; import org.chorem.lima.business.LimaException; -import org.chorem.lima.business.ejbinterface.ReportServiceLocal; -import org.chorem.lima.business.ejbinterface.VatStatementService; -import org.chorem.lima.business.ejbinterface.VatStatementServiceLocal; +import org.chorem.lima.business.api.ReportServiceLocal; +import org.chorem.lima.business.api.VatStatementService; +import org.chorem.lima.business.api.VatStatementServiceLocal; import org.chorem.lima.entity.Account; import org.chorem.lima.entity.AccountDAO; import org.chorem.lima.entity.LimaCallaoDAOHelper; Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/AccountService.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/AccountService.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/AccountService.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -1,100 +0,0 @@ -/* - * #%L - * Lima business - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2008 - 2012 CodeLutin, Chatellier Eric - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this program. If not, see - * <http://www.gnu.org/licenses/gpl-3.0.html>. - * #L% - */ - -package org.chorem.lima.business.ejbinterface; - -import org.chorem.lima.business.LimaException; -import org.chorem.lima.entity.Account; - -import javax.ejb.Remote; -import java.util.List; - -/** - * Account service. - * - * @author chatellier - * @version $Revision$ - * <p/> - * Last update : $Date$ - * By : $Author$ - */ -@Remote -public interface AccountService { - - /** - * Return account count. - * - * @return account count - * @throws LimaException technical exception - */ - long getAccountCount() throws LimaException; - - List<Account> getAllAccountByProperty(String propertyName, - String value) throws LimaException; - - /** - * Obtain the master account for the given account number. - * - * the master account if the account with the longer account number prefixing the given account number. - * - * Example: for account number 401AB, it could be 4, 40, 401,... - * - * @param accountNumber the account number - * @return the master account number - * @throws LimaException if any pb while loading account - */ - Account getMasterAccount(String accountNumber) throws LimaException; - - Account getAccountByNumber(String number) throws LimaException; - - /** - * Return all account ordered by account name. - * - * @return all account - * @throws LimaException - */ - List<Account> getAllAccounts() throws LimaException; - - List<Account> getAllLeafAccounts() throws LimaException; - - /** - * Create new account. If {@code masterAccount} is not null, {@code account} - * is added in {@code masterAccount}'s subAccounts. - * - * @param account account - * @throws LimaException - */ - Account createAccount(Account account) throws LimaException; - - Account updateAccount(Account account) throws LimaException; - - void removeAccount(Account account) throws LimaException; - - void removeAllAccount() throws LimaException; - - List<Account> getAllChildrenAccounts(Account masterAccount) throws LimaException; - - List<Account> getChildrenAccounts(Account masterAccount) throws LimaException; -} Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/AccountServiceLocal.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/AccountServiceLocal.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/AccountServiceLocal.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -1,48 +0,0 @@ -/* - * #%L - * Lima business - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2008 - 2012 CodeLutin, Chatellier Eric - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this program. If not, see - * <http://www.gnu.org/licenses/gpl-3.0.html>. - * #L% - */ - -package org.chorem.lima.business.ejbinterface; - -import org.chorem.lima.business.LimaException; -import org.chorem.lima.entity.Account; -import org.nuiton.topia.TopiaContext; - -import javax.ejb.Local; - -/** - * Account service. - * - * @author chatellier - * @version $Revision$ - * <p/> - * Last update : $Date$ - * By : $Author$ - */ -@Local -public interface AccountServiceLocal extends AccountService { - - Account createAccountWithTransaction(Account account, TopiaContext topiaContext) throws LimaException; - -} \ No newline at end of file Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/DocumentService.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/DocumentService.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/DocumentService.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -1,55 +0,0 @@ -/* - * #%L - * Lima business - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2008 - 2010 CodeLutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this program. If not, see - * <http://www.gnu.org/licenses/gpl-3.0.html>. - * #L% - */ - -package org.chorem.lima.business.ejbinterface; - -import org.chorem.lima.business.LimaException; -import org.chorem.lima.business.utils.FormatsEnum; - -import javax.ejb.Remote; -import java.util.Date; - -/** - * Interface to create pdf and html docs - * - * @author john - */ - -@Remote -public interface DocumentService { - - void createFinancialStatementsDocuments(Date beginDate, Date endDate, FormatsEnum format) throws LimaException; - - void createLedgerDocuments(Date beginDate, Date endDate, FormatsEnum format) throws LimaException; - - void createEntryBooksDocuments(Date beginDate, Date endDate, FormatsEnum format) throws LimaException; - - void createBalanceDocuments(Date beginDate, Date endDate, FormatsEnum format) throws LimaException; - - void createGeneralEntryBooksDocuments(Date beginDate, Date endDate, FormatsEnum format) throws LimaException; - - void createVatDocuments(Date beginDate, Date endDate, FormatsEnum format, String autocomplete) throws LimaException; - -} Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/DocumentServiceLocal.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/DocumentServiceLocal.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/DocumentServiceLocal.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -1,39 +0,0 @@ -/* - * #%L - * Lima business - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2008 - 2010 CodeLutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this program. If not, see - * <http://www.gnu.org/licenses/gpl-3.0.html>. - * #L% - */ - -package org.chorem.lima.business.ejbinterface; - -import javax.ejb.Local; - -/** - * Interface to create pdf and html docs - * - * @author john - */ - -@Local -public interface DocumentServiceLocal extends DocumentService { - -} Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/EntryBookService.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/EntryBookService.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/EntryBookService.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -1,89 +0,0 @@ -/* - * #%L - * Lima business - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2008 - 2012 CodeLutin, Chatellier Eric - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this program. If not, see - * <http://www.gnu.org/licenses/gpl-3.0.html>. - * #L% - */ - -package org.chorem.lima.business.ejbinterface; - -import org.chorem.lima.business.LimaException; -import org.chorem.lima.entity.EntryBook; - -import javax.ejb.Remote; -import java.util.List; - -/** - * Entry book service. - * - * @author chatellier - * @version $Revision$ - * <p/> - * Last update : $Date$ - * By : $Author$ - */ -@Remote -public interface EntryBookService { - - /** - * Find entry book by code. - * - * @param code entry book code - * @return - * @throws LimaException - */ - EntryBook getEntryBookByCode(String code) throws LimaException; - - /** - * Get all entry book. - * - * @return all entrybook - * @throws LimaException - */ - List<EntryBook> getAllEntryBooks() throws LimaException; - - /** - * Create new entry book. - * - * @param entryBook - * @throws LimaException - */ - EntryBook createEntryBook(EntryBook entryBook) throws LimaException; - - /** - * Permet de modifier un journal. - * - * @param entryBook journal - * @throws LimaException - */ - EntryBook updateEntryBook(EntryBook entryBook) throws LimaException; - - /** - * Permet d'effacer un EntryBook dans la base de données. - * <p/> - * ATTENTION : si un EntryBook est associé avec des entrées, il est alors - * impossible de supprimer celui-ci. - * - * @param entryBook - * @throws LimaException - */ - void removeEntryBook(EntryBook entryBook) throws LimaException; -} Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/EntryBookServiceLocal.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/EntryBookServiceLocal.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/EntryBookServiceLocal.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -1,50 +0,0 @@ -/* - * #%L - * Lima business - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2008 - 2010 CodeLutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this program. If not, see - * <http://www.gnu.org/licenses/gpl-3.0.html>. - * #L% - */ - -package org.chorem.lima.business.ejbinterface; - -import org.chorem.lima.business.LimaException; -import org.chorem.lima.entity.EntryBook; -import org.nuiton.topia.TopiaContext; - -import javax.ejb.Local; - - -/** - * Entry book service. - * - * @author chatellier - * @version $Revision$ - * <p/> - * Last update : $Date$ - * By : $Author$ - */ - -@Local -public interface EntryBookServiceLocal extends EntryBookService { - - EntryBook createEntryBookWithTransaction(EntryBook entryBook, TopiaContext topiaContext) throws LimaException; - -} Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/ExportService.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/ExportService.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/ExportService.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -1,74 +0,0 @@ -/* - * #%L - * Lima business - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2008 - 2010 CodeLutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this program. If not, see - * <http://www.gnu.org/licenses/gpl-3.0.html>. - * #L% - */ - -package org.chorem.lima.business.ejbinterface; - -import org.chorem.lima.business.LimaException; - -import javax.ejb.Remote; - -/** - * Import export service. - * <p/> - * Currently import and export as XML. - * - * @author chatellier - * @version $Revision$ - * <p/> - * Last update : $Date$ - * By : $Author$ - */ -@Remote -public interface ExportService { - - - /** - * Get database export as CSV; - * - * @return export as byte array - * @throws LimaException - */ - String exportAsCSV() throws LimaException; - - /** export entrybook chart as CSV. */ - String exportEntryBookChartAsCSV() throws LimaException; - - /** export financialstatement chart as CSV. */ - String exportFinancialStatementChartAsCSV() throws LimaException; - - /** export vatstatement chart as CSV */ - String exportVatStatementChartAsCSV() throws LimaException; - - /** export accounts chart as CSV. */ - String exportAccountsChartAsCSV() throws LimaException; - - /** export entries as EBP */ - String exportEntriesAsEBP() throws LimaException; - - /** export accounts as EBP */ - String exportAccountsAsEBP() throws LimaException; - - -} Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/ExportServiceLocal.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/ExportServiceLocal.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/ExportServiceLocal.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -1,44 +0,0 @@ -/* - * #%L - * Lima business - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2008 - 2010 CodeLutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this program. If not, see - * <http://www.gnu.org/licenses/gpl-3.0.html>. - * #L% - */ - -package org.chorem.lima.business.ejbinterface; - -import javax.ejb.Local; - -/** - * Import export service. - * <p/> - * Currently import and export as XML. - * - * @author chatellier - * @version $Revision$ - * <p/> - * Last update : $Date$ - * By : $Author$ - */ -@Local -public interface ExportServiceLocal extends ExportService { - -} Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/FinancialPeriodService.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/FinancialPeriodService.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/FinancialPeriodService.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -1,65 +0,0 @@ -/* - * #%L - * Lima business - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2008 - 2010 CodeLutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this program. If not, see - * <http://www.gnu.org/licenses/gpl-3.0.html>. - * #L% - */ - -package org.chorem.lima.business.ejbinterface; - -import org.chorem.lima.business.LimaException; -import org.chorem.lima.entity.ClosedPeriodicEntryBook; -import org.chorem.lima.entity.EntryBook; -import org.chorem.lima.entity.FinancialPeriod; - -import javax.ejb.Remote; -import java.util.Date; -import java.util.List; - -/** - * Financial period service. - * - * @author chatellier - * @version $Revision$ - * <p/> - * Last update : $Date$ - * By : $Author$ - */ - -@Remote -public interface FinancialPeriodService { - - List<FinancialPeriod> getUnblockedFinancialPeriods() throws LimaException; - - void createFinancialPeriods(List<FinancialPeriod> financialPeriods) throws LimaException; - - ClosedPeriodicEntryBook getClosedPeriodicEntryBook(EntryBook entryBook, - FinancialPeriod financialPeriod) throws LimaException; - - List<ClosedPeriodicEntryBook> getAllClosedPeriodicEntryBooksFromUnblockedFiscalPeriod() throws LimaException; - - void blockClosedPeriodicEntryBook(ClosedPeriodicEntryBook closedPeriodicEntryBook) throws LimaException; - - List<FinancialPeriod> getAllFinancialPeriods() throws LimaException; - - List<FinancialPeriod> getFinancialPeriods(Date beginDate, - Date endDate) throws LimaException; -} Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/FinancialPeriodServiceLocal.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/FinancialPeriodServiceLocal.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/FinancialPeriodServiceLocal.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -1,57 +0,0 @@ -/* - * #%L - * Lima business - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2008 - 2010 CodeLutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this program. If not, see - * <http://www.gnu.org/licenses/gpl-3.0.html>. - * #L% - */ - -package org.chorem.lima.business.ejbinterface; - -import org.chorem.lima.business.LimaException; -import org.chorem.lima.entity.ClosedPeriodicEntryBook; -import org.chorem.lima.entity.FinancialPeriod; -import org.nuiton.topia.TopiaContext; - -import javax.ejb.Local; -import java.util.List; - - -/** - * Financial period service. - * - * @author chatellier - * @version $Revision$ - * <p/> - * Last update : $Date$ - * By : $Author$ - */ - -@Local -public interface FinancialPeriodServiceLocal extends FinancialPeriodService { - - void createFinancialPeriodsWithTransaction(List<FinancialPeriod> financialPeriods, - TopiaContext topiaContext) throws LimaException; - - void blockClosedPeriodicEntryBookWithTransaction(ClosedPeriodicEntryBook closedPeriodicEntryBook, - TopiaContext topiaContext) throws LimaException; - - -} Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/FinancialStatementService.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/FinancialStatementService.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/FinancialStatementService.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -1,61 +0,0 @@ -/* - * #%L - * Lima business - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2008 - 2010 CodeLutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this program. If not, see - * <http://www.gnu.org/licenses/gpl-3.0.html>. - * #L% - */ - -package org.chorem.lima.business.ejbinterface; - -import org.chorem.lima.beans.FinancialStatementAmounts; -import org.chorem.lima.business.LimaException; -import org.chorem.lima.entity.FinancialStatement; - -import javax.ejb.Remote; -import java.util.Date; -import java.util.List; - -@Remote -public interface FinancialStatementService { - - - void createFinancialStatement(FinancialStatement masterFinancialStatement, - FinancialStatement financialStatement) throws LimaException; - - void updateFinancialStatement(FinancialStatement financialStatement) throws LimaException; - - void removeFinancialStatement(FinancialStatement financialStatement) throws LimaException; - - void removeAllFinancialStatement() throws LimaException; - - List<FinancialStatement> getAllFinancialStatements() throws LimaException; - - List<FinancialStatement> getChildrenFinancialStatement(FinancialStatement financialStatement) throws LimaException; - - List<FinancialStatement> getAllChildrenFinancialStatement(FinancialStatement financialStatement, - List<FinancialStatement> financialStatements) throws LimaException; - - List<FinancialStatementAmounts> financialStatementReport(Date selectedBeginDate, - Date selectedEndDate) throws LimaException; - - String checkFinancialStatementChart() throws LimaException; - -} Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/FinancialStatementServiceLocal.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/FinancialStatementServiceLocal.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/FinancialStatementServiceLocal.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -1,42 +0,0 @@ -/* - * #%L - * Lima business - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2008 - 2010 CodeLutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this program. If not, see - * <http://www.gnu.org/licenses/gpl-3.0.html>. - * #L% - */ - -package org.chorem.lima.business.ejbinterface; - -import org.chorem.lima.business.LimaException; -import org.chorem.lima.entity.FinancialStatement; -import org.nuiton.topia.TopiaContext; - -import javax.ejb.Local; - -@Local -public interface FinancialStatementServiceLocal extends FinancialStatementService { - - void createFinancialStatementWithTransaction(FinancialStatement masterFinancialStatement, - FinancialStatement financialStatement, - TopiaContext topiaContext) throws LimaException; - - -} Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/FinancialTransactionService.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/FinancialTransactionService.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/FinancialTransactionService.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -1,93 +0,0 @@ -/* - * #%L - * Lima business - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2008 - 2010 CodeLutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this program. If not, see - * <http://www.gnu.org/licenses/gpl-3.0.html>. - * #L% - */ - -package org.chorem.lima.business.ejbinterface; - -import org.chorem.lima.beans.FinancialTransactionSearch; -import org.chorem.lima.business.LimaException; -import org.chorem.lima.entity.Entry; -import org.chorem.lima.entity.EntryBook; -import org.chorem.lima.entity.FinancialPeriod; -import org.chorem.lima.entity.FinancialTransaction; -import org.chorem.lima.entity.FiscalPeriod; -import org.chorem.lima.entity.Letter; - -import javax.ejb.Remote; -import java.util.Date; -import java.util.List; - -/** - * Transaction service. - * - * @author chatellier - * @version $Revision$ - * <p/> - * Last update : $Date$ - * By : $Author$ - */ - -@Remote -public interface FinancialTransactionService { - - - FinancialTransaction createFinancialTransaction(FinancialTransaction financialtransaction) throws LimaException; - - void updateFinancialTransaction(FinancialTransaction financialtransaction) throws LimaException; - - void removeFinancialTransaction(FinancialTransaction financialtransaction) throws LimaException; - - List<FinancialTransaction> getAllFinancialTransactionsForFinancialPeriod(FinancialPeriod period) throws LimaException; - - List<FinancialTransaction> getAllFinancialTransactionsFromDateToDate(Date beginDate, - Date endDate) throws LimaException; - - List<FinancialTransaction> getAllFinancialTransactionsForEntryBookAndFinancialPeriod(EntryBook entryBook, - FinancialPeriod period) throws LimaException; - - List<FinancialTransaction> getAllInexactFinancialTransactions(FiscalPeriod fiscalPeriod) throws LimaException; - - List<FinancialTransaction> getAllFinancialTransactionsBalanced(FiscalPeriod fiscalPeriod) throws LimaException; - - List<Object> searchFinancialTransaction(FinancialTransactionSearch financialTransactionSearch) throws LimaException; - - Entry createEntry(Entry entry) throws LimaException; - - void updateEntry(Entry entry) throws LimaException; - - void removeEntry(Entry entry) throws LimaException; - - Letter getNewLetter() throws LimaException; - - void createLetter(Letter letter) throws LimaException; - - void removeLetter(Letter letter) throws LimaException; - - List<Letter> getAllLetters() throws LimaException; - - void setEntryLetter(Entry entry, Letter letter) throws LimaException; - - void removeEntryLetter(Entry entry) throws LimaException; - -} Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/FinancialTransactionServiceLocal.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/FinancialTransactionServiceLocal.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/FinancialTransactionServiceLocal.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -1,57 +0,0 @@ -/* - * #%L - * Lima business - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2008 - 2010 CodeLutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this program. If not, see - * <http://www.gnu.org/licenses/gpl-3.0.html>. - * #L% - */ - -package org.chorem.lima.business.ejbinterface; - -import org.chorem.lima.business.LimaException; -import org.chorem.lima.entity.Entry; -import org.chorem.lima.entity.FinancialTransaction; -import org.nuiton.topia.TopiaContext; - -import javax.ejb.Local; - -/** - * Transaction service. - * - * @author chatellier - * @version $Revision$ - * <p/> - * Last update : $Date$ - * By : $Author$ - */ - -@Local -public interface FinancialTransactionServiceLocal extends FinancialTransactionService { - - FinancialTransaction createFinancialTransactionWithTransaction(FinancialTransaction financialtransaction, - TopiaContext topiaContext) throws LimaException; - - void updateFinancialTransactionWithTransaction(FinancialTransaction financialtransaction, - TopiaContext topiaContext) throws LimaException; - - Entry createEntryWithTransaction(Entry entry, TopiaContext topiaContext) throws LimaException; - - -} Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/FiscalPeriodService.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/FiscalPeriodService.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/FiscalPeriodService.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -1,62 +0,0 @@ -/* - * #%L - * Lima business - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2008 - 2010 CodeLutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this program. If not, see - * <http://www.gnu.org/licenses/gpl-3.0.html>. - * #L% - */ - -package org.chorem.lima.business.ejbinterface; - -import org.chorem.lima.business.LimaException; -import org.chorem.lima.entity.EntryBook; -import org.chorem.lima.entity.FiscalPeriod; - -import javax.ejb.Remote; -import java.util.List; - -/** - * Fiscal period service. - * - * @author chatellier - * @version $Revision$ - * <p/> - * Last update : $Date$ - * By : $Author$ - */ -@Remote -public interface FiscalPeriodService { - - List<FiscalPeriod> getAllFiscalPeriods() throws LimaException; - - List<FiscalPeriod> getAllBlockedFiscalPeriods() throws LimaException; - - List<FiscalPeriod> getAllUnblockedFiscalPeriods() throws LimaException; - - FiscalPeriod getLastFiscalPeriod() throws LimaException; - - FiscalPeriod createFiscalPeriod(FiscalPeriod fiscalPeriod) throws LimaException; - - FiscalPeriod blockFiscalPeriod(FiscalPeriod fiscalPeriod) throws LimaException; - - void addRetainedEarnings(FiscalPeriod fiscalPeriod, - boolean newyear, - EntryBook entryBook) throws LimaException; -} Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/FiscalPeriodServiceLocal.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/FiscalPeriodServiceLocal.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/FiscalPeriodServiceLocal.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -1,50 +0,0 @@ -/* - * #%L - * Lima business - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2008 - 2010 CodeLutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this program. If not, see - * <http://www.gnu.org/licenses/gpl-3.0.html>. - * #L% - */ - -package org.chorem.lima.business.ejbinterface; - -import org.chorem.lima.business.LimaException; -import org.chorem.lima.entity.FiscalPeriod; -import org.nuiton.topia.TopiaContext; - -import javax.ejb.Local; - -/** - * Fiscal period service. - * - * @author chatellier - * @version $Revision$ - * <p/> - * Last update : $Date$ - * By : $Author$ - */ -@Local -public interface FiscalPeriodServiceLocal extends FiscalPeriodService { - - FiscalPeriod createFiscalPeriodWithTransaction(FiscalPeriod fiscalPeriod, - TopiaContext topiaContext) throws LimaException; - - -} Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/HttpServerService.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/HttpServerService.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/HttpServerService.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -1,37 +0,0 @@ -/* - * #%L - * Lima business - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2008 - 2010 CodeLutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this program. If not, see - * <http://www.gnu.org/licenses/gpl-3.0.html>. - * #L% - */ - -package org.chorem.lima.business.ejbinterface; - -import javax.ejb.Remote; - -@Remote -public interface HttpServerService { - - void start(); - - int getHttpPort(); - -} Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/HttpServerServiceLocal.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/HttpServerServiceLocal.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/HttpServerServiceLocal.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -1,33 +0,0 @@ -/* - * #%L - * Lima business - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2008 - 2010 CodeLutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this program. If not, see - * <http://www.gnu.org/licenses/gpl-3.0.html>. - * #L% - */ - -package org.chorem.lima.business.ejbinterface; - -import javax.ejb.Local; - -@Local -public interface HttpServerServiceLocal extends HttpServerService { - -} Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/IdentityService.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/IdentityService.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/IdentityService.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -1,40 +0,0 @@ -/* - * #%L - * Lima business - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2008 - 2010 CodeLutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this program. If not, see - * <http://www.gnu.org/licenses/gpl-3.0.html>. - * #L% - */ - -package org.chorem.lima.business.ejbinterface; - -import org.chorem.lima.business.LimaException; -import org.chorem.lima.entity.Identity; - -import javax.ejb.Remote; - -@Remote -public interface IdentityService { - - Identity getIdentity() throws LimaException; - - void updateIdentity(Identity identity) throws LimaException; - -} Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/IdentityServiceLocal.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/IdentityServiceLocal.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/IdentityServiceLocal.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -1,42 +0,0 @@ -/* - * #%L - * Lima business - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2008 - 2010 CodeLutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this program. If not, see - * <http://www.gnu.org/licenses/gpl-3.0.html>. - * #L% - */ - -package org.chorem.lima.business.ejbinterface; - -import org.chorem.lima.business.LimaException; -import org.chorem.lima.entity.Identity; -import org.nuiton.topia.TopiaContext; - -import javax.ejb.Local; - -@Local -public interface IdentityServiceLocal extends IdentityService { - - void updateIdentityWithTransaction(Identity identity, - TopiaContext topiaContext) throws LimaException; - - Identity getIdentityWithTransaction(TopiaContext topiaContext) throws LimaException; - -} Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/ImportService.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/ImportService.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/ImportService.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -1,87 +0,0 @@ -/* - * #%L - * Lima business - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2008 - 2012 CodeLutin, Chatellier Eric - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this program. If not, see - * <http://www.gnu.org/licenses/gpl-3.0.html>. - * #L% - */ - -package org.chorem.lima.business.ejbinterface; - -import org.chorem.lima.business.LimaException; -import org.chorem.lima.business.utils.ImportExportEntityEnum; - -import javax.ejb.Remote; - -/** - * Import export service. - * Currently import and export as CSV and EBP. - */ -@Remote -public interface ImportService { - - /** - * Import accounts as EBP import. - * - * @param data import file content as string (remote service can't take File) - * @return result log - * @throws LimaException - */ - String importAccountsChartFromEbp(String data) throws LimaException; - - /** - * Import entries as EBP import. - * - * @param data import file content as string (remote service can't take File) - * @return result log - * @throws LimaException - */ - String importEntriesFromEbp(String data) throws LimaException; - - /** - * Import data as lima CSV import. - * - * Read first line to detect file type and call {@link #importAsCSV(String, ImportExportEntityEnum)}. - * - * @param data import file content as string (remote service can't take File) - * @return result log - * @throws LimaException - */ - String importAllAsCSV(String data) throws LimaException; - - /** - * Import content as CSV depending on import type. - * - * @param data import file content as string (remote service can't take File) - * @param importExportEntityEnum import type - * @return result log - * @throws LimaException - */ - String importAsCSV(String data, - ImportExportEntityEnum importExportEntityEnum) throws LimaException; - - /** - * @deprecated import file (local, can't be used in remote mode) - * and wrong place for this method - */ - String importAsPDF(String data, - ImportExportEntityEnum importExportEntityEnum, - boolean saveMode) throws LimaException; -} Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/ImportServiceLocal.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/ImportServiceLocal.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/ImportServiceLocal.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -1,44 +0,0 @@ -/* - * #%L - * Lima business - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2008 - 2010 CodeLutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this program. If not, see - * <http://www.gnu.org/licenses/gpl-3.0.html>. - * #L% - */ - -package org.chorem.lima.business.ejbinterface; - -import javax.ejb.Local; - -/** - * Import export service. - * <p/> - * Currently import and export as XML. - * - * @author chatellier - * @version $Revision$ - * <p/> - * Last update : $Date$ - * By : $Author$ - */ -@Local -public interface ImportServiceLocal extends ImportService { - -} Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/OptionsService.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/OptionsService.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/OptionsService.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -1,57 +0,0 @@ -/* - * #%L - * Lima :: business - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2008 - 2011 CodeLutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this program. If not, see - * <http://www.gnu.org/licenses/gpl-3.0.html>. - * #L% - */ -package org.chorem.lima.business.ejbinterface; - -import javax.ejb.Remote; - -/** - * Service de report des certaines configurations du swing dans business - * <p/> - * Actuellement : - * <ul> - * <li>scale</li> - * </ul> - * - * @author salaun - */ - -@Remote -public interface OptionsService { - - /** - * Sets the swing scale to the business scale - * - * @param scale scale - */ - void setScale(String scale); - - /** - * Gets the business scale - * - * @return scale - */ - int getScale(); - -} Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/OptionsServiceLocal.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/OptionsServiceLocal.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/OptionsServiceLocal.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -1,32 +0,0 @@ -/* - * #%L - * Lima :: business - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2008 - 2011 CodeLutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this program. If not, see - * <http://www.gnu.org/licenses/gpl-3.0.html>. - * #L% - */ -package org.chorem.lima.business.ejbinterface; - -import javax.ejb.Local; - -@Local -public interface OptionsServiceLocal extends OptionsService { - -} Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/ReportService.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/ReportService.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/ReportService.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -1,150 +0,0 @@ -/* - * #%L - * Lima business - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2008 - 2010 CodeLutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this program. If not, see - * <http://www.gnu.org/licenses/gpl-3.0.html>. - * #L% - */ - -package org.chorem.lima.business.ejbinterface; - -import org.chorem.lima.beans.BalanceTrial; -import org.chorem.lima.beans.ReportsDatas; -import org.chorem.lima.business.LimaException; -import org.chorem.lima.entity.Account; -import org.chorem.lima.entity.EntryBook; -import org.chorem.lima.entity.FiscalPeriod; -import org.nuiton.topia.TopiaContext; - -import javax.ejb.Remote; -import java.util.Date; -import java.util.List; - -/** - * Service de generation des rapports. - * <p/> - * Actuellement: - * <ul> - * <li>Balance</li> - * <li>Bilan</li> - * <li>TVA</li> - * </ul> - * - * @author chatellier - * @version $Revision$ - * <p/> - * Last update : $Date$ - * By : $Author$ - */ - -@Remote -public interface ReportService { - - /** - * Generation de la balance. - * - * @param beginDate - * @param endDate - * @param selectedAccounts - * @param getEntries - * @param movementedFilter - * @return la balance - * @throws LimaException - */ - BalanceTrial generateBalanceTrial(Date beginDate, - Date endDate, - String selectedAccounts, - Boolean getEntries, - Boolean movementedFilter) throws LimaException; - - /** - * Generation du grand-livre. - * - * @param beginDate - * @param endDate - * @param selectedAccounts - * @param movementedFilter - * @return - * @throws LimaException - */ - BalanceTrial generateLedger(Date beginDate, - Date endDate, - String selectedAccounts, - Boolean movementedFilter) throws LimaException; - - - /** - * Generation du rapports des comptes. - * - * @param account - * @param thirdPartAccountsMode - * @param beginDate - * @param endDate - * @return - * @throws LimaException - */ - ReportsDatas generateAccountsReports(Account account, - Boolean thirdPartAccountsMode, - Date beginDate, - Date endDate) throws LimaException; - - - /** - * Calculate all credit, debit and solde amounts for the balance. - * <p/> - * Get all entries if true - * - * @param account - * @param beginDate - * @param endDate - * @param getEntries - * @param topiaContext - * @return - * @throws LimaException - */ - ReportsDatas generateSubAccountBalanceWithTransaction(Account account, - Date beginDate, - Date endDate, - Boolean getEntries, - TopiaContext topiaContext) throws LimaException; - - /** - * Generation du rapports des journaux. - * - * @param entryBook - * @param beginDate - * @param endDate - * @return - * @throws LimaException - */ - ReportsDatas generateEntryBooksReports(EntryBook entryBook, - Date beginDate, - Date endDate) throws LimaException; - - /** - * Generate VAT. - * - * @param fiscalPeriod - * @return - * @throws LimaException - */ - List<Object> generateVat(FiscalPeriod fiscalPeriod) throws LimaException; - -} Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/ReportServiceLocal.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/ReportServiceLocal.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/ReportServiceLocal.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -1,62 +0,0 @@ -/* - * #%L - * Lima business - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2008 - 2010 CodeLutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this program. If not, see - * <http://www.gnu.org/licenses/gpl-3.0.html>. - * #L% - */ - -package org.chorem.lima.business.ejbinterface; - -import org.chorem.lima.beans.ReportsDatas; -import org.chorem.lima.business.LimaException; -import org.chorem.lima.entity.Account; -import org.nuiton.topia.TopiaContext; - -import javax.ejb.Local; -import java.util.Date; - - -/** - * Service de generation des rapports. - * <p/> - * Actuellement: - * <ul> - * <li>Balance</li> - * <li>Bilan</li> - * </ul> - * - * @author chatellier - * @version $Revision$ - * <p/> - * Last update : $Date$ - * By : $Author$ - */ - -@Local -public interface ReportServiceLocal extends ReportService { - - ReportsDatas generateAccountReportsWithTransaction(Account account, - Boolean thirdPartAccountsMode, - Date beginDate, - Date endDate, - TopiaContext topiaContext) throws LimaException; - -} Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/VatStatementService.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/VatStatementService.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/VatStatementService.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -1,64 +0,0 @@ -/* - * #%L - * Lima :: business - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2008 - 2011 CodeLutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this program. If not, see - * <http://www.gnu.org/licenses/gpl-3.0.html>. - * #L% - */ -package org.chorem.lima.business.ejbinterface; - -import org.chorem.lima.beans.VatStatementAmounts; -import org.chorem.lima.business.LimaException; -import org.chorem.lima.entity.VatStatement; - -import javax.ejb.Remote; -import java.util.Date; -import java.util.List; - -@Remote -public interface VatStatementService { - - void createVatStatement(VatStatement masterVatStatement, - VatStatement vatStatement) throws LimaException; - - List<VatStatement> getAllVatStatements() throws LimaException; - - List<VatStatement> getAllChildrenVatStatement(VatStatement vatStatement, - List<VatStatement> result) throws LimaException; - - List<VatStatement> getChildrenVatStatement(VatStatement masterVatStatement) throws LimaException; - - void updateVatStatement(VatStatement vatStatement) throws LimaException; - - VatStatementAmounts vatStatementAmounts(VatStatement vatStatement, - Date selectedBeginDate, - Date selectedEndDate) throws LimaException; - - VatStatement findVatStatementByString(String label) throws LimaException; - - List<VatStatementAmounts> vatStatementReport(Date beginDate, - Date endDate) throws LimaException; - - void removeAllVatStatement() throws LimaException; - - void removeVatStatement(VatStatement vatStatement) throws LimaException; - - -} \ No newline at end of file Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/VatStatementServiceLocal.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/VatStatementServiceLocal.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/VatStatementServiceLocal.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -1,54 +0,0 @@ -/* - * #%L - * Lima :: business - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2008 - 2011 CodeLutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this program. If not, see - * <http://www.gnu.org/licenses/gpl-3.0.html>. - * #L% - */ -package org.chorem.lima.business.ejbinterface; - -import org.chorem.lima.beans.VatStatementAmounts; -import org.chorem.lima.beans.VatStatementDatas; -import org.chorem.lima.business.LimaException; -import org.chorem.lima.entity.VatStatement; -import org.nuiton.topia.TopiaContext; - -import javax.ejb.Local; -import java.util.Date; - -@Local -public interface VatStatementServiceLocal extends VatStatementService { - - void createVatStatementWithTransaction( - VatStatement masterVatStatement, VatStatement vatStatement, - TopiaContext transaction) throws LimaException; - - VatStatementAmounts vatStatementAmounts(VatStatement vatStatement, - Date selectedBeginDate, - Date selectedEndDate, - TopiaContext topiacontext) throws LimaException; - - VatStatementDatas vatStatementReport(VatStatement vatStatement, - Date selectedBeginDate, - Date selectedEndDate, - VatStatementDatas result, - TopiaContext topiaContext) throws LimaException; - -} Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/AccountServiceMonitorable.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/AccountServiceMonitorable.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/AccountServiceMonitorable.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -26,7 +26,7 @@ package org.chorem.lima.business.monitorable; import org.chorem.lima.business.ServiceMonitorable; -import org.chorem.lima.business.ejbinterface.AccountService; +import org.chorem.lima.business.api.AccountService; public interface AccountServiceMonitorable extends AccountService, ServiceMonitorable { Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/DocumentServiceMonitorable.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/DocumentServiceMonitorable.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/DocumentServiceMonitorable.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -26,7 +26,7 @@ package org.chorem.lima.business.monitorable; import org.chorem.lima.business.ServiceMonitorable; -import org.chorem.lima.business.ejbinterface.DocumentService; +import org.chorem.lima.business.api.DocumentService; public interface DocumentServiceMonitorable extends DocumentService, ServiceMonitorable { Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/EntryBookServiceMonitorable.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/EntryBookServiceMonitorable.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/EntryBookServiceMonitorable.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -26,7 +26,7 @@ package org.chorem.lima.business.monitorable; import org.chorem.lima.business.ServiceMonitorable; -import org.chorem.lima.business.ejbinterface.EntryBookService; +import org.chorem.lima.business.api.EntryBookService; public interface EntryBookServiceMonitorable extends EntryBookService, ServiceMonitorable { Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/ExportServiceMonitorable.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/ExportServiceMonitorable.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/ExportServiceMonitorable.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -26,7 +26,7 @@ package org.chorem.lima.business.monitorable; import org.chorem.lima.business.ServiceMonitorable; -import org.chorem.lima.business.ejbinterface.ExportService; +import org.chorem.lima.business.api.ExportService; public interface ExportServiceMonitorable extends ExportService, ServiceMonitorable { Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/FinancialPeriodServiceMonitorable.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/FinancialPeriodServiceMonitorable.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/FinancialPeriodServiceMonitorable.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -26,7 +26,7 @@ package org.chorem.lima.business.monitorable; import org.chorem.lima.business.ServiceMonitorable; -import org.chorem.lima.business.ejbinterface.FinancialPeriodService; +import org.chorem.lima.business.api.FinancialPeriodService; public interface FinancialPeriodServiceMonitorable extends FinancialPeriodService, ServiceMonitorable { Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/FinancialStatementServiceMonitorable.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/FinancialStatementServiceMonitorable.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/FinancialStatementServiceMonitorable.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -26,7 +26,7 @@ package org.chorem.lima.business.monitorable; import org.chorem.lima.business.ServiceMonitorable; -import org.chorem.lima.business.ejbinterface.FinancialStatementService; +import org.chorem.lima.business.api.FinancialStatementService; public interface FinancialStatementServiceMonitorable extends FinancialStatementService, ServiceMonitorable { Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/FinancialTransactionServiceMonitorable.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/FinancialTransactionServiceMonitorable.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/FinancialTransactionServiceMonitorable.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -26,7 +26,7 @@ package org.chorem.lima.business.monitorable; import org.chorem.lima.business.ServiceMonitorable; -import org.chorem.lima.business.ejbinterface.FinancialTransactionService; +import org.chorem.lima.business.api.FinancialTransactionService; public interface FinancialTransactionServiceMonitorable extends FinancialTransactionService, ServiceMonitorable { Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/FiscalPeriodServiceMonitorable.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/FiscalPeriodServiceMonitorable.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/FiscalPeriodServiceMonitorable.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -26,7 +26,7 @@ package org.chorem.lima.business.monitorable; import org.chorem.lima.business.ServiceMonitorable; -import org.chorem.lima.business.ejbinterface.FiscalPeriodService; +import org.chorem.lima.business.api.FiscalPeriodService; public interface FiscalPeriodServiceMonitorable extends FiscalPeriodService, ServiceMonitorable { Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/HttpServerServiceMonitorable.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/HttpServerServiceMonitorable.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/HttpServerServiceMonitorable.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -26,7 +26,7 @@ package org.chorem.lima.business.monitorable; import org.chorem.lima.business.ServiceMonitorable; -import org.chorem.lima.business.ejbinterface.HttpServerService; +import org.chorem.lima.business.api.HttpServerService; public interface HttpServerServiceMonitorable extends HttpServerService, ServiceMonitorable { Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/IdentityServiceMonitorable.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/IdentityServiceMonitorable.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/IdentityServiceMonitorable.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -26,7 +26,7 @@ package org.chorem.lima.business.monitorable; import org.chorem.lima.business.ServiceMonitorable; -import org.chorem.lima.business.ejbinterface.IdentityService; +import org.chorem.lima.business.api.IdentityService; public interface IdentityServiceMonitorable extends IdentityService, ServiceMonitorable { Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/ImportServiceMonitorable.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/ImportServiceMonitorable.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/ImportServiceMonitorable.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -26,7 +26,7 @@ package org.chorem.lima.business.monitorable; import org.chorem.lima.business.ServiceMonitorable; -import org.chorem.lima.business.ejbinterface.ImportService; +import org.chorem.lima.business.api.ImportService; public interface ImportServiceMonitorable extends ImportService, ServiceMonitorable { Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/OptionsServiceMonitorable.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/OptionsServiceMonitorable.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/OptionsServiceMonitorable.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -22,11 +22,11 @@ * <http://www.gnu.org/licenses/gpl-3.0.html>. * #L% */ -package org.chorem.lima.business.monitorable; - +package org.chorem.lima.business.monitorable; + import org.chorem.lima.business.ServiceMonitorable; -import org.chorem.lima.business.ejbinterface.OptionsService; - -public interface OptionsServiceMonitorable extends OptionsService, ServiceMonitorable { - -} +import org.chorem.lima.business.api.OptionsService; + +public interface OptionsServiceMonitorable extends OptionsService, ServiceMonitorable { + +} Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/ReportServiceMonitorable.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/ReportServiceMonitorable.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/ReportServiceMonitorable.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -26,7 +26,7 @@ package org.chorem.lima.business.monitorable; import org.chorem.lima.business.ServiceMonitorable; -import org.chorem.lima.business.ejbinterface.ReportService; +import org.chorem.lima.business.api.ReportService; public interface ReportServiceMonitorable extends ReportService, ServiceMonitorable { Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/VatStatementServiceMonitorable.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/VatStatementServiceMonitorable.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/VatStatementServiceMonitorable.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -25,7 +25,7 @@ package org.chorem.lima.business.monitorable; import org.chorem.lima.business.ServiceMonitorable; -import org.chorem.lima.business.ejbinterface.VatStatementService; +import org.chorem.lima.business.api.VatStatementService; public interface VatStatementServiceMonitorable extends VatStatementService, ServiceMonitorable { Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/utils/FormatsEnum.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/utils/FormatsEnum.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/utils/FormatsEnum.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -1,70 +0,0 @@ -/* - * #%L - * Lima business - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2008 - 2010 CodeLutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this program. If not, see - * <http://www.gnu.org/licenses/gpl-3.0.html>. - * #L% - */ - -package org.chorem.lima.business.utils; - -public enum FormatsEnum { - - HTML(".html", "text/html", "Page Html"), - PDF(".pdf", "application/pdf", "Document PDF"); - - private final String extension; - - private final String mimeType; - - private final String description; - - private FormatsEnum(String extension, String mimeType, String description) { - this.extension = extension; - this.mimeType = mimeType; - this.description = description; - } - - public String getExtension() { - return extension; - } - - public String getMimeType() { - return mimeType; - } - - public String getDescription() { - return description; - } - - public static FormatsEnum valueOfExtension(String extension) { - FormatsEnum value = null; - - for (FormatsEnum formatsEnum : FormatsEnum.values()) { - if (extension.equals(formatsEnum.getExtension())) { - value = formatsEnum; - break; - } - } - return value; - } - - -} Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/utils/ImportExportEntityEnum.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/utils/ImportExportEntityEnum.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/utils/ImportExportEntityEnum.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -1,64 +0,0 @@ -/* - * #%L - * Lima business - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2008 - 2010 CodeLutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this program. If not, see - * <http://www.gnu.org/licenses/gpl-3.0.html>. - * #L% - */ - -package org.chorem.lima.business.utils; - -public enum ImportExportEntityEnum { - - ACCOUNT("ACCN"), - ENTRYBOOK("ENBK"), - FINANCIALSTATEMENT("FNST"), - FISCALPERIOD("FSCP"), - CLOSEDPERIODICENTRYBOOK("CPEB"), - FINANCIALTRANSACTION("FTRC"), - ENTRY("NTRY"), - VATSTATEMENT("VAT"), - IDENTITY("IDNT"), - VATPDF("VATPDF"); - - private final String label; - - ImportExportEntityEnum(String label) { - this.label = label; - } - - public String getLabel() { - return label; - } - - public static ImportExportEntityEnum valueOfLabel(String label) { - ImportExportEntityEnum value = null; - - for (ImportExportEntityEnum importExportEntityEnum : ImportExportEntityEnum.values()) { - if (label.equals(importExportEntityEnum.label)) { - value = importExportEntityEnum; - break; - } - } - return value; - } -} - - Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/AbstractLimaTest.java =================================================================== --- trunk/lima-business/src/test/java/org/chorem/lima/business/AbstractLimaTest.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-business/src/test/java/org/chorem/lima/business/AbstractLimaTest.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -40,13 +40,13 @@ import org.chorem.lima.business.accountingrules.TestAccountingRules; import org.chorem.lima.business.ejb.ClearService; import org.chorem.lima.business.ejb.ClearServiceMonitorable; -import org.chorem.lima.business.ejbinterface.AccountService; -import org.chorem.lima.business.ejbinterface.EntryBookService; -import org.chorem.lima.business.ejbinterface.FinancialPeriodService; -import org.chorem.lima.business.ejbinterface.FinancialTransactionService; -import org.chorem.lima.business.ejbinterface.FiscalPeriodService; -import org.chorem.lima.business.ejbinterface.ImportService; -import org.chorem.lima.business.ejbinterface.ReportService; +import org.chorem.lima.business.api.AccountService; +import org.chorem.lima.business.api.EntryBookService; +import org.chorem.lima.business.api.FinancialPeriodService; +import org.chorem.lima.business.api.FinancialTransactionService; +import org.chorem.lima.business.api.FiscalPeriodService; +import org.chorem.lima.business.api.ImportService; +import org.chorem.lima.business.api.ReportService; import org.chorem.lima.business.monitorable.AccountServiceMonitorable; import org.chorem.lima.business.monitorable.EntryBookServiceMonitorable; import org.chorem.lima.business.monitorable.FinancialPeriodServiceMonitorable; Property changes on: trunk/lima-business-api ___________________________________________________________________ Added: svn:ignore + target .idea .classpath .project .settigns *.ipr *.iws *.iml Added: trunk/lima-business-api/pom.xml =================================================================== --- trunk/lima-business-api/pom.xml (rev 0) +++ trunk/lima-business-api/pom.xml 2012-04-11 15:59:40 UTC (rev 3359) @@ -0,0 +1,51 @@ +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <!-- ************************************************************* --> + <!-- *** POM Relationships *************************************** --> + <!-- ************************************************************* --> + <parent> + <groupId>org.chorem</groupId> + <artifactId>lima</artifactId> + <version>0.6-SNAPSHOT</version> + </parent> + + <groupId>org.chorem.lima</groupId> + <artifactId>lima-business-api</artifactId> + + <dependencies> + <dependency> + <groupId>org.apache.openejb</groupId> + <artifactId>javaee-api</artifactId> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>lima-callao</artifactId> + <version>${project.version}</version> + </dependency> + </dependencies> + + <!-- ************************************************************* --> + <!-- *** Project Information ************************************* --> + <!-- ************************************************************* --> + <name>Lima :: business API</name> + <description>Business API module for lima</description> + + <properties> + </properties> + + <!-- ************************************************************* --> + <!-- *** Build Settings ****************************************** --> + <!-- ************************************************************* --> + + <build> + </build> + + <profiles> + </profiles> + +</project> + Copied: trunk/lima-business-api/src/main/java/org/chorem/lima/business/LimaException.java (from rev 3358, trunk/lima-business/src/main/java/org/chorem/lima/business/LimaException.java) =================================================================== --- trunk/lima-business-api/src/main/java/org/chorem/lima/business/LimaException.java (rev 0) +++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/LimaException.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -0,0 +1,60 @@ +/* + * #%L + * Lima business + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2008 - 2010 CodeLutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ + +package org.chorem.lima.business; + +/** + * Lima exception. + * + * @author chatellier + * @version $Revision$ + * <p/> + * Last update : $Date$ + * By : $Author$ + */ +public class LimaException extends Exception { + + /** serialVersionUID. */ + private static final long serialVersionUID = -6876236663940184462L; + + /** + * Constructs a new exception with the specified detail message. + * + * @param message message + */ + public LimaException(String message) { + super(message); + } + + /** + * Constructs a new exception with the specified detail message and cause. + * + * @param message message + * @param cause cause + */ + public LimaException(String message, Throwable cause) { + super(message, cause); + } +} Copied: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/AccountService.java (from rev 3358, trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/AccountService.java) =================================================================== --- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/AccountService.java (rev 0) +++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/AccountService.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -0,0 +1,100 @@ +/* + * #%L + * Lima business + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2008 - 2012 CodeLutin, Chatellier Eric + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ + +package org.chorem.lima.business.api; + +import org.chorem.lima.business.LimaException; +import org.chorem.lima.entity.Account; + +import javax.ejb.Remote; +import java.util.List; + +/** + * Account service. + * + * @author chatellier + * @version $Revision$ + * <p/> + * Last update : $Date$ + * By : $Author$ + */ +@Remote +public interface AccountService { + + /** + * Return account count. + * + * @return account count + * @throws LimaException technical exception + */ + long getAccountCount() throws LimaException; + + List<Account> getAllAccountByProperty(String propertyName, + String value) throws LimaException; + + /** + * Obtain the master account for the given account number. + * + * the master account if the account with the longer account number prefixing the given account number. + * + * Example: for account number 401AB, it could be 4, 40, 401,... + * + * @param accountNumber the account number + * @return the master account number + * @throws LimaException if any pb while loading account + */ + Account getMasterAccount(String accountNumber) throws LimaException; + + Account getAccountByNumber(String number) throws LimaException; + + /** + * Return all account ordered by account name. + * + * @return all account + * @throws LimaException + */ + List<Account> getAllAccounts() throws LimaException; + + List<Account> getAllLeafAccounts() throws LimaException; + + /** + * Create new account. If {@code masterAccount} is not null, {@code account} + * is added in {@code masterAccount}'s subAccounts. + * + * @param account account + * @throws LimaException + */ + Account createAccount(Account account) throws LimaException; + + Account updateAccount(Account account) throws LimaException; + + void removeAccount(Account account) throws LimaException; + + void removeAllAccount() throws LimaException; + + List<Account> getAllChildrenAccounts(Account masterAccount) throws LimaException; + + List<Account> getChildrenAccounts(Account masterAccount) throws LimaException; +} Copied: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/AccountServiceLocal.java (from rev 3358, trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/AccountServiceLocal.java) =================================================================== --- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/AccountServiceLocal.java (rev 0) +++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/AccountServiceLocal.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -0,0 +1,48 @@ +/* + * #%L + * Lima business + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2008 - 2012 CodeLutin, Chatellier Eric + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ + +package org.chorem.lima.business.api; + +import org.chorem.lima.business.LimaException; +import org.chorem.lima.entity.Account; +import org.nuiton.topia.TopiaContext; + +import javax.ejb.Local; + +/** + * Account service. + * + * @author chatellier + * @version $Revision$ + * <p/> + * Last update : $Date$ + * By : $Author$ + */ +@Local +public interface AccountServiceLocal extends AccountService { + + Account createAccountWithTransaction(Account account, TopiaContext topiaContext) throws LimaException; + +} \ No newline at end of file Copied: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/DocumentService.java (from rev 3358, trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/DocumentService.java) =================================================================== --- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/DocumentService.java (rev 0) +++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/DocumentService.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -0,0 +1,55 @@ +/* + * #%L + * Lima business + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2008 - 2010 CodeLutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ + +package org.chorem.lima.business.api; + +import org.chorem.lima.business.LimaException; +import org.chorem.lima.business.utils.FormatsEnum; + +import javax.ejb.Remote; +import java.util.Date; + +/** + * Interface to create pdf and html docs + * + * @author john + */ + +@Remote +public interface DocumentService { + + void createFinancialStatementsDocuments(Date beginDate, Date endDate, FormatsEnum format) throws LimaException; + + void createLedgerDocuments(Date beginDate, Date endDate, FormatsEnum format) throws LimaException; + + void createEntryBooksDocuments(Date beginDate, Date endDate, FormatsEnum format) throws LimaException; + + void createBalanceDocuments(Date beginDate, Date endDate, FormatsEnum format) throws LimaException; + + void createGeneralEntryBooksDocuments(Date beginDate, Date endDate, FormatsEnum format) throws LimaException; + + void createVatDocuments(Date beginDate, Date endDate, FormatsEnum format, String autocomplete) throws LimaException; + +} Copied: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/DocumentServiceLocal.java (from rev 3358, trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/DocumentServiceLocal.java) =================================================================== --- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/DocumentServiceLocal.java (rev 0) +++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/DocumentServiceLocal.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -0,0 +1,39 @@ +/* + * #%L + * Lima business + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2008 - 2010 CodeLutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ + +package org.chorem.lima.business.api; + +import javax.ejb.Local; + +/** + * Interface to create pdf and html docs + * + * @author john + */ + +@Local +public interface DocumentServiceLocal extends DocumentService { + +} Copied: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/EntryBookService.java (from rev 3358, trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/EntryBookService.java) =================================================================== --- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/EntryBookService.java (rev 0) +++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/EntryBookService.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -0,0 +1,89 @@ +/* + * #%L + * Lima business + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2008 - 2012 CodeLutin, Chatellier Eric + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ + +package org.chorem.lima.business.api; + +import org.chorem.lima.business.LimaException; +import org.chorem.lima.entity.EntryBook; + +import javax.ejb.Remote; +import java.util.List; + +/** + * Entry book service. + * + * @author chatellier + * @version $Revision$ + * <p/> + * Last update : $Date$ + * By : $Author$ + */ +@Remote +public interface EntryBookService { + + /** + * Find entry book by code. + * + * @param code entry book code + * @return + * @throws LimaException + */ + EntryBook getEntryBookByCode(String code) throws LimaException; + + /** + * Get all entry book. + * + * @return all entrybook + * @throws LimaException + */ + List<EntryBook> getAllEntryBooks() throws LimaException; + + /** + * Create new entry book. + * + * @param entryBook + * @throws LimaException + */ + EntryBook createEntryBook(EntryBook entryBook) throws LimaException; + + /** + * Permet de modifier un journal. + * + * @param entryBook journal + * @throws LimaException + */ + EntryBook updateEntryBook(EntryBook entryBook) throws LimaException; + + /** + * Permet d'effacer un EntryBook dans la base de données. + * <p/> + * ATTENTION : si un EntryBook est associé avec des entrées, il est alors + * impossible de supprimer celui-ci. + * + * @param entryBook + * @throws LimaException + */ + void removeEntryBook(EntryBook entryBook) throws LimaException; +} Copied: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/EntryBookServiceLocal.java (from rev 3358, trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/EntryBookServiceLocal.java) =================================================================== --- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/EntryBookServiceLocal.java (rev 0) +++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/EntryBookServiceLocal.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -0,0 +1,50 @@ +/* + * #%L + * Lima business + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2008 - 2010 CodeLutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ + +package org.chorem.lima.business.api; + +import org.chorem.lima.business.LimaException; +import org.chorem.lima.entity.EntryBook; +import org.nuiton.topia.TopiaContext; + +import javax.ejb.Local; + + +/** + * Entry book service. + * + * @author chatellier + * @version $Revision$ + * <p/> + * Last update : $Date$ + * By : $Author$ + */ + +@Local +public interface EntryBookServiceLocal extends EntryBookService { + + EntryBook createEntryBookWithTransaction(EntryBook entryBook, TopiaContext topiaContext) throws LimaException; + +} Copied: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/ExportService.java (from rev 3358, trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/ExportService.java) =================================================================== --- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/ExportService.java (rev 0) +++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/ExportService.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -0,0 +1,74 @@ +/* + * #%L + * Lima business + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2008 - 2010 CodeLutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ + +package org.chorem.lima.business.api; + +import org.chorem.lima.business.LimaException; + +import javax.ejb.Remote; + +/** + * Import export service. + * <p/> + * Currently import and export as XML. + * + * @author chatellier + * @version $Revision$ + * <p/> + * Last update : $Date$ + * By : $Author$ + */ +@Remote +public interface ExportService { + + + /** + * Get database export as CSV; + * + * @return export as byte array + * @throws LimaException + */ + String exportAsCSV() throws LimaException; + + /** export entrybook chart as CSV. */ + String exportEntryBookChartAsCSV() throws LimaException; + + /** export financialstatement chart as CSV. */ + String exportFinancialStatementChartAsCSV() throws LimaException; + + /** export vatstatement chart as CSV */ + String exportVatStatementChartAsCSV() throws LimaException; + + /** export accounts chart as CSV. */ + String exportAccountsChartAsCSV() throws LimaException; + + /** export entries as EBP */ + String exportEntriesAsEBP() throws LimaException; + + /** export accounts as EBP */ + String exportAccountsAsEBP() throws LimaException; + + +} Copied: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/ExportServiceLocal.java (from rev 3358, trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/ExportServiceLocal.java) =================================================================== --- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/ExportServiceLocal.java (rev 0) +++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/ExportServiceLocal.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -0,0 +1,44 @@ +/* + * #%L + * Lima business + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2008 - 2010 CodeLutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ + +package org.chorem.lima.business.api; + +import javax.ejb.Local; + +/** + * Import export service. + * <p/> + * Currently import and export as XML. + * + * @author chatellier + * @version $Revision$ + * <p/> + * Last update : $Date$ + * By : $Author$ + */ +@Local +public interface ExportServiceLocal extends ExportService { + +} Copied: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FinancialPeriodService.java (from rev 3358, trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/FinancialPeriodService.java) =================================================================== --- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FinancialPeriodService.java (rev 0) +++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FinancialPeriodService.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -0,0 +1,65 @@ +/* + * #%L + * Lima business + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2008 - 2010 CodeLutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ + +package org.chorem.lima.business.api; + +import org.chorem.lima.business.LimaException; +import org.chorem.lima.entity.ClosedPeriodicEntryBook; +import org.chorem.lima.entity.EntryBook; +import org.chorem.lima.entity.FinancialPeriod; + +import javax.ejb.Remote; +import java.util.Date; +import java.util.List; + +/** + * Financial period service. + * + * @author chatellier + * @version $Revision$ + * <p/> + * Last update : $Date$ + * By : $Author$ + */ + +@Remote +public interface FinancialPeriodService { + + List<FinancialPeriod> getUnblockedFinancialPeriods() throws LimaException; + + void createFinancialPeriods(List<FinancialPeriod> financialPeriods) throws LimaException; + + ClosedPeriodicEntryBook getClosedPeriodicEntryBook(EntryBook entryBook, + FinancialPeriod financialPeriod) throws LimaException; + + List<ClosedPeriodicEntryBook> getAllClosedPeriodicEntryBooksFromUnblockedFiscalPeriod() throws LimaException; + + void blockClosedPeriodicEntryBook(ClosedPeriodicEntryBook closedPeriodicEntryBook) throws LimaException; + + List<FinancialPeriod> getAllFinancialPeriods() throws LimaException; + + List<FinancialPeriod> getFinancialPeriods(Date beginDate, + Date endDate) throws LimaException; +} Copied: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FinancialPeriodServiceLocal.java (from rev 3358, trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/FinancialPeriodServiceLocal.java) =================================================================== --- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FinancialPeriodServiceLocal.java (rev 0) +++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FinancialPeriodServiceLocal.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -0,0 +1,57 @@ +/* + * #%L + * Lima business + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2008 - 2010 CodeLutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ + +package org.chorem.lima.business.api; + +import org.chorem.lima.business.LimaException; +import org.chorem.lima.entity.ClosedPeriodicEntryBook; +import org.chorem.lima.entity.FinancialPeriod; +import org.nuiton.topia.TopiaContext; + +import javax.ejb.Local; +import java.util.List; + + +/** + * Financial period service. + * + * @author chatellier + * @version $Revision$ + * <p/> + * Last update : $Date$ + * By : $Author$ + */ + +@Local +public interface FinancialPeriodServiceLocal extends FinancialPeriodService { + + void createFinancialPeriodsWithTransaction(List<FinancialPeriod> financialPeriods, + TopiaContext topiaContext) throws LimaException; + + void blockClosedPeriodicEntryBookWithTransaction(ClosedPeriodicEntryBook closedPeriodicEntryBook, + TopiaContext topiaContext) throws LimaException; + + +} Copied: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FinancialStatementService.java (from rev 3358, trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/FinancialStatementService.java) =================================================================== --- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FinancialStatementService.java (rev 0) +++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FinancialStatementService.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -0,0 +1,61 @@ +/* + * #%L + * Lima business + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2008 - 2010 CodeLutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ + +package org.chorem.lima.business.api; + +import org.chorem.lima.beans.FinancialStatementAmounts; +import org.chorem.lima.business.LimaException; +import org.chorem.lima.entity.FinancialStatement; + +import javax.ejb.Remote; +import java.util.Date; +import java.util.List; + +@Remote +public interface FinancialStatementService { + + + void createFinancialStatement(FinancialStatement masterFinancialStatement, + FinancialStatement financialStatement) throws LimaException; + + void updateFinancialStatement(FinancialStatement financialStatement) throws LimaException; + + void removeFinancialStatement(FinancialStatement financialStatement) throws LimaException; + + void removeAllFinancialStatement() throws LimaException; + + List<FinancialStatement> getAllFinancialStatements() throws LimaException; + + List<FinancialStatement> getChildrenFinancialStatement(FinancialStatement financialStatement) throws LimaException; + + List<FinancialStatement> getAllChildrenFinancialStatement(FinancialStatement financialStatement, + List<FinancialStatement> financialStatements) throws LimaException; + + List<FinancialStatementAmounts> financialStatementReport(Date selectedBeginDate, + Date selectedEndDate) throws LimaException; + + String checkFinancialStatementChart() throws LimaException; + +} Copied: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FinancialStatementServiceLocal.java (from rev 3358, trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/FinancialStatementServiceLocal.java) =================================================================== --- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FinancialStatementServiceLocal.java (rev 0) +++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FinancialStatementServiceLocal.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -0,0 +1,42 @@ +/* + * #%L + * Lima business + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2008 - 2010 CodeLutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ + +package org.chorem.lima.business.api; + +import org.chorem.lima.business.LimaException; +import org.chorem.lima.entity.FinancialStatement; +import org.nuiton.topia.TopiaContext; + +import javax.ejb.Local; + +@Local +public interface FinancialStatementServiceLocal extends FinancialStatementService { + + void createFinancialStatementWithTransaction(FinancialStatement masterFinancialStatement, + FinancialStatement financialStatement, + TopiaContext topiaContext) throws LimaException; + + +} Copied: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FinancialTransactionService.java (from rev 3358, trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/FinancialTransactionService.java) =================================================================== --- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FinancialTransactionService.java (rev 0) +++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FinancialTransactionService.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -0,0 +1,93 @@ +/* + * #%L + * Lima business + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2008 - 2010 CodeLutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ + +package org.chorem.lima.business.api; + +import org.chorem.lima.beans.FinancialTransactionSearch; +import org.chorem.lima.business.LimaException; +import org.chorem.lima.entity.Entry; +import org.chorem.lima.entity.EntryBook; +import org.chorem.lima.entity.FinancialPeriod; +import org.chorem.lima.entity.FinancialTransaction; +import org.chorem.lima.entity.FiscalPeriod; +import org.chorem.lima.entity.Letter; + +import javax.ejb.Remote; +import java.util.Date; +import java.util.List; + +/** + * Transaction service. + * + * @author chatellier + * @version $Revision$ + * <p/> + * Last update : $Date$ + * By : $Author$ + */ + +@Remote +public interface FinancialTransactionService { + + + FinancialTransaction createFinancialTransaction(FinancialTransaction financialtransaction) throws LimaException; + + void updateFinancialTransaction(FinancialTransaction financialtransaction) throws LimaException; + + void removeFinancialTransaction(FinancialTransaction financialtransaction) throws LimaException; + + List<FinancialTransaction> getAllFinancialTransactionsForFinancialPeriod(FinancialPeriod period) throws LimaException; + + List<FinancialTransaction> getAllFinancialTransactionsFromDateToDate(Date beginDate, + Date endDate) throws LimaException; + + List<FinancialTransaction> getAllFinancialTransactionsForEntryBookAndFinancialPeriod(EntryBook entryBook, + FinancialPeriod period) throws LimaException; + + List<FinancialTransaction> getAllInexactFinancialTransactions(FiscalPeriod fiscalPeriod) throws LimaException; + + List<FinancialTransaction> getAllFinancialTransactionsBalanced(FiscalPeriod fiscalPeriod) throws LimaException; + + List<Object> searchFinancialTransaction(FinancialTransactionSearch financialTransactionSearch) throws LimaException; + + Entry createEntry(Entry entry) throws LimaException; + + void updateEntry(Entry entry) throws LimaException; + + void removeEntry(Entry entry) throws LimaException; + + Letter getNewLetter() throws LimaException; + + void createLetter(Letter letter) throws LimaException; + + void removeLetter(Letter letter) throws LimaException; + + List<Letter> getAllLetters() throws LimaException; + + void setEntryLetter(Entry entry, Letter letter) throws LimaException; + + void removeEntryLetter(Entry entry) throws LimaException; + +} Copied: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FinancialTransactionServiceLocal.java (from rev 3358, trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/FinancialTransactionServiceLocal.java) =================================================================== --- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FinancialTransactionServiceLocal.java (rev 0) +++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FinancialTransactionServiceLocal.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -0,0 +1,57 @@ +/* + * #%L + * Lima business + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2008 - 2010 CodeLutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ + +package org.chorem.lima.business.api; + +import org.chorem.lima.business.LimaException; +import org.chorem.lima.entity.Entry; +import org.chorem.lima.entity.FinancialTransaction; +import org.nuiton.topia.TopiaContext; + +import javax.ejb.Local; + +/** + * Transaction service. + * + * @author chatellier + * @version $Revision$ + * <p/> + * Last update : $Date$ + * By : $Author$ + */ + +@Local +public interface FinancialTransactionServiceLocal extends FinancialTransactionService { + + FinancialTransaction createFinancialTransactionWithTransaction(FinancialTransaction financialtransaction, + TopiaContext topiaContext) throws LimaException; + + void updateFinancialTransactionWithTransaction(FinancialTransaction financialtransaction, + TopiaContext topiaContext) throws LimaException; + + Entry createEntryWithTransaction(Entry entry, TopiaContext topiaContext) throws LimaException; + + +} Copied: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FiscalPeriodService.java (from rev 3358, trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/FiscalPeriodService.java) =================================================================== --- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FiscalPeriodService.java (rev 0) +++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FiscalPeriodService.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -0,0 +1,62 @@ +/* + * #%L + * Lima business + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2008 - 2010 CodeLutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ + +package org.chorem.lima.business.api; + +import org.chorem.lima.business.LimaException; +import org.chorem.lima.entity.EntryBook; +import org.chorem.lima.entity.FiscalPeriod; + +import javax.ejb.Remote; +import java.util.List; + +/** + * Fiscal period service. + * + * @author chatellier + * @version $Revision$ + * <p/> + * Last update : $Date$ + * By : $Author$ + */ +@Remote +public interface FiscalPeriodService { + + List<FiscalPeriod> getAllFiscalPeriods() throws LimaException; + + List<FiscalPeriod> getAllBlockedFiscalPeriods() throws LimaException; + + List<FiscalPeriod> getAllUnblockedFiscalPeriods() throws LimaException; + + FiscalPeriod getLastFiscalPeriod() throws LimaException; + + FiscalPeriod createFiscalPeriod(FiscalPeriod fiscalPeriod) throws LimaException; + + FiscalPeriod blockFiscalPeriod(FiscalPeriod fiscalPeriod) throws LimaException; + + void addRetainedEarnings(FiscalPeriod fiscalPeriod, + boolean newyear, + EntryBook entryBook) throws LimaException; +} Copied: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FiscalPeriodServiceLocal.java (from rev 3358, trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/FiscalPeriodServiceLocal.java) =================================================================== --- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FiscalPeriodServiceLocal.java (rev 0) +++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FiscalPeriodServiceLocal.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -0,0 +1,50 @@ +/* + * #%L + * Lima business + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2008 - 2010 CodeLutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ + +package org.chorem.lima.business.api; + +import org.chorem.lima.business.LimaException; +import org.chorem.lima.entity.FiscalPeriod; +import org.nuiton.topia.TopiaContext; + +import javax.ejb.Local; + +/** + * Fiscal period service. + * + * @author chatellier + * @version $Revision$ + * <p/> + * Last update : $Date$ + * By : $Author$ + */ +@Local +public interface FiscalPeriodServiceLocal extends FiscalPeriodService { + + FiscalPeriod createFiscalPeriodWithTransaction(FiscalPeriod fiscalPeriod, + TopiaContext topiaContext) throws LimaException; + + +} Copied: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/HttpServerService.java (from rev 3358, trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/HttpServerService.java) =================================================================== --- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/HttpServerService.java (rev 0) +++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/HttpServerService.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -0,0 +1,37 @@ +/* + * #%L + * Lima business + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2008 - 2010 CodeLutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ + +package org.chorem.lima.business.api; + +import javax.ejb.Remote; + +@Remote +public interface HttpServerService { + + void start(); + + int getHttpPort(); + +} Copied: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/HttpServerServiceLocal.java (from rev 3358, trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/HttpServerServiceLocal.java) =================================================================== --- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/HttpServerServiceLocal.java (rev 0) +++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/HttpServerServiceLocal.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -0,0 +1,33 @@ +/* + * #%L + * Lima business + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2008 - 2010 CodeLutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ + +package org.chorem.lima.business.api; + +import javax.ejb.Local; + +@Local +public interface HttpServerServiceLocal extends HttpServerService { + +} Copied: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/IdentityService.java (from rev 3358, trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/IdentityService.java) =================================================================== --- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/IdentityService.java (rev 0) +++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/IdentityService.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -0,0 +1,40 @@ +/* + * #%L + * Lima business + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2008 - 2010 CodeLutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ + +package org.chorem.lima.business.api; + +import org.chorem.lima.business.LimaException; +import org.chorem.lima.entity.Identity; + +import javax.ejb.Remote; + +@Remote +public interface IdentityService { + + Identity getIdentity() throws LimaException; + + void updateIdentity(Identity identity) throws LimaException; + +} Copied: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/IdentityServiceLocal.java (from rev 3358, trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/IdentityServiceLocal.java) =================================================================== --- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/IdentityServiceLocal.java (rev 0) +++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/IdentityServiceLocal.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -0,0 +1,42 @@ +/* + * #%L + * Lima business + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2008 - 2010 CodeLutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ + +package org.chorem.lima.business.api; + +import org.chorem.lima.business.LimaException; +import org.chorem.lima.entity.Identity; +import org.nuiton.topia.TopiaContext; + +import javax.ejb.Local; + +@Local +public interface IdentityServiceLocal extends IdentityService { + + void updateIdentityWithTransaction(Identity identity, + TopiaContext topiaContext) throws LimaException; + + Identity getIdentityWithTransaction(TopiaContext topiaContext) throws LimaException; + +} Copied: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/ImportService.java (from rev 3358, trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/ImportService.java) =================================================================== --- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/ImportService.java (rev 0) +++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/ImportService.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -0,0 +1,87 @@ +/* + * #%L + * Lima business + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2008 - 2012 CodeLutin, Chatellier Eric + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ + +package org.chorem.lima.business.api; + +import org.chorem.lima.business.LimaException; +import org.chorem.lima.business.utils.ImportExportEntityEnum; + +import javax.ejb.Remote; + +/** + * Import export service. + * Currently import and export as CSV and EBP. + */ +@Remote +public interface ImportService { + + /** + * Import accounts as EBP import. + * + * @param data import file content as string (remote service can't take File) + * @return result log + * @throws LimaException + */ + String importAccountsChartFromEbp(String data) throws LimaException; + + /** + * Import entries as EBP import. + * + * @param data import file content as string (remote service can't take File) + * @return result log + * @throws LimaException + */ + String importEntriesFromEbp(String data) throws LimaException; + + /** + * Import data as lima CSV import. + * + * Read first line to detect file type and call {@link #importAsCSV(String, ImportExportEntityEnum)}. + * + * @param data import file content as string (remote service can't take File) + * @return result log + * @throws LimaException + */ + String importAllAsCSV(String data) throws LimaException; + + /** + * Import content as CSV depending on import type. + * + * @param data import file content as string (remote service can't take File) + * @param importExportEntityEnum import type + * @return result log + * @throws LimaException + */ + String importAsCSV(String data, + ImportExportEntityEnum importExportEntityEnum) throws LimaException; + + /** + * @deprecated import file (local, can't be used in remote mode) + * and wrong place for this method + */ + String importAsPDF(String data, + ImportExportEntityEnum importExportEntityEnum, + boolean saveMode) throws LimaException; +} Copied: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/ImportServiceLocal.java (from rev 3358, trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/ImportServiceLocal.java) =================================================================== --- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/ImportServiceLocal.java (rev 0) +++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/ImportServiceLocal.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -0,0 +1,44 @@ +/* + * #%L + * Lima business + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2008 - 2010 CodeLutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ + +package org.chorem.lima.business.api; + +import javax.ejb.Local; + +/** + * Import export service. + * <p/> + * Currently import and export as XML. + * + * @author chatellier + * @version $Revision$ + * <p/> + * Last update : $Date$ + * By : $Author$ + */ +@Local +public interface ImportServiceLocal extends ImportService { + +} Copied: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/OptionsService.java (from rev 3358, trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/OptionsService.java) =================================================================== --- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/OptionsService.java (rev 0) +++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/OptionsService.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -0,0 +1,57 @@ +/* + * #%L + * Lima :: business + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2008 - 2011 CodeLutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ +package org.chorem.lima.business.api; + +import javax.ejb.Remote; + +/** + * Service de report des certaines configurations du swing dans business + * <p/> + * Actuellement : + * <ul> + * <li>scale</li> + * </ul> + * + * @author salaun + */ + +@Remote +public interface OptionsService { + + /** + * Sets the swing scale to the business scale + * + * @param scale scale + */ + void setScale(String scale); + + /** + * Gets the business scale + * + * @return scale + */ + int getScale(); + +} Copied: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/OptionsServiceLocal.java (from rev 3358, trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/OptionsServiceLocal.java) =================================================================== --- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/OptionsServiceLocal.java (rev 0) +++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/OptionsServiceLocal.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -0,0 +1,32 @@ +/* + * #%L + * Lima :: business + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2008 - 2011 CodeLutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ +package org.chorem.lima.business.api; + +import javax.ejb.Local; + +@Local +public interface OptionsServiceLocal extends OptionsService { + +} Copied: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/ReportService.java (from rev 3358, trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/ReportService.java) =================================================================== --- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/ReportService.java (rev 0) +++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/ReportService.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -0,0 +1,150 @@ +/* + * #%L + * Lima business + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2008 - 2010 CodeLutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ + +package org.chorem.lima.business.api; + +import org.chorem.lima.beans.BalanceTrial; +import org.chorem.lima.beans.ReportsDatas; +import org.chorem.lima.business.LimaException; +import org.chorem.lima.entity.Account; +import org.chorem.lima.entity.EntryBook; +import org.chorem.lima.entity.FiscalPeriod; +import org.nuiton.topia.TopiaContext; + +import javax.ejb.Remote; +import java.util.Date; +import java.util.List; + +/** + * Service de generation des rapports. + * <p/> + * Actuellement: + * <ul> + * <li>Balance</li> + * <li>Bilan</li> + * <li>TVA</li> + * </ul> + * + * @author chatellier + * @version $Revision$ + * <p/> + * Last update : $Date$ + * By : $Author$ + */ + +@Remote +public interface ReportService { + + /** + * Generation de la balance. + * + * @param beginDate + * @param endDate + * @param selectedAccounts + * @param getEntries + * @param movementedFilter + * @return la balance + * @throws LimaException + */ + BalanceTrial generateBalanceTrial(Date beginDate, + Date endDate, + String selectedAccounts, + Boolean getEntries, + Boolean movementedFilter) throws LimaException; + + /** + * Generation du grand-livre. + * + * @param beginDate + * @param endDate + * @param selectedAccounts + * @param movementedFilter + * @return + * @throws LimaException + */ + BalanceTrial generateLedger(Date beginDate, + Date endDate, + String selectedAccounts, + Boolean movementedFilter) throws LimaException; + + + /** + * Generation du rapports des comptes. + * + * @param account + * @param thirdPartAccountsMode + * @param beginDate + * @param endDate + * @return + * @throws LimaException + */ + ReportsDatas generateAccountsReports(Account account, + Boolean thirdPartAccountsMode, + Date beginDate, + Date endDate) throws LimaException; + + + /** + * Calculate all credit, debit and solde amounts for the balance. + * <p/> + * Get all entries if true + * + * @param account + * @param beginDate + * @param endDate + * @param getEntries + * @param topiaContext + * @return + * @throws LimaException + */ + ReportsDatas generateSubAccountBalanceWithTransaction(Account account, + Date beginDate, + Date endDate, + Boolean getEntries, + TopiaContext topiaContext) throws LimaException; + + /** + * Generation du rapports des journaux. + * + * @param entryBook + * @param beginDate + * @param endDate + * @return + * @throws LimaException + */ + ReportsDatas generateEntryBooksReports(EntryBook entryBook, + Date beginDate, + Date endDate) throws LimaException; + + /** + * Generate VAT. + * + * @param fiscalPeriod + * @return + * @throws LimaException + */ + List<Object> generateVat(FiscalPeriod fiscalPeriod) throws LimaException; + +} Copied: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/ReportServiceLocal.java (from rev 3358, trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/ReportServiceLocal.java) =================================================================== --- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/ReportServiceLocal.java (rev 0) +++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/ReportServiceLocal.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -0,0 +1,62 @@ +/* + * #%L + * Lima business + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2008 - 2010 CodeLutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ + +package org.chorem.lima.business.api; + +import org.chorem.lima.beans.ReportsDatas; +import org.chorem.lima.business.LimaException; +import org.chorem.lima.entity.Account; +import org.nuiton.topia.TopiaContext; + +import javax.ejb.Local; +import java.util.Date; + + +/** + * Service de generation des rapports. + * <p/> + * Actuellement: + * <ul> + * <li>Balance</li> + * <li>Bilan</li> + * </ul> + * + * @author chatellier + * @version $Revision$ + * <p/> + * Last update : $Date$ + * By : $Author$ + */ + +@Local +public interface ReportServiceLocal extends ReportService { + + ReportsDatas generateAccountReportsWithTransaction(Account account, + Boolean thirdPartAccountsMode, + Date beginDate, + Date endDate, + TopiaContext topiaContext) throws LimaException; + +} Copied: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/VatStatementService.java (from rev 3358, trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/VatStatementService.java) =================================================================== --- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/VatStatementService.java (rev 0) +++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/VatStatementService.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -0,0 +1,64 @@ +/* + * #%L + * Lima :: business + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2008 - 2011 CodeLutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ +package org.chorem.lima.business.api; + +import org.chorem.lima.beans.VatStatementAmounts; +import org.chorem.lima.business.LimaException; +import org.chorem.lima.entity.VatStatement; + +import javax.ejb.Remote; +import java.util.Date; +import java.util.List; + +@Remote +public interface VatStatementService { + + void createVatStatement(VatStatement masterVatStatement, + VatStatement vatStatement) throws LimaException; + + List<VatStatement> getAllVatStatements() throws LimaException; + + List<VatStatement> getAllChildrenVatStatement(VatStatement vatStatement, + List<VatStatement> result) throws LimaException; + + List<VatStatement> getChildrenVatStatement(VatStatement masterVatStatement) throws LimaException; + + void updateVatStatement(VatStatement vatStatement) throws LimaException; + + VatStatementAmounts vatStatementAmounts(VatStatement vatStatement, + Date selectedBeginDate, + Date selectedEndDate) throws LimaException; + + VatStatement findVatStatementByString(String label) throws LimaException; + + List<VatStatementAmounts> vatStatementReport(Date beginDate, + Date endDate) throws LimaException; + + void removeAllVatStatement() throws LimaException; + + void removeVatStatement(VatStatement vatStatement) throws LimaException; + + +} \ No newline at end of file Copied: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/VatStatementServiceLocal.java (from rev 3358, trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/VatStatementServiceLocal.java) =================================================================== --- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/VatStatementServiceLocal.java (rev 0) +++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/VatStatementServiceLocal.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -0,0 +1,54 @@ +/* + * #%L + * Lima :: business + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2008 - 2011 CodeLutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ +package org.chorem.lima.business.api; + +import org.chorem.lima.beans.VatStatementAmounts; +import org.chorem.lima.beans.VatStatementDatas; +import org.chorem.lima.business.LimaException; +import org.chorem.lima.entity.VatStatement; +import org.nuiton.topia.TopiaContext; + +import javax.ejb.Local; +import java.util.Date; + +@Local +public interface VatStatementServiceLocal extends VatStatementService { + + void createVatStatementWithTransaction( + VatStatement masterVatStatement, VatStatement vatStatement, + TopiaContext transaction) throws LimaException; + + VatStatementAmounts vatStatementAmounts(VatStatement vatStatement, + Date selectedBeginDate, + Date selectedEndDate, + TopiaContext topiacontext) throws LimaException; + + VatStatementDatas vatStatementReport(VatStatement vatStatement, + Date selectedBeginDate, + Date selectedEndDate, + VatStatementDatas result, + TopiaContext topiaContext) throws LimaException; + +} Copied: trunk/lima-business-api/src/main/java/org/chorem/lima/business/utils/FormatsEnum.java (from rev 3358, trunk/lima-business/src/main/java/org/chorem/lima/business/utils/FormatsEnum.java) =================================================================== --- trunk/lima-business-api/src/main/java/org/chorem/lima/business/utils/FormatsEnum.java (rev 0) +++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/utils/FormatsEnum.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -0,0 +1,70 @@ +/* + * #%L + * Lima business + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2008 - 2010 CodeLutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ + +package org.chorem.lima.business.utils; + +public enum FormatsEnum { + + HTML(".html", "text/html", "Page Html"), + PDF(".pdf", "application/pdf", "Document PDF"); + + private final String extension; + + private final String mimeType; + + private final String description; + + private FormatsEnum(String extension, String mimeType, String description) { + this.extension = extension; + this.mimeType = mimeType; + this.description = description; + } + + public String getExtension() { + return extension; + } + + public String getMimeType() { + return mimeType; + } + + public String getDescription() { + return description; + } + + public static FormatsEnum valueOfExtension(String extension) { + FormatsEnum value = null; + + for (FormatsEnum formatsEnum : FormatsEnum.values()) { + if (extension.equals(formatsEnum.getExtension())) { + value = formatsEnum; + break; + } + } + return value; + } + + +} Copied: trunk/lima-business-api/src/main/java/org/chorem/lima/business/utils/ImportExportEntityEnum.java (from rev 3358, trunk/lima-business/src/main/java/org/chorem/lima/business/utils/ImportExportEntityEnum.java) =================================================================== --- trunk/lima-business-api/src/main/java/org/chorem/lima/business/utils/ImportExportEntityEnum.java (rev 0) +++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/utils/ImportExportEntityEnum.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -0,0 +1,64 @@ +/* + * #%L + * Lima business + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2008 - 2010 CodeLutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ + +package org.chorem.lima.business.utils; + +public enum ImportExportEntityEnum { + + ACCOUNT("ACCN"), + ENTRYBOOK("ENBK"), + FINANCIALSTATEMENT("FNST"), + FISCALPERIOD("FSCP"), + CLOSEDPERIODICENTRYBOOK("CPEB"), + FINANCIALTRANSACTION("FTRC"), + ENTRY("NTRY"), + VATSTATEMENT("VAT"), + IDENTITY("IDNT"), + VATPDF("VATPDF"); + + private final String label; + + ImportExportEntityEnum(String label) { + this.label = label; + } + + public String getLabel() { + return label; + } + + public static ImportExportEntityEnum valueOfLabel(String label) { + ImportExportEntityEnum value = null; + + for (ImportExportEntityEnum importExportEntityEnum : ImportExportEntityEnum.values()) { + if (label.equals(importExportEntityEnum.label)) { + value = importExportEntityEnum; + break; + } + } + return value; + } +} + + Modified: trunk/lima-swing/src/main/java/org/chorem/lima/LimaMain.java =================================================================== --- trunk/lima-swing/src/main/java/org/chorem/lima/LimaMain.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-swing/src/main/java/org/chorem/lima/LimaMain.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -28,7 +28,7 @@ import jaxx.runtime.SwingUtil; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; -import org.chorem.lima.business.ejbinterface.AccountService; +import org.chorem.lima.business.api.AccountService; import org.chorem.lima.business.monitorable.AccountServiceMonitorable; import org.chorem.lima.business.monitorable.HttpServerServiceMonitorable; import org.chorem.lima.service.LimaServiceFactory; Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/account/AccountViewHandler.java =================================================================== --- trunk/lima-swing/src/main/java/org/chorem/lima/ui/account/AccountViewHandler.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/account/AccountViewHandler.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -49,7 +49,7 @@ import org.chorem.lima.business.LimaException; import org.chorem.lima.business.LimaRuntimeException; import org.chorem.lima.business.ServiceListener; -import org.chorem.lima.business.ejbinterface.AccountService; +import org.chorem.lima.business.api.AccountService; import org.chorem.lima.business.monitorable.AccountServiceMonitorable; import org.chorem.lima.business.monitorable.ImportServiceMonitorable; import org.chorem.lima.entity.Account; Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/AccountComboBoxModel.java =================================================================== --- trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/AccountComboBoxModel.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/AccountComboBoxModel.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -29,7 +29,7 @@ import org.apache.commons.logging.LogFactory; import org.chorem.lima.business.LimaException; import org.chorem.lima.business.ServiceListener; -import org.chorem.lima.business.ejbinterface.AccountService; +import org.chorem.lima.business.api.AccountService; import org.chorem.lima.business.monitorable.AccountServiceMonitorable; import org.chorem.lima.business.monitorable.ImportServiceMonitorable; import org.chorem.lima.entity.Account; Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/EntryBookComboBoxModel.java =================================================================== --- trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/EntryBookComboBoxModel.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/EntryBookComboBoxModel.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -29,7 +29,7 @@ import org.apache.commons.logging.LogFactory; import org.chorem.lima.business.LimaException; import org.chorem.lima.business.ServiceListener; -import org.chorem.lima.business.ejbinterface.EntryBookService; +import org.chorem.lima.business.api.EntryBookService; import org.chorem.lima.business.monitorable.EntryBookServiceMonitorable; import org.chorem.lima.business.monitorable.ImportServiceMonitorable; import org.chorem.lima.entity.EntryBook; Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/FinancialPeriodComboBoxModel.java =================================================================== --- trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/FinancialPeriodComboBoxModel.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/FinancialPeriodComboBoxModel.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -29,7 +29,7 @@ import org.apache.commons.logging.LogFactory; import org.chorem.lima.business.LimaException; import org.chorem.lima.business.ServiceListener; -import org.chorem.lima.business.ejbinterface.FinancialPeriodService; +import org.chorem.lima.business.api.FinancialPeriodService; import org.chorem.lima.business.monitorable.FinancialPeriodServiceMonitorable; import org.chorem.lima.business.monitorable.FiscalPeriodServiceMonitorable; import org.chorem.lima.business.monitorable.ImportServiceMonitorable; Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/FiscalPeriodComboBoxModel.java =================================================================== --- trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/FiscalPeriodComboBoxModel.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/FiscalPeriodComboBoxModel.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -29,7 +29,7 @@ import org.apache.commons.logging.LogFactory; import org.chorem.lima.business.LimaException; import org.chorem.lima.business.ServiceListener; -import org.chorem.lima.business.ejbinterface.FiscalPeriodService; +import org.chorem.lima.business.api.FiscalPeriodService; import org.chorem.lima.business.monitorable.FiscalPeriodServiceMonitorable; import org.chorem.lima.business.monitorable.ImportServiceMonitorable; import org.chorem.lima.entity.FiscalPeriod; Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/LetterComboBoxModel.java =================================================================== --- trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/LetterComboBoxModel.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/LetterComboBoxModel.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -29,7 +29,7 @@ import org.apache.commons.logging.LogFactory; import org.chorem.lima.business.LimaException; import org.chorem.lima.business.ServiceListener; -import org.chorem.lima.business.ejbinterface.FinancialTransactionService; +import org.chorem.lima.business.api.FinancialTransactionService; import org.chorem.lima.business.monitorable.FinancialTransactionServiceMonitorable; import org.chorem.lima.business.monitorable.ImportServiceMonitorable; import org.chorem.lima.entity.Letter; Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/SubAccountComboBoxModel.java =================================================================== --- trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/SubAccountComboBoxModel.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/SubAccountComboBoxModel.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -29,7 +29,7 @@ import org.apache.commons.logging.LogFactory; import org.chorem.lima.business.LimaException; import org.chorem.lima.business.ServiceListener; -import org.chorem.lima.business.ejbinterface.AccountService; +import org.chorem.lima.business.api.AccountService; import org.chorem.lima.business.monitorable.AccountServiceMonitorable; import org.chorem.lima.business.monitorable.ImportServiceMonitorable; import org.chorem.lima.entity.Account; Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/entrybook/EntryBookViewHandler.java =================================================================== --- trunk/lima-swing/src/main/java/org/chorem/lima/ui/entrybook/EntryBookViewHandler.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/entrybook/EntryBookViewHandler.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -36,7 +36,7 @@ import org.chorem.lima.business.LimaException; import org.chorem.lima.business.LimaRuntimeException; import org.chorem.lima.business.ServiceListener; -import org.chorem.lima.business.ejbinterface.EntryBookService; +import org.chorem.lima.business.api.EntryBookService; import org.chorem.lima.business.monitorable.EntryBookServiceMonitorable; import org.chorem.lima.business.monitorable.ImportServiceMonitorable; import org.chorem.lima.entity.EntryBook; Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialperiod/FinancialPeriodTable.java =================================================================== --- trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialperiod/FinancialPeriodTable.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialperiod/FinancialPeriodTable.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -28,7 +28,7 @@ import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.chorem.lima.business.LimaException; -import org.chorem.lima.business.ejbinterface.FinancialPeriodService; +import org.chorem.lima.business.api.FinancialPeriodService; import org.chorem.lima.business.monitorable.FinancialPeriodServiceMonitorable; import org.chorem.lima.entity.ClosedPeriodicEntryBook; import org.chorem.lima.entity.ClosedPeriodicEntryBookImpl; Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialstatementreport/FinancialStatementReportTableModel.java =================================================================== --- trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialstatementreport/FinancialStatementReportTableModel.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialstatementreport/FinancialStatementReportTableModel.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -31,8 +31,8 @@ import org.chorem.lima.beans.FinancialStatementAmounts; import org.chorem.lima.business.LimaException; import org.chorem.lima.business.ServiceListener; -import org.chorem.lima.business.ejbinterface.DocumentService; -import org.chorem.lima.business.ejbinterface.FinancialStatementService; +import org.chorem.lima.business.api.DocumentService; +import org.chorem.lima.business.api.FinancialStatementService; import org.chorem.lima.business.monitorable.DocumentServiceMonitorable; import org.chorem.lima.business.monitorable.FinancialStatementServiceMonitorable; import org.chorem.lima.business.monitorable.FinancialTransactionServiceMonitorable; Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransaction/FinancialTransactionTableModel.java =================================================================== --- trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransaction/FinancialTransactionTableModel.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransaction/FinancialTransactionTableModel.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -31,7 +31,7 @@ import org.chorem.lima.business.LimaBusinessException; import org.chorem.lima.business.LimaException; import org.chorem.lima.business.ServiceListener; -import org.chorem.lima.business.ejbinterface.FinancialTransactionService; +import org.chorem.lima.business.api.FinancialTransactionService; import org.chorem.lima.business.monitorable.FinancialTransactionServiceMonitorable; import org.chorem.lima.business.monitorable.ImportServiceMonitorable; import org.chorem.lima.business.utils.EntryComparator; Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransactionsearch/FinancialTransactionSearchTableModel.java =================================================================== --- trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransactionsearch/FinancialTransactionSearchTableModel.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransactionsearch/FinancialTransactionSearchTableModel.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -32,8 +32,8 @@ import org.chorem.lima.business.LimaBusinessException; import org.chorem.lima.business.LimaException; import org.chorem.lima.business.ServiceListener; -import org.chorem.lima.business.ejbinterface.FinancialPeriodService; -import org.chorem.lima.business.ejbinterface.FinancialTransactionService; +import org.chorem.lima.business.api.FinancialPeriodService; +import org.chorem.lima.business.api.FinancialTransactionService; import org.chorem.lima.business.monitorable.FinancialPeriodServiceMonitorable; import org.chorem.lima.business.monitorable.FinancialTransactionServiceMonitorable; import org.chorem.lima.entity.Account; Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransactionsearch/FinancialTransactionSearchViewHandler.java =================================================================== --- trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransactionsearch/FinancialTransactionSearchViewHandler.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransactionsearch/FinancialTransactionSearchViewHandler.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -31,7 +31,7 @@ import org.chorem.lima.beans.FinancialTransactionSearch; import org.chorem.lima.beans.FinancialTransactionSearchImpl; import org.chorem.lima.business.LimaException; -import org.chorem.lima.business.ejbinterface.FinancialTransactionService; +import org.chorem.lima.business.api.FinancialTransactionService; import org.chorem.lima.business.monitorable.FinancialTransactionServiceMonitorable; import org.chorem.lima.entity.Account; import org.chorem.lima.entity.Entry; Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransactionunbalanced/FinancialTransactionUnbalancedTableModel.java =================================================================== --- trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransactionunbalanced/FinancialTransactionUnbalancedTableModel.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransactionunbalanced/FinancialTransactionUnbalancedTableModel.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -29,7 +29,7 @@ import org.apache.commons.logging.LogFactory; import org.chorem.lima.business.LimaException; import org.chorem.lima.business.ServiceListener; -import org.chorem.lima.business.ejbinterface.FinancialTransactionService; +import org.chorem.lima.business.api.FinancialTransactionService; import org.chorem.lima.business.monitorable.FinancialTransactionServiceMonitorable; import org.chorem.lima.business.utils.EntryComparator; import org.chorem.lima.entity.Account; Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/fiscalperiod/FiscalPeriodViewHandler.java =================================================================== --- trunk/lima-swing/src/main/java/org/chorem/lima/ui/fiscalperiod/FiscalPeriodViewHandler.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/fiscalperiod/FiscalPeriodViewHandler.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -41,8 +41,8 @@ import org.chorem.lima.business.LimaException; import org.chorem.lima.business.LimaRuntimeException; import org.chorem.lima.business.ServiceListener; -import org.chorem.lima.business.ejbinterface.FinancialTransactionService; -import org.chorem.lima.business.ejbinterface.FiscalPeriodService; +import org.chorem.lima.business.api.FinancialTransactionService; +import org.chorem.lima.business.api.FiscalPeriodService; import org.chorem.lima.business.monitorable.FinancialTransactionServiceMonitorable; import org.chorem.lima.business.monitorable.FiscalPeriodServiceMonitorable; import org.chorem.lima.entity.Entry; Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/EntryBooksPane.java =================================================================== --- trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/EntryBooksPane.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/EntryBooksPane.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -36,7 +36,7 @@ import org.chorem.lima.LimaContext; import org.chorem.lima.business.LimaException; import org.chorem.lima.business.ServiceListener; -import org.chorem.lima.business.ejbinterface.EntryBookService; +import org.chorem.lima.business.api.EntryBookService; import org.chorem.lima.business.monitorable.EntryBookServiceMonitorable; import org.chorem.lima.business.monitorable.ImportServiceMonitorable; import org.chorem.lima.entity.EntryBook; Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/FinancialTransactionsPane.java =================================================================== --- trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/FinancialTransactionsPane.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/FinancialTransactionsPane.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -36,8 +36,8 @@ import org.chorem.lima.LimaContext; import org.chorem.lima.business.LimaException; import org.chorem.lima.business.ServiceListener; -import org.chorem.lima.business.ejbinterface.FinancialTransactionService; -import org.chorem.lima.business.ejbinterface.FiscalPeriodService; +import org.chorem.lima.business.api.FinancialTransactionService; +import org.chorem.lima.business.api.FiscalPeriodService; import org.chorem.lima.business.monitorable.FinancialTransactionServiceMonitorable; import org.chorem.lima.business.monitorable.FiscalPeriodServiceMonitorable; import org.chorem.lima.business.monitorable.ImportServiceMonitorable; Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/FiscalPeriodsPane.java =================================================================== --- trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/FiscalPeriodsPane.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/FiscalPeriodsPane.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -36,7 +36,7 @@ import org.chorem.lima.LimaContext; import org.chorem.lima.business.LimaException; import org.chorem.lima.business.ServiceListener; -import org.chorem.lima.business.ejbinterface.FiscalPeriodService; +import org.chorem.lima.business.api.FiscalPeriodService; import org.chorem.lima.business.monitorable.FiscalPeriodServiceMonitorable; import org.chorem.lima.business.monitorable.ImportServiceMonitorable; import org.chorem.lima.entity.FiscalPeriod; Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/identity/IdentityHandler.java =================================================================== --- trunk/lima-swing/src/main/java/org/chorem/lima/ui/identity/IdentityHandler.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/identity/IdentityHandler.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -28,7 +28,7 @@ import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.chorem.lima.business.LimaException; -import org.chorem.lima.business.ejbinterface.IdentityService; +import org.chorem.lima.business.api.IdentityService; import org.chorem.lima.business.monitorable.IdentityServiceMonitorable; import org.chorem.lima.entity.Identity; import org.chorem.lima.entity.IdentityImpl; Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/ledger/LedgerViewHandler.java =================================================================== --- trunk/lima-swing/src/main/java/org/chorem/lima/ui/ledger/LedgerViewHandler.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/ledger/LedgerViewHandler.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -32,8 +32,8 @@ import org.chorem.lima.beans.ReportsDatas; import org.chorem.lima.business.LimaException; import org.chorem.lima.business.ServiceListener; -import org.chorem.lima.business.ejbinterface.FiscalPeriodService; -import org.chorem.lima.business.ejbinterface.ReportService; +import org.chorem.lima.business.api.FiscalPeriodService; +import org.chorem.lima.business.api.ReportService; import org.chorem.lima.business.monitorable.FinancialTransactionServiceMonitorable; import org.chorem.lima.business.monitorable.FiscalPeriodServiceMonitorable; import org.chorem.lima.business.monitorable.HttpServerServiceMonitorable; Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/lettering/LetteringTableModel.java =================================================================== --- trunk/lima-swing/src/main/java/org/chorem/lima/ui/lettering/LetteringTableModel.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/lettering/LetteringTableModel.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -29,7 +29,7 @@ import org.apache.commons.logging.LogFactory; import org.chorem.lima.business.LimaException; import org.chorem.lima.business.ServiceListener; -import org.chorem.lima.business.ejbinterface.FinancialTransactionService; +import org.chorem.lima.business.api.FinancialTransactionService; import org.chorem.lima.business.monitorable.FinancialTransactionServiceMonitorable; import org.chorem.lima.business.monitorable.ImportServiceMonitorable; import org.chorem.lima.business.utils.EntryComparator; Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/vatreports/VatReportTableModel.java =================================================================== --- trunk/lima-swing/src/main/java/org/chorem/lima/ui/vatreports/VatReportTableModel.java 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/vatreports/VatReportTableModel.java 2012-04-11 15:59:40 UTC (rev 3359) @@ -29,7 +29,7 @@ import org.chorem.lima.beans.VatStatementAmounts; import org.chorem.lima.business.LimaException; import org.chorem.lima.business.ServiceListener; -import org.chorem.lima.business.ejbinterface.VatStatementService; +import org.chorem.lima.business.api.VatStatementService; import org.chorem.lima.business.monitorable.FinancialTransactionServiceMonitorable; import org.chorem.lima.business.monitorable.ImportServiceMonitorable; import org.chorem.lima.business.monitorable.VatStatementServiceMonitorable; Modified: trunk/pom.xml =================================================================== --- trunk/pom.xml 2012-04-11 13:34:48 UTC (rev 3358) +++ trunk/pom.xml 2012-04-11 15:59:40 UTC (rev 3359) @@ -10,7 +10,7 @@ <parent> <groupId>org.nuiton</groupId> <artifactId>mavenpom4redmine</artifactId> - <version>3.0.7</version> + <version>3.2</version> </parent> <groupId>org.chorem</groupId> @@ -19,6 +19,7 @@ <modules> <module>lima-callao</module> + <module>lima-business-api</module> <module>lima-business</module> <module>lima-swing</module> </modules>
participants (1)
-
athimel@users.chorem.org