From athimel@users.chorem.org Wed Apr 11 17:59:41 2012
From: athimel@users.chorem.org
To: lima-commits@list.chorem.org
Subject: [Lima-commits] 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
Date: Wed, 11 Apr 2012 17:59:41 +0200
Message-ID: <20120411155941.0D32215988@nuiton.codelutin.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============7543145899348052226=="

--===============7543145899348052226==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

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 publ=
ic 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/LimaExcepti=
on.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/Account=
Service.java
   trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Account=
ServiceLocal.java
   trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Documen=
tService.java
   trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Documen=
tServiceLocal.java
   trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/EntryBo=
okService.java
   trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/EntryBo=
okServiceLocal.java
   trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/ExportS=
ervice.java
   trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/ExportS=
erviceLocal.java
   trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Financi=
alPeriodService.java
   trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Financi=
alPeriodServiceLocal.java
   trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Financi=
alStatementService.java
   trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Financi=
alStatementServiceLocal.java
   trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Financi=
alTransactionService.java
   trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Financi=
alTransactionServiceLocal.java
   trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FiscalP=
eriodService.java
   trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FiscalP=
eriodServiceLocal.java
   trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/HttpSer=
verService.java
   trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/HttpSer=
verServiceLocal.java
   trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Identit=
yService.java
   trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Identit=
yServiceLocal.java
   trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/ImportS=
ervice.java
   trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/ImportS=
erviceLocal.java
   trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Options=
Service.java
   trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Options=
ServiceLocal.java
   trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/ReportS=
ervice.java
   trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/ReportS=
erviceLocal.java
   trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/VatStat=
ementService.java
   trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/VatStat=
ementServiceLocal.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/Forma=
tsEnum.java
   trunk/lima-business-api/src/main/java/org/chorem/lima/business/utils/Impor=
tExportEntityEnum.java
Removed:
   trunk/lima-business/src/main/java/org/chorem/lima/business/LimaException.j=
ava
   trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/Ac=
countService.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/Ac=
countServiceLocal.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/Do=
cumentService.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/Do=
cumentServiceLocal.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/En=
tryBookService.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/En=
tryBookServiceLocal.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/Ex=
portService.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/Ex=
portServiceLocal.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/Fi=
nancialPeriodService.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/Fi=
nancialPeriodServiceLocal.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/Fi=
nancialStatementService.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/Fi=
nancialStatementServiceLocal.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/Fi=
nancialTransactionService.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/Fi=
nancialTransactionServiceLocal.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/Fi=
scalPeriodService.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/Fi=
scalPeriodServiceLocal.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/Ht=
tpServerService.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/Ht=
tpServerServiceLocal.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/Id=
entityService.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/Id=
entityServiceLocal.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/Im=
portService.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/Im=
portServiceLocal.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/Op=
tionsService.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/Op=
tionsServiceLocal.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/Re=
portService.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/Re=
portServiceLocal.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/Va=
tStatementService.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/Va=
tStatementServiceLocal.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/utils/FormatsEn=
um.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/utils/ImportExp=
ortEntityEnum.java
Modified:
   trunk/
   trunk/lima-business/pom.xml
   trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/AccountServ=
iceImpl.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/DocumentSer=
viceImpl.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/EntryBookSe=
rviceImpl.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ExportServi=
ceImpl.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialPe=
riodServiceImpl.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialSt=
atementServiceImpl.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialTr=
ansactionServiceImpl.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FiscalPerio=
dServiceImpl.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/HttpServerS=
erviceImpl.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/IdentitySer=
viceImpl.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ImportServi=
ceImpl.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/OptionsServ=
iceImpl.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ReportServi=
ceImpl.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/VatStatemen=
tServiceImpl.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/Acc=
ountServiceMonitorable.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/Doc=
umentServiceMonitorable.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/Ent=
ryBookServiceMonitorable.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/Exp=
ortServiceMonitorable.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/Fin=
ancialPeriodServiceMonitorable.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/Fin=
ancialStatementServiceMonitorable.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/Fin=
ancialTransactionServiceMonitorable.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/Fis=
calPeriodServiceMonitorable.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/Htt=
pServerServiceMonitorable.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/Ide=
ntityServiceMonitorable.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/Imp=
ortServiceMonitorable.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/Opt=
ionsServiceMonitorable.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/Rep=
ortServiceMonitorable.java
   trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/Vat=
StatementServiceMonitorable.java
   trunk/lima-business/src/test/java/org/chorem/lima/business/AbstractLimaTes=
t.java
   trunk/lima-swing/src/main/java/org/chorem/lima/LimaMain.java
   trunk/lima-swing/src/main/java/org/chorem/lima/ui/account/AccountViewHandl=
er.java
   trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/AccountComboBox=
Model.java
   trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/EntryBookComboB=
oxModel.java
   trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/FinancialPeriod=
ComboBoxModel.java
   trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/FiscalPeriodCom=
boBoxModel.java
   trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/LetterComboBoxM=
odel.java
   trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/SubAccountCombo=
BoxModel.java
   trunk/lima-swing/src/main/java/org/chorem/lima/ui/entrybook/EntryBookViewH=
andler.java
   trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialperiod/Financia=
lPeriodTable.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/Fin=
ancialTransactionTableModel.java
   trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransactionsear=
ch/FinancialTransactionSearchTableModel.java
   trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransactionsear=
ch/FinancialTransactionSearchViewHandler.java
   trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransactionunba=
lanced/FinancialTransactionUnbalancedTableModel.java
   trunk/lima-swing/src/main/java/org/chorem/lima/ui/fiscalperiod/FiscalPerio=
dViewHandler.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/FinancialTransactio=
nsPane.java
   trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/FiscalPeriodsPane.j=
ava
   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/LetteringTable=
Model.java
   trunk/lima-swing/src/main/java/org/chorem/lima/ui/vatreports/VatReportTabl=
eModel.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
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- 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/LimaExcep=
tion.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- 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
- *=20
- * $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=20
- * License, or (at your option) any later version.
- *=20
- * 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.
- *=20
- * You should have received a copy of the GNU General Public=20
- * 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 =3D -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 caus=
e.
-     *
-     * @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/Acco=
untServiceImpl.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/AccountSer=
viceImpl.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/AccountSer=
viceImpl.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/Docu=
mentServiceImpl.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/DocumentSe=
rviceImpl.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/DocumentSe=
rviceImpl.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/Entr=
yBookServiceImpl.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/EntryBookS=
erviceImpl.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/EntryBookS=
erviceImpl.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/Expo=
rtServiceImpl.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ExportServ=
iceImpl.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ExportServ=
iceImpl.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/Fina=
ncialPeriodServiceImpl.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialP=
eriodServiceImpl.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialP=
eriodServiceImpl.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/Fina=
ncialStatementServiceImpl.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialS=
tatementServiceImpl.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialS=
tatementServiceImpl.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/Fina=
ncialTransactionServiceImpl.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialT=
ransactionServiceImpl.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialT=
ransactionServiceImpl.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.FinancialTransactionServiceLoca=
l;
-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/Fisc=
alPeriodServiceImpl.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FiscalPeri=
odServiceImpl.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FiscalPeri=
odServiceImpl.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.FinancialTransactionServiceLoca=
l;
-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/Http=
ServerServiceImpl.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/HttpServer=
ServiceImpl.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/HttpServer=
ServiceImpl.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/Iden=
tityServiceImpl.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/IdentitySe=
rviceImpl.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/IdentitySe=
rviceImpl.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -26,8 +26,8 @@
 package org.chorem.lima.business.ejb;
=20
 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/Impo=
rtServiceImpl.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ImportServ=
iceImpl.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ImportServ=
iceImpl.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.FinancialTransactionServiceLoca=
l;
-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/Opti=
onsServiceImpl.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/OptionsSer=
viceImpl.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/OptionsSer=
viceImpl.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -25,8 +25,8 @@
 package org.chorem.lima.business.ejb;
=20
 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;
=20
 import javax.ejb.Stateless;
=20

Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/Repo=
rtServiceImpl.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ReportServ=
iceImpl.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ReportServ=
iceImpl.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/VatS=
tatementServiceImpl.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/VatStateme=
ntServiceImpl.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/VatStateme=
ntServiceImpl.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/ejbinterf=
ace/AccountService.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/A=
ccountService.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/A=
ccountService.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -1,100 +0,0 @@
-/*
- * #%L
- * Lima business
- *=20
- * $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=20
- * License, or (at your option) any later version.
- *=20
- * 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.
- *=20
- * You should have received a copy of the GNU General Public=20
- * 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.
-     *=20
-     * @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 pref=
ixing 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.
-     *=20
-     * @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 acco=
unt}
-     * 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 LimaE=
xception;
-
-    List<Account> getChildrenAccounts(Account masterAccount) throws LimaExce=
ption;
-}

Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterf=
ace/AccountServiceLocal.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/A=
ccountServiceLocal.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/A=
ccountServiceLocal.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -1,48 +0,0 @@
-/*
- * #%L
- * Lima business
- *=20
- * $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=20
- * License, or (at your option) any later version.
- *=20
- * 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.
- *=20
- * You should have received a copy of the GNU General Public=20
- * 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 topia=
Context) throws LimaException;
-
-}
\ No newline at end of file

Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterf=
ace/DocumentService.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/D=
ocumentService.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/D=
ocumentService.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -1,55 +0,0 @@
-/*
- * #%L
- * Lima business
- *=20
- * $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=20
- * License, or (at your option) any later version.
- *=20
- * 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.
- *=20
- * You should have received a copy of the GNU General Public=20
- * 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, Fo=
rmatsEnum format) throws LimaException;
-
-    void createLedgerDocuments(Date beginDate, Date endDate, FormatsEnum for=
mat) throws LimaException;
-
-    void createEntryBooksDocuments(Date beginDate, Date endDate, FormatsEnum=
 format) throws LimaException;
-
-    void createBalanceDocuments(Date beginDate, Date endDate, FormatsEnum fo=
rmat) throws LimaException;
-
-    void createGeneralEntryBooksDocuments(Date beginDate, Date endDate, Form=
atsEnum 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/ejbinterf=
ace/DocumentServiceLocal.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/D=
ocumentServiceLocal.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/D=
ocumentServiceLocal.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -1,39 +0,0 @@
-/*
- * #%L
- * Lima business
- *=20
- * $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=20
- * License, or (at your option) any later version.
- *=20
- * 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.
- *=20
- * You should have received a copy of the GNU General Public=20
- * 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/ejbinterf=
ace/EntryBookService.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/E=
ntryBookService.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/E=
ntryBookService.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -1,89 +0,0 @@
-/*
- * #%L
- * Lima business
- *=20
- * $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=20
- * License, or (at your option) any later version.
- *=20
- * 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.
- *=20
- * You should have received a copy of the GNU General Public=20
- * 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.
-     *=20
-     * @param code entry book code
-     * @return=20
-     * @throws LimaException
-     */
-    EntryBook getEntryBookByCode(String code) throws LimaException;
-
-    /**
-     * Get all entry book.
-     *=20
-     * @return all entrybook
-     * @throws LimaException
-     */
-    List<EntryBook> getAllEntryBooks() throws LimaException;
-
-    /**
-     * Create new entry book.
-     *=20
-     * @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=C3=A9es.
-     * <p/>
-     * ATTENTION : si un EntryBook est associ=C3=A9 avec des entr=C3=A9es, i=
l 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/ejbinterf=
ace/EntryBookServiceLocal.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/E=
ntryBookServiceLocal.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/E=
ntryBookServiceLocal.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -1,50 +0,0 @@
-/*
- * #%L
- * Lima business
- *=20
- * $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=20
- * License, or (at your option) any later version.
- *=20
- * 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.
- *=20
- * You should have received a copy of the GNU General Public=20
- * 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, TopiaConte=
xt topiaContext) throws LimaException;
-
-}

Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterf=
ace/ExportService.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/E=
xportService.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/E=
xportService.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -1,74 +0,0 @@
-/*
- * #%L
- * Lima business
- *=20
- * $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=20
- * License, or (at your option) any later version.
- *=20
- * 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.
- *=20
- * You should have received a copy of the GNU General Public=20
- * 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/ejbinterf=
ace/ExportServiceLocal.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/E=
xportServiceLocal.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/E=
xportServiceLocal.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -1,44 +0,0 @@
-/*
- * #%L
- * Lima business
- *=20
- * $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=20
- * License, or (at your option) any later version.
- *=20
- * 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.
- *=20
- * You should have received a copy of the GNU General Public=20
- * 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/ejbinterf=
ace/FinancialPeriodService.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/F=
inancialPeriodService.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/F=
inancialPeriodService.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -1,65 +0,0 @@
-/*
- * #%L
- * Lima business
- *=20
- * $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=20
- * License, or (at your option) any later version.
- *=20
- * 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.
- *=20
- * You should have received a copy of the GNU General Public=20
- * 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 LimaExceptio=
n;
-
-    void createFinancialPeriods(List<FinancialPeriod> financialPeriods) thro=
ws LimaException;
-
-    ClosedPeriodicEntryBook getClosedPeriodicEntryBook(EntryBook entryBook,
-                                                       FinancialPeriod finan=
cialPeriod) throws LimaException;
-
-    List<ClosedPeriodicEntryBook> getAllClosedPeriodicEntryBooksFromUnblocke=
dFiscalPeriod() throws LimaException;
-
-    void blockClosedPeriodicEntryBook(ClosedPeriodicEntryBook closedPeriodic=
EntryBook) throws LimaException;
-
-    List<FinancialPeriod> getAllFinancialPeriods() throws LimaException;
-
-    List<FinancialPeriod> getFinancialPeriods(Date beginDate,
-                                              Date endDate) throws LimaExcep=
tion;
-}

Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterf=
ace/FinancialPeriodServiceLocal.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/F=
inancialPeriodServiceLocal.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/F=
inancialPeriodServiceLocal.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -1,57 +0,0 @@
-/*
- * #%L
- * Lima business
- *=20
- * $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=20
- * License, or (at your option) any later version.
- *=20
- * 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.
- *=20
- * You should have received a copy of the GNU General Public=20
- * 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> financi=
alPeriods,
-                                               TopiaContext topiaContext) th=
rows LimaException;
-
-    void blockClosedPeriodicEntryBookWithTransaction(ClosedPeriodicEntryBook=
 closedPeriodicEntryBook,
-                                                     TopiaContext topiaConte=
xt) throws LimaException;
-
-
-}

Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterf=
ace/FinancialStatementService.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/F=
inancialStatementService.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/F=
inancialStatementService.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -1,61 +0,0 @@
-/*
- * #%L
- * Lima business
- *=20
- * $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=20
- * License, or (at your option) any later version.
- *=20
- * 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.
- *=20
- * You should have received a copy of the GNU General Public=20
- * 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 masterFinancialStatemen=
t,
-                                  FinancialStatement financialStatement) thr=
ows LimaException;
-
-    void updateFinancialStatement(FinancialStatement financialStatement) thr=
ows LimaException;
-
-    void removeFinancialStatement(FinancialStatement financialStatement) thr=
ows LimaException;
-
-    void removeAllFinancialStatement() throws LimaException;
-
-    List<FinancialStatement> getAllFinancialStatements() throws LimaExceptio=
n;
-
-    List<FinancialStatement> getChildrenFinancialStatement(FinancialStatemen=
t financialStatement) throws LimaException;
-
-    List<FinancialStatement> getAllChildrenFinancialStatement(FinancialState=
ment financialStatement,
-                                                              List<Financial=
Statement> financialStatements) throws LimaException;
-
-    List<FinancialStatementAmounts> financialStatementReport(Date selectedBe=
ginDate,
-                                                             Date selectedEn=
dDate) throws LimaException;
-
-    String checkFinancialStatementChart() throws LimaException;
-
-}

Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterf=
ace/FinancialStatementServiceLocal.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/F=
inancialStatementServiceLocal.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/F=
inancialStatementServiceLocal.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -1,42 +0,0 @@
-/*
- * #%L
- * Lima business
- *=20
- * $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=20
- * License, or (at your option) any later version.
- *=20
- * 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.
- *=20
- * You should have received a copy of the GNU General Public=20
- * 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 FinancialStatementSe=
rvice {
-
-    void createFinancialStatementWithTransaction(FinancialStatement masterFi=
nancialStatement,
-                                                 FinancialStatement financia=
lStatement,
-                                                 TopiaContext topiaContext) =
throws LimaException;
-
-
-}

Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterf=
ace/FinancialTransactionService.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/F=
inancialTransactionService.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/F=
inancialTransactionService.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -1,93 +0,0 @@
-/*
- * #%L
- * Lima business
- *=20
- * $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=20
- * License, or (at your option) any later version.
- *=20
- * 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.
- *=20
- * You should have received a copy of the GNU General Public=20
- * 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 fin=
ancialtransaction) throws LimaException;
-
-    void updateFinancialTransaction(FinancialTransaction financialtransactio=
n) throws LimaException;
-
-    void removeFinancialTransaction(FinancialTransaction financialtransactio=
n) throws LimaException;
-
-    List<FinancialTransaction> getAllFinancialTransactionsForFinancialPeriod=
(FinancialPeriod period) throws LimaException;
-
-    List<FinancialTransaction> getAllFinancialTransactionsFromDateToDate(Dat=
e beginDate,
-                                                                         Dat=
e endDate) throws LimaException;
-
-    List<FinancialTransaction> getAllFinancialTransactionsForEntryBookAndFin=
ancialPeriod(EntryBook entryBook,
-                                                                            =
             FinancialPeriod period) throws LimaException;
-
-    List<FinancialTransaction> getAllInexactFinancialTransactions(FiscalPeri=
od fiscalPeriod) throws LimaException;
-
-    List<FinancialTransaction> getAllFinancialTransactionsBalanced(FiscalPer=
iod fiscalPeriod) throws LimaException;
-
-    List<Object> searchFinancialTransaction(FinancialTransactionSearch finan=
cialTransactionSearch) 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/ejbinterf=
ace/FinancialTransactionServiceLocal.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/F=
inancialTransactionServiceLocal.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/F=
inancialTransactionServiceLocal.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -1,57 +0,0 @@
-/*
- * #%L
- * Lima business
- *=20
- * $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=20
- * License, or (at your option) any later version.
- *=20
- * 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.
- *=20
- * You should have received a copy of the GNU General Public=20
- * 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 FinancialTransacti=
onService {
-
-    FinancialTransaction createFinancialTransactionWithTransaction(Financial=
Transaction financialtransaction,
-                                                                   TopiaCont=
ext topiaContext) throws LimaException;
-
-    void updateFinancialTransactionWithTransaction(FinancialTransaction fina=
ncialtransaction,
-                                                   TopiaContext topiaContext=
) throws LimaException;
-
-    Entry createEntryWithTransaction(Entry entry, TopiaContext topiaContext)=
 throws LimaException;
-
-
-}

Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterf=
ace/FiscalPeriodService.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/F=
iscalPeriodService.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/F=
iscalPeriodService.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -1,62 +0,0 @@
-/*
- * #%L
- * Lima business
- *=20
- * $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=20
- * License, or (at your option) any later version.
- *=20
- * 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.
- *=20
- * You should have received a copy of the GNU General Public=20
- * 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 LimaEx=
ception;
-
-    FiscalPeriod blockFiscalPeriod(FiscalPeriod fiscalPeriod) throws LimaExc=
eption;
-
-    void addRetainedEarnings(FiscalPeriod fiscalPeriod,
-                             boolean newyear,
-                             EntryBook entryBook) throws LimaException;
-}

Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterf=
ace/FiscalPeriodServiceLocal.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/F=
iscalPeriodServiceLocal.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/F=
iscalPeriodServiceLocal.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -1,50 +0,0 @@
-/*
- * #%L
- * Lima business
- *=20
- * $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=20
- * License, or (at your option) any later version.
- *=20
- * 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.
- *=20
- * You should have received a copy of the GNU General Public=20
- * 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/ejbinterf=
ace/HttpServerService.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/H=
ttpServerService.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/H=
ttpServerService.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -1,37 +0,0 @@
-/*
- * #%L
- * Lima business
- *=20
- * $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=20
- * License, or (at your option) any later version.
- *=20
- * 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.
- *=20
- * You should have received a copy of the GNU General Public=20
- * 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/ejbinterf=
ace/HttpServerServiceLocal.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/H=
ttpServerServiceLocal.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/H=
ttpServerServiceLocal.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -1,33 +0,0 @@
-/*
- * #%L
- * Lima business
- *=20
- * $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=20
- * License, or (at your option) any later version.
- *=20
- * 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.
- *=20
- * You should have received a copy of the GNU General Public=20
- * 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/ejbinterf=
ace/IdentityService.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/I=
dentityService.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/I=
dentityService.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -1,40 +0,0 @@
-/*
- * #%L
- * Lima business
- *=20
- * $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=20
- * License, or (at your option) any later version.
- *=20
- * 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.
- *=20
- * You should have received a copy of the GNU General Public=20
- * 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/ejbinterf=
ace/IdentityServiceLocal.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/I=
dentityServiceLocal.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/I=
dentityServiceLocal.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -1,42 +0,0 @@
-/*
- * #%L
- * Lima business
- *=20
- * $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=20
- * License, or (at your option) any later version.
- *=20
- * 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.
- *=20
- * You should have received a copy of the GNU General Public=20
- * 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 Lim=
aException;
-
-    Identity getIdentityWithTransaction(TopiaContext topiaContext) throws Li=
maException;
-
-}

Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterf=
ace/ImportService.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/I=
mportService.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/I=
mportService.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -1,87 +0,0 @@
-/*
- * #%L
- * Lima business
- *=20
- * $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=20
- * License, or (at your option) any later version.
- *=20
- * 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.
- *=20
- * You should have received a copy of the GNU General Public=20
- * 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.
-     *=20
-     * Read first line to detect file type and call {@link #importAsCSV(Stri=
ng, ImportExportEntityEnum)}.
-     *=20
-     * @param data import file content as string (remote service can't take =
File)
-     * @return result log
-     * @throws LimaException=20
-     */
-    String importAllAsCSV(String data) throws LimaException;
-
-    /**
-     * Import content as CSV depending on import type.
-     *=20
-     * @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/ejbinterf=
ace/ImportServiceLocal.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/I=
mportServiceLocal.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/I=
mportServiceLocal.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -1,44 +0,0 @@
-/*
- * #%L
- * Lima business
- *=20
- * $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=20
- * License, or (at your option) any later version.
- *=20
- * 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.
- *=20
- * You should have received a copy of the GNU General Public=20
- * 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/ejbinterf=
ace/OptionsService.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/O=
ptionsService.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/O=
ptionsService.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -1,57 +0,0 @@
-/*
- * #%L
- * Lima :: business
- *=20
- * $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=20
- * License, or (at your option) any later version.
- *=20
- * 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.
- *=20
- * You should have received a copy of the GNU General Public=20
- * 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/ejbinterf=
ace/OptionsServiceLocal.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/O=
ptionsServiceLocal.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/O=
ptionsServiceLocal.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -1,32 +0,0 @@
-/*
- * #%L
- * Lima :: business
- *=20
- * $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=20
- * License, or (at your option) any later version.
- *=20
- * 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.
- *=20
- * You should have received a copy of the GNU General Public=20
- * 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/ejbinterf=
ace/ReportService.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/R=
eportService.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/R=
eportService.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -1,150 +0,0 @@
-/*
- * #%L
- * Lima business
- *=20
- * $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=20
- * License, or (at your option) any later version.
- *=20
- * 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.
- *=20
- * You should have received a copy of the GNU General Public=20
- * 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 LimaE=
xception;
-
-    /**
-     * 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 LimaExcepti=
on;
-
-
-    /**
-     * 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 topia=
Context) 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 LimaExceptio=
n;
-
-    /**
-     * 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/ejbinterf=
ace/ReportServiceLocal.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/R=
eportServiceLocal.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/R=
eportServiceLocal.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -1,62 +0,0 @@
-/*
- * #%L
- * Lima business
- *=20
- * $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=20
- * License, or (at your option) any later version.
- *=20
- * 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.
- *=20
- * You should have received a copy of the GNU General Public=20
- * 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 thirdPartAcco=
untsMode,
-                                                       Date beginDate,
-                                                       Date endDate,
-                                                       TopiaContext topiaCon=
text) throws LimaException;
-
-}

Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterf=
ace/VatStatementService.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/V=
atStatementService.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/V=
atStatementService.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -1,64 +0,0 @@
-/*
- * #%L
- * Lima :: business
- *=20
- * $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=20
- * License, or (at your option) any later version.
- *=20
- * 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.
- *=20
- * You should have received a copy of the GNU General Public=20
- * 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 masterVatStateme=
nt) throws LimaException;
-
-    void updateVatStatement(VatStatement vatStatement) throws LimaException;
-
-    VatStatementAmounts vatStatementAmounts(VatStatement vatStatement,
-                                            Date selectedBeginDate,
-                                            Date selectedEndDate) throws Lim=
aException;
-
-    VatStatement findVatStatementByString(String label) throws LimaException;
-
-    List<VatStatementAmounts> vatStatementReport(Date beginDate,
-                                                 Date endDate) throws LimaEx=
ception;
-
-    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/ejbinterf=
ace/VatStatementServiceLocal.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/V=
atStatementServiceLocal.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/V=
atStatementServiceLocal.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -1,54 +0,0 @@
-/*
- * #%L
- * Lima :: business
- *=20
- * $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=20
- * License, or (at your option) any later version.
- *=20
- * 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.
- *=20
- * You should have received a copy of the GNU General Public=20
- * 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) throw=
s LimaException;
-
-    VatStatementDatas vatStatementReport(VatStatement vatStatement,
-                                         Date selectedBeginDate,
-                                         Date selectedEndDate,
-                                         VatStatementDatas result,
-                                         TopiaContext topiaContext) throws L=
imaException;
-
-}

Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/monitora=
ble/AccountServiceMonitorable.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/Ac=
countServiceMonitorable.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/Ac=
countServiceMonitorable.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -26,7 +26,7 @@
 package org.chorem.lima.business.monitorable;
=20
 import org.chorem.lima.business.ServiceMonitorable;
-import org.chorem.lima.business.ejbinterface.AccountService;
+import org.chorem.lima.business.api.AccountService;
=20
 public interface AccountServiceMonitorable extends AccountService, ServiceMo=
nitorable {
=20

Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/monitora=
ble/DocumentServiceMonitorable.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/Do=
cumentServiceMonitorable.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/Do=
cumentServiceMonitorable.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -26,7 +26,7 @@
 package org.chorem.lima.business.monitorable;
=20
 import org.chorem.lima.business.ServiceMonitorable;
-import org.chorem.lima.business.ejbinterface.DocumentService;
+import org.chorem.lima.business.api.DocumentService;
=20
 public interface DocumentServiceMonitorable extends DocumentService, Service=
Monitorable {
=20

Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/monitora=
ble/EntryBookServiceMonitorable.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/En=
tryBookServiceMonitorable.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/En=
tryBookServiceMonitorable.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -26,7 +26,7 @@
 package org.chorem.lima.business.monitorable;
=20
 import org.chorem.lima.business.ServiceMonitorable;
-import org.chorem.lima.business.ejbinterface.EntryBookService;
+import org.chorem.lima.business.api.EntryBookService;
=20
 public interface EntryBookServiceMonitorable extends EntryBookService, Servi=
ceMonitorable {
=20

Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/monitora=
ble/ExportServiceMonitorable.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/Ex=
portServiceMonitorable.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/Ex=
portServiceMonitorable.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -26,7 +26,7 @@
 package org.chorem.lima.business.monitorable;
=20
 import org.chorem.lima.business.ServiceMonitorable;
-import org.chorem.lima.business.ejbinterface.ExportService;
+import org.chorem.lima.business.api.ExportService;
=20
 public interface ExportServiceMonitorable extends ExportService, ServiceMoni=
torable {
=20

Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/monitora=
ble/FinancialPeriodServiceMonitorable.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/Fi=
nancialPeriodServiceMonitorable.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/Fi=
nancialPeriodServiceMonitorable.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -26,7 +26,7 @@
 package org.chorem.lima.business.monitorable;
=20
 import org.chorem.lima.business.ServiceMonitorable;
-import org.chorem.lima.business.ejbinterface.FinancialPeriodService;
+import org.chorem.lima.business.api.FinancialPeriodService;
=20
 public interface FinancialPeriodServiceMonitorable extends FinancialPeriodSe=
rvice, ServiceMonitorable {
=20

Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/monitora=
ble/FinancialStatementServiceMonitorable.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/Fi=
nancialStatementServiceMonitorable.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/Fi=
nancialStatementServiceMonitorable.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -26,7 +26,7 @@
 package org.chorem.lima.business.monitorable;
=20
 import org.chorem.lima.business.ServiceMonitorable;
-import org.chorem.lima.business.ejbinterface.FinancialStatementService;
+import org.chorem.lima.business.api.FinancialStatementService;
=20
 public interface FinancialStatementServiceMonitorable extends FinancialState=
mentService, ServiceMonitorable {
=20

Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/monitora=
ble/FinancialTransactionServiceMonitorable.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/Fi=
nancialTransactionServiceMonitorable.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/Fi=
nancialTransactionServiceMonitorable.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -26,7 +26,7 @@
 package org.chorem.lima.business.monitorable;
=20
 import org.chorem.lima.business.ServiceMonitorable;
-import org.chorem.lima.business.ejbinterface.FinancialTransactionService;
+import org.chorem.lima.business.api.FinancialTransactionService;
=20
 public interface FinancialTransactionServiceMonitorable extends FinancialTra=
nsactionService, ServiceMonitorable {
=20

Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/monitora=
ble/FiscalPeriodServiceMonitorable.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/Fi=
scalPeriodServiceMonitorable.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/Fi=
scalPeriodServiceMonitorable.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -26,7 +26,7 @@
 package org.chorem.lima.business.monitorable;
=20
 import org.chorem.lima.business.ServiceMonitorable;
-import org.chorem.lima.business.ejbinterface.FiscalPeriodService;
+import org.chorem.lima.business.api.FiscalPeriodService;
=20
 public interface FiscalPeriodServiceMonitorable extends FiscalPeriodService,=
 ServiceMonitorable {
=20

Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/monitora=
ble/HttpServerServiceMonitorable.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/Ht=
tpServerServiceMonitorable.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/Ht=
tpServerServiceMonitorable.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -26,7 +26,7 @@
 package org.chorem.lima.business.monitorable;
=20
 import org.chorem.lima.business.ServiceMonitorable;
-import org.chorem.lima.business.ejbinterface.HttpServerService;
+import org.chorem.lima.business.api.HttpServerService;
=20
 public interface HttpServerServiceMonitorable extends HttpServerService, Ser=
viceMonitorable {
=20

Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/monitora=
ble/IdentityServiceMonitorable.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/Id=
entityServiceMonitorable.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/Id=
entityServiceMonitorable.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -26,7 +26,7 @@
 package org.chorem.lima.business.monitorable;
=20
 import org.chorem.lima.business.ServiceMonitorable;
-import org.chorem.lima.business.ejbinterface.IdentityService;
+import org.chorem.lima.business.api.IdentityService;
=20
 public interface IdentityServiceMonitorable extends IdentityService, Service=
Monitorable {
=20

Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/monitora=
ble/ImportServiceMonitorable.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/Im=
portServiceMonitorable.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/Im=
portServiceMonitorable.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -26,7 +26,7 @@
 package org.chorem.lima.business.monitorable;
=20
 import org.chorem.lima.business.ServiceMonitorable;
-import org.chorem.lima.business.ejbinterface.ImportService;
+import org.chorem.lima.business.api.ImportService;
=20
 public interface ImportServiceMonitorable extends ImportService, ServiceMoni=
torable {
=20

Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/monitora=
ble/OptionsServiceMonitorable.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/Op=
tionsServiceMonitorable.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/Op=
tionsServiceMonitorable.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, ServiceMo=
nitorable {
-
-}
+import org.chorem.lima.business.api.OptionsService;
+
+public interface OptionsServiceMonitorable extends OptionsService, ServiceMo=
nitorable {
+
+}

Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/monitora=
ble/ReportServiceMonitorable.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/Re=
portServiceMonitorable.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/Re=
portServiceMonitorable.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -26,7 +26,7 @@
 package org.chorem.lima.business.monitorable;
=20
 import org.chorem.lima.business.ServiceMonitorable;
-import org.chorem.lima.business.ejbinterface.ReportService;
+import org.chorem.lima.business.api.ReportService;
=20
 public interface ReportServiceMonitorable extends ReportService, ServiceMoni=
torable {
=20

Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/monitora=
ble/VatStatementServiceMonitorable.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/Va=
tStatementServiceMonitorable.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/Va=
tStatementServiceMonitorable.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -25,7 +25,7 @@
 package org.chorem.lima.business.monitorable;
=20
 import org.chorem.lima.business.ServiceMonitorable;
-import org.chorem.lima.business.ejbinterface.VatStatementService;
+import org.chorem.lima.business.api.VatStatementService;
=20
 public interface VatStatementServiceMonitorable extends VatStatementService,=
 ServiceMonitorable {
=20

Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/utils/For=
matsEnum.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/utils/FormatsE=
num.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/utils/FormatsE=
num.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -1,70 +0,0 @@
-/*
- * #%L
- * Lima business
- *=20
- * $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=20
- * License, or (at your option) any later version.
- *=20
- * 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.
- *=20
- * You should have received a copy of the GNU General Public=20
- * 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 descriptio=
n) {
-        this.extension =3D extension;
-        this.mimeType =3D mimeType;
-        this.description =3D description;
-    }
-
-    public String getExtension() {
-        return extension;
-    }
-
-    public String getMimeType() {
-        return mimeType;
-    }
-
-    public String getDescription() {
-        return description;
-    }
-
-    public static FormatsEnum valueOfExtension(String extension) {
-        FormatsEnum value =3D null;
-
-        for (FormatsEnum formatsEnum : FormatsEnum.values()) {
-            if (extension.equals(formatsEnum.getExtension())) {
-                value =3D formatsEnum;
-                break;
-            }
-        }
-        return value;
-    }
-
-
-}

Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/utils/Imp=
ortExportEntityEnum.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/main/java/org/chorem/lima/business/utils/ImportEx=
portEntityEnum.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/utils/ImportEx=
portEntityEnum.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -1,64 +0,0 @@
-/*
- * #%L
- * Lima business
- *=20
- * $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=20
- * License, or (at your option) any later version.
- *=20
- * 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.
- *=20
- * You should have received a copy of the GNU General Public=20
- * 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 =3D label;
-    }
-
-    public String getLabel() {
-        return label;
-    }
-
-    public static ImportExportEntityEnum valueOfLabel(String label) {
-        ImportExportEntityEnum value =3D null;
-
-        for (ImportExportEntityEnum importExportEntityEnum : ImportExportEnt=
ityEnum.values()) {
-            if (label.equals(importExportEntityEnum.label)) {
-                value =3D importExportEntityEnum;
-                break;
-            }
-        }
-        return value;
-    }
-}
-
-

Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/Abstract=
LimaTest.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business/src/test/java/org/chorem/lima/business/AbstractLimaTe=
st.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-business/src/test/java/org/chorem/lima/business/AbstractLimaTe=
st.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.FinancialPeriodServiceMonitorabl=
e;


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
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- 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=3D"http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation=3D"http://maven.apache.org/POM/4.0.0 http://mave=
n.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/LimaEx=
ception.java (from rev 3358, trunk/lima-business/src/main/java/org/chorem/lim=
a/business/LimaException.java)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/LimaExcept=
ion.java	                        (rev 0)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/LimaExcept=
ion.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -0,0 +1,60 @@
+/*
+ * #%L
+ * Lima business
+ *=20
+ * $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=20
+ * License, or (at your option) any later version.
+ *=20
+ * 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.
+ *=20
+ * You should have received a copy of the GNU General Public=20
+ * 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 =3D -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 caus=
e.
+     *
+     * @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/Ac=
countService.java (from rev 3358, trunk/lima-business/src/main/java/org/chore=
m/lima/business/ejbinterface/AccountService.java)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Accoun=
tService.java	                        (rev 0)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Accoun=
tService.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -0,0 +1,100 @@
+/*
+ * #%L
+ * Lima business
+ *=20
+ * $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=20
+ * License, or (at your option) any later version.
+ *=20
+ * 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.
+ *=20
+ * You should have received a copy of the GNU General Public=20
+ * 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.
+     *=20
+     * @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 pref=
ixing 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.
+     *=20
+     * @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 acco=
unt}
+     * 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 LimaE=
xception;
+
+    List<Account> getChildrenAccounts(Account masterAccount) throws LimaExce=
ption;
+}

Copied: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Ac=
countServiceLocal.java (from rev 3358, trunk/lima-business/src/main/java/org/=
chorem/lima/business/ejbinterface/AccountServiceLocal.java)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Accoun=
tServiceLocal.java	                        (rev 0)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Accoun=
tServiceLocal.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -0,0 +1,48 @@
+/*
+ * #%L
+ * Lima business
+ *=20
+ * $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=20
+ * License, or (at your option) any later version.
+ *=20
+ * 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.
+ *=20
+ * You should have received a copy of the GNU General Public=20
+ * 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 topia=
Context) throws LimaException;
+
+}
\ No newline at end of file

Copied: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Do=
cumentService.java (from rev 3358, trunk/lima-business/src/main/java/org/chor=
em/lima/business/ejbinterface/DocumentService.java)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Docume=
ntService.java	                        (rev 0)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Docume=
ntService.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -0,0 +1,55 @@
+/*
+ * #%L
+ * Lima business
+ *=20
+ * $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=20
+ * License, or (at your option) any later version.
+ *=20
+ * 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.
+ *=20
+ * You should have received a copy of the GNU General Public=20
+ * 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, Fo=
rmatsEnum format) throws LimaException;
+
+    void createLedgerDocuments(Date beginDate, Date endDate, FormatsEnum for=
mat) throws LimaException;
+
+    void createEntryBooksDocuments(Date beginDate, Date endDate, FormatsEnum=
 format) throws LimaException;
+
+    void createBalanceDocuments(Date beginDate, Date endDate, FormatsEnum fo=
rmat) throws LimaException;
+
+    void createGeneralEntryBooksDocuments(Date beginDate, Date endDate, Form=
atsEnum 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/Do=
cumentServiceLocal.java (from rev 3358, trunk/lima-business/src/main/java/org=
/chorem/lima/business/ejbinterface/DocumentServiceLocal.java)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Docume=
ntServiceLocal.java	                        (rev 0)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Docume=
ntServiceLocal.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -0,0 +1,39 @@
+/*
+ * #%L
+ * Lima business
+ *=20
+ * $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=20
+ * License, or (at your option) any later version.
+ *=20
+ * 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.
+ *=20
+ * You should have received a copy of the GNU General Public=20
+ * 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/En=
tryBookService.java (from rev 3358, trunk/lima-business/src/main/java/org/cho=
rem/lima/business/ejbinterface/EntryBookService.java)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/EntryB=
ookService.java	                        (rev 0)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/EntryB=
ookService.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -0,0 +1,89 @@
+/*
+ * #%L
+ * Lima business
+ *=20
+ * $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=20
+ * License, or (at your option) any later version.
+ *=20
+ * 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.
+ *=20
+ * You should have received a copy of the GNU General Public=20
+ * 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.
+     *=20
+     * @param code entry book code
+     * @return=20
+     * @throws LimaException
+     */
+    EntryBook getEntryBookByCode(String code) throws LimaException;
+
+    /**
+     * Get all entry book.
+     *=20
+     * @return all entrybook
+     * @throws LimaException
+     */
+    List<EntryBook> getAllEntryBooks() throws LimaException;
+
+    /**
+     * Create new entry book.
+     *=20
+     * @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=C3=A9es.
+     * <p/>
+     * ATTENTION : si un EntryBook est associ=C3=A9 avec des entr=C3=A9es, i=
l 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/En=
tryBookServiceLocal.java (from rev 3358, trunk/lima-business/src/main/java/or=
g/chorem/lima/business/ejbinterface/EntryBookServiceLocal.java)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/EntryB=
ookServiceLocal.java	                        (rev 0)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/EntryB=
ookServiceLocal.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -0,0 +1,50 @@
+/*
+ * #%L
+ * Lima business
+ *=20
+ * $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=20
+ * License, or (at your option) any later version.
+ *=20
+ * 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.
+ *=20
+ * You should have received a copy of the GNU General Public=20
+ * 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, TopiaConte=
xt topiaContext) throws LimaException;
+
+}

Copied: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Ex=
portService.java (from rev 3358, trunk/lima-business/src/main/java/org/chorem=
/lima/business/ejbinterface/ExportService.java)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Export=
Service.java	                        (rev 0)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Export=
Service.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -0,0 +1,74 @@
+/*
+ * #%L
+ * Lima business
+ *=20
+ * $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=20
+ * License, or (at your option) any later version.
+ *=20
+ * 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.
+ *=20
+ * You should have received a copy of the GNU General Public=20
+ * 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/Ex=
portServiceLocal.java (from rev 3358, trunk/lima-business/src/main/java/org/c=
horem/lima/business/ejbinterface/ExportServiceLocal.java)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Export=
ServiceLocal.java	                        (rev 0)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Export=
ServiceLocal.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -0,0 +1,44 @@
+/*
+ * #%L
+ * Lima business
+ *=20
+ * $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=20
+ * License, or (at your option) any later version.
+ *=20
+ * 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.
+ *=20
+ * You should have received a copy of the GNU General Public=20
+ * 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/Fi=
nancialPeriodService.java (from rev 3358, trunk/lima-business/src/main/java/o=
rg/chorem/lima/business/ejbinterface/FinancialPeriodService.java)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Financ=
ialPeriodService.java	                        (rev 0)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Financ=
ialPeriodService.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -0,0 +1,65 @@
+/*
+ * #%L
+ * Lima business
+ *=20
+ * $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=20
+ * License, or (at your option) any later version.
+ *=20
+ * 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.
+ *=20
+ * You should have received a copy of the GNU General Public=20
+ * 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 LimaExceptio=
n;
+
+    void createFinancialPeriods(List<FinancialPeriod> financialPeriods) thro=
ws LimaException;
+
+    ClosedPeriodicEntryBook getClosedPeriodicEntryBook(EntryBook entryBook,
+                                                       FinancialPeriod finan=
cialPeriod) throws LimaException;
+
+    List<ClosedPeriodicEntryBook> getAllClosedPeriodicEntryBooksFromUnblocke=
dFiscalPeriod() throws LimaException;
+
+    void blockClosedPeriodicEntryBook(ClosedPeriodicEntryBook closedPeriodic=
EntryBook) throws LimaException;
+
+    List<FinancialPeriod> getAllFinancialPeriods() throws LimaException;
+
+    List<FinancialPeriod> getFinancialPeriods(Date beginDate,
+                                              Date endDate) throws LimaExcep=
tion;
+}

Copied: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Fi=
nancialPeriodServiceLocal.java (from rev 3358, trunk/lima-business/src/main/j=
ava/org/chorem/lima/business/ejbinterface/FinancialPeriodServiceLocal.java)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Financ=
ialPeriodServiceLocal.java	                        (rev 0)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Financ=
ialPeriodServiceLocal.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -0,0 +1,57 @@
+/*
+ * #%L
+ * Lima business
+ *=20
+ * $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=20
+ * License, or (at your option) any later version.
+ *=20
+ * 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.
+ *=20
+ * You should have received a copy of the GNU General Public=20
+ * 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> financi=
alPeriods,
+                                               TopiaContext topiaContext) th=
rows LimaException;
+
+    void blockClosedPeriodicEntryBookWithTransaction(ClosedPeriodicEntryBook=
 closedPeriodicEntryBook,
+                                                     TopiaContext topiaConte=
xt) throws LimaException;
+
+
+}

Copied: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Fi=
nancialStatementService.java (from rev 3358, trunk/lima-business/src/main/jav=
a/org/chorem/lima/business/ejbinterface/FinancialStatementService.java)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Financ=
ialStatementService.java	                        (rev 0)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Financ=
ialStatementService.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -0,0 +1,61 @@
+/*
+ * #%L
+ * Lima business
+ *=20
+ * $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=20
+ * License, or (at your option) any later version.
+ *=20
+ * 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.
+ *=20
+ * You should have received a copy of the GNU General Public=20
+ * 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 masterFinancialStatemen=
t,
+                                  FinancialStatement financialStatement) thr=
ows LimaException;
+
+    void updateFinancialStatement(FinancialStatement financialStatement) thr=
ows LimaException;
+
+    void removeFinancialStatement(FinancialStatement financialStatement) thr=
ows LimaException;
+
+    void removeAllFinancialStatement() throws LimaException;
+
+    List<FinancialStatement> getAllFinancialStatements() throws LimaExceptio=
n;
+
+    List<FinancialStatement> getChildrenFinancialStatement(FinancialStatemen=
t financialStatement) throws LimaException;
+
+    List<FinancialStatement> getAllChildrenFinancialStatement(FinancialState=
ment financialStatement,
+                                                              List<Financial=
Statement> financialStatements) throws LimaException;
+
+    List<FinancialStatementAmounts> financialStatementReport(Date selectedBe=
ginDate,
+                                                             Date selectedEn=
dDate) throws LimaException;
+
+    String checkFinancialStatementChart() throws LimaException;
+
+}

Copied: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Fi=
nancialStatementServiceLocal.java (from rev 3358, trunk/lima-business/src/mai=
n/java/org/chorem/lima/business/ejbinterface/FinancialStatementServiceLocal.j=
ava)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Financ=
ialStatementServiceLocal.java	                        (rev 0)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Financ=
ialStatementServiceLocal.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -0,0 +1,42 @@
+/*
+ * #%L
+ * Lima business
+ *=20
+ * $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=20
+ * License, or (at your option) any later version.
+ *=20
+ * 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.
+ *=20
+ * You should have received a copy of the GNU General Public=20
+ * 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 FinancialStatementSe=
rvice {
+
+    void createFinancialStatementWithTransaction(FinancialStatement masterFi=
nancialStatement,
+                                                 FinancialStatement financia=
lStatement,
+                                                 TopiaContext topiaContext) =
throws LimaException;
+
+
+}

Copied: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Fi=
nancialTransactionService.java (from rev 3358, trunk/lima-business/src/main/j=
ava/org/chorem/lima/business/ejbinterface/FinancialTransactionService.java)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Financ=
ialTransactionService.java	                        (rev 0)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Financ=
ialTransactionService.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -0,0 +1,93 @@
+/*
+ * #%L
+ * Lima business
+ *=20
+ * $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=20
+ * License, or (at your option) any later version.
+ *=20
+ * 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.
+ *=20
+ * You should have received a copy of the GNU General Public=20
+ * 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 fin=
ancialtransaction) throws LimaException;
+
+    void updateFinancialTransaction(FinancialTransaction financialtransactio=
n) throws LimaException;
+
+    void removeFinancialTransaction(FinancialTransaction financialtransactio=
n) throws LimaException;
+
+    List<FinancialTransaction> getAllFinancialTransactionsForFinancialPeriod=
(FinancialPeriod period) throws LimaException;
+
+    List<FinancialTransaction> getAllFinancialTransactionsFromDateToDate(Dat=
e beginDate,
+                                                                         Dat=
e endDate) throws LimaException;
+
+    List<FinancialTransaction> getAllFinancialTransactionsForEntryBookAndFin=
ancialPeriod(EntryBook entryBook,
+                                                                            =
             FinancialPeriod period) throws LimaException;
+
+    List<FinancialTransaction> getAllInexactFinancialTransactions(FiscalPeri=
od fiscalPeriod) throws LimaException;
+
+    List<FinancialTransaction> getAllFinancialTransactionsBalanced(FiscalPer=
iod fiscalPeriod) throws LimaException;
+
+    List<Object> searchFinancialTransaction(FinancialTransactionSearch finan=
cialTransactionSearch) 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/Fi=
nancialTransactionServiceLocal.java (from rev 3358, trunk/lima-business/src/m=
ain/java/org/chorem/lima/business/ejbinterface/FinancialTransactionServiceLoc=
al.java)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Financ=
ialTransactionServiceLocal.java	                        (rev 0)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Financ=
ialTransactionServiceLocal.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -0,0 +1,57 @@
+/*
+ * #%L
+ * Lima business
+ *=20
+ * $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=20
+ * License, or (at your option) any later version.
+ *=20
+ * 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.
+ *=20
+ * You should have received a copy of the GNU General Public=20
+ * 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 FinancialTransacti=
onService {
+
+    FinancialTransaction createFinancialTransactionWithTransaction(Financial=
Transaction financialtransaction,
+                                                                   TopiaCont=
ext topiaContext) throws LimaException;
+
+    void updateFinancialTransactionWithTransaction(FinancialTransaction fina=
ncialtransaction,
+                                                   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/Fi=
scalPeriodService.java (from rev 3358, trunk/lima-business/src/main/java/org/=
chorem/lima/business/ejbinterface/FiscalPeriodService.java)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Fiscal=
PeriodService.java	                        (rev 0)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Fiscal=
PeriodService.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -0,0 +1,62 @@
+/*
+ * #%L
+ * Lima business
+ *=20
+ * $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=20
+ * License, or (at your option) any later version.
+ *=20
+ * 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.
+ *=20
+ * You should have received a copy of the GNU General Public=20
+ * 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 LimaEx=
ception;
+
+    FiscalPeriod blockFiscalPeriod(FiscalPeriod fiscalPeriod) throws LimaExc=
eption;
+
+    void addRetainedEarnings(FiscalPeriod fiscalPeriod,
+                             boolean newyear,
+                             EntryBook entryBook) throws LimaException;
+}

Copied: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Fi=
scalPeriodServiceLocal.java (from rev 3358, trunk/lima-business/src/main/java=
/org/chorem/lima/business/ejbinterface/FiscalPeriodServiceLocal.java)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Fiscal=
PeriodServiceLocal.java	                        (rev 0)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Fiscal=
PeriodServiceLocal.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -0,0 +1,50 @@
+/*
+ * #%L
+ * Lima business
+ *=20
+ * $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=20
+ * License, or (at your option) any later version.
+ *=20
+ * 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.
+ *=20
+ * You should have received a copy of the GNU General Public=20
+ * 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/Ht=
tpServerService.java (from rev 3358, trunk/lima-business/src/main/java/org/ch=
orem/lima/business/ejbinterface/HttpServerService.java)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/HttpSe=
rverService.java	                        (rev 0)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/HttpSe=
rverService.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -0,0 +1,37 @@
+/*
+ * #%L
+ * Lima business
+ *=20
+ * $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=20
+ * License, or (at your option) any later version.
+ *=20
+ * 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.
+ *=20
+ * You should have received a copy of the GNU General Public=20
+ * 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/Ht=
tpServerServiceLocal.java (from rev 3358, trunk/lima-business/src/main/java/o=
rg/chorem/lima/business/ejbinterface/HttpServerServiceLocal.java)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/HttpSe=
rverServiceLocal.java	                        (rev 0)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/HttpSe=
rverServiceLocal.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -0,0 +1,33 @@
+/*
+ * #%L
+ * Lima business
+ *=20
+ * $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=20
+ * License, or (at your option) any later version.
+ *=20
+ * 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.
+ *=20
+ * You should have received a copy of the GNU General Public=20
+ * 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/Id=
entityService.java (from rev 3358, trunk/lima-business/src/main/java/org/chor=
em/lima/business/ejbinterface/IdentityService.java)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Identi=
tyService.java	                        (rev 0)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Identi=
tyService.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -0,0 +1,40 @@
+/*
+ * #%L
+ * Lima business
+ *=20
+ * $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=20
+ * License, or (at your option) any later version.
+ *=20
+ * 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.
+ *=20
+ * You should have received a copy of the GNU General Public=20
+ * 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/Id=
entityServiceLocal.java (from rev 3358, trunk/lima-business/src/main/java/org=
/chorem/lima/business/ejbinterface/IdentityServiceLocal.java)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Identi=
tyServiceLocal.java	                        (rev 0)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Identi=
tyServiceLocal.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -0,0 +1,42 @@
+/*
+ * #%L
+ * Lima business
+ *=20
+ * $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=20
+ * License, or (at your option) any later version.
+ *=20
+ * 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.
+ *=20
+ * You should have received a copy of the GNU General Public=20
+ * 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 Lim=
aException;
+
+    Identity getIdentityWithTransaction(TopiaContext topiaContext) throws Li=
maException;
+
+}

Copied: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Im=
portService.java (from rev 3358, trunk/lima-business/src/main/java/org/chorem=
/lima/business/ejbinterface/ImportService.java)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Import=
Service.java	                        (rev 0)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Import=
Service.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -0,0 +1,87 @@
+/*
+ * #%L
+ * Lima business
+ *=20
+ * $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=20
+ * License, or (at your option) any later version.
+ *=20
+ * 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.
+ *=20
+ * You should have received a copy of the GNU General Public=20
+ * 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.
+     *=20
+     * Read first line to detect file type and call {@link #importAsCSV(Stri=
ng, ImportExportEntityEnum)}.
+     *=20
+     * @param data import file content as string (remote service can't take =
File)
+     * @return result log
+     * @throws LimaException=20
+     */
+    String importAllAsCSV(String data) throws LimaException;
+
+    /**
+     * Import content as CSV depending on import type.
+     *=20
+     * @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/Im=
portServiceLocal.java (from rev 3358, trunk/lima-business/src/main/java/org/c=
horem/lima/business/ejbinterface/ImportServiceLocal.java)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Import=
ServiceLocal.java	                        (rev 0)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Import=
ServiceLocal.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -0,0 +1,44 @@
+/*
+ * #%L
+ * Lima business
+ *=20
+ * $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=20
+ * License, or (at your option) any later version.
+ *=20
+ * 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.
+ *=20
+ * You should have received a copy of the GNU General Public=20
+ * 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/Op=
tionsService.java (from rev 3358, trunk/lima-business/src/main/java/org/chore=
m/lima/business/ejbinterface/OptionsService.java)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Option=
sService.java	                        (rev 0)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Option=
sService.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -0,0 +1,57 @@
+/*
+ * #%L
+ * Lima :: business
+ *=20
+ * $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=20
+ * License, or (at your option) any later version.
+ *=20
+ * 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.
+ *=20
+ * You should have received a copy of the GNU General Public=20
+ * 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/Op=
tionsServiceLocal.java (from rev 3358, trunk/lima-business/src/main/java/org/=
chorem/lima/business/ejbinterface/OptionsServiceLocal.java)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Option=
sServiceLocal.java	                        (rev 0)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Option=
sServiceLocal.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -0,0 +1,32 @@
+/*
+ * #%L
+ * Lima :: business
+ *=20
+ * $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=20
+ * License, or (at your option) any later version.
+ *=20
+ * 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.
+ *=20
+ * You should have received a copy of the GNU General Public=20
+ * 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/Re=
portService.java (from rev 3358, trunk/lima-business/src/main/java/org/chorem=
/lima/business/ejbinterface/ReportService.java)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Report=
Service.java	                        (rev 0)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Report=
Service.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -0,0 +1,150 @@
+/*
+ * #%L
+ * Lima business
+ *=20
+ * $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=20
+ * License, or (at your option) any later version.
+ *=20
+ * 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.
+ *=20
+ * You should have received a copy of the GNU General Public=20
+ * 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 LimaE=
xception;
+
+    /**
+     * 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 LimaExcepti=
on;
+
+
+    /**
+     * 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 topia=
Context) 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 LimaExceptio=
n;
+
+    /**
+     * 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/Re=
portServiceLocal.java (from rev 3358, trunk/lima-business/src/main/java/org/c=
horem/lima/business/ejbinterface/ReportServiceLocal.java)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Report=
ServiceLocal.java	                        (rev 0)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Report=
ServiceLocal.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -0,0 +1,62 @@
+/*
+ * #%L
+ * Lima business
+ *=20
+ * $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=20
+ * License, or (at your option) any later version.
+ *=20
+ * 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.
+ *=20
+ * You should have received a copy of the GNU General Public=20
+ * 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 thirdPartAcco=
untsMode,
+                                                       Date beginDate,
+                                                       Date endDate,
+                                                       TopiaContext topiaCon=
text) throws LimaException;
+
+}

Copied: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/Va=
tStatementService.java (from rev 3358, trunk/lima-business/src/main/java/org/=
chorem/lima/business/ejbinterface/VatStatementService.java)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/VatSta=
tementService.java	                        (rev 0)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/VatSta=
tementService.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -0,0 +1,64 @@
+/*
+ * #%L
+ * Lima :: business
+ *=20
+ * $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=20
+ * License, or (at your option) any later version.
+ *=20
+ * 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.
+ *=20
+ * You should have received a copy of the GNU General Public=20
+ * 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 masterVatStateme=
nt) throws LimaException;
+
+    void updateVatStatement(VatStatement vatStatement) throws LimaException;
+
+    VatStatementAmounts vatStatementAmounts(VatStatement vatStatement,
+                                            Date selectedBeginDate,
+                                            Date selectedEndDate) throws Lim=
aException;
+
+    VatStatement findVatStatementByString(String label) throws LimaException;
+
+    List<VatStatementAmounts> vatStatementReport(Date beginDate,
+                                                 Date endDate) throws LimaEx=
ception;
+
+    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/Va=
tStatementServiceLocal.java (from rev 3358, trunk/lima-business/src/main/java=
/org/chorem/lima/business/ejbinterface/VatStatementServiceLocal.java)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/VatSta=
tementServiceLocal.java	                        (rev 0)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/VatSta=
tementServiceLocal.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -0,0 +1,54 @@
+/*
+ * #%L
+ * Lima :: business
+ *=20
+ * $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=20
+ * License, or (at your option) any later version.
+ *=20
+ * 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.
+ *=20
+ * You should have received a copy of the GNU General Public=20
+ * 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) throw=
s LimaException;
+
+    VatStatementDatas vatStatementReport(VatStatement vatStatement,
+                                         Date selectedBeginDate,
+                                         Date selectedEndDate,
+                                         VatStatementDatas result,
+                                         TopiaContext topiaContext) throws L=
imaException;
+
+}

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)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/utils/Form=
atsEnum.java	                        (rev 0)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/utils/Form=
atsEnum.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -0,0 +1,70 @@
+/*
+ * #%L
+ * Lima business
+ *=20
+ * $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=20
+ * License, or (at your option) any later version.
+ *=20
+ * 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.
+ *=20
+ * You should have received a copy of the GNU General Public=20
+ * 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 descriptio=
n) {
+        this.extension =3D extension;
+        this.mimeType =3D mimeType;
+        this.description =3D description;
+    }
+
+    public String getExtension() {
+        return extension;
+    }
+
+    public String getMimeType() {
+        return mimeType;
+    }
+
+    public String getDescription() {
+        return description;
+    }
+
+    public static FormatsEnum valueOfExtension(String extension) {
+        FormatsEnum value =3D null;
+
+        for (FormatsEnum formatsEnum : FormatsEnum.values()) {
+            if (extension.equals(formatsEnum.getExtension())) {
+                value =3D 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)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/utils/Impo=
rtExportEntityEnum.java	                        (rev 0)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/utils/Impo=
rtExportEntityEnum.java	2012-04-11 15:59:40 UTC (rev 3359)
@@ -0,0 +1,64 @@
+/*
+ * #%L
+ * Lima business
+ *=20
+ * $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=20
+ * License, or (at your option) any later version.
+ *=20
+ * 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.
+ *=20
+ * You should have received a copy of the GNU General Public=20
+ * 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 =3D label;
+    }
+
+    public String getLabel() {
+        return label;
+    }
+
+    public static ImportExportEntityEnum valueOfLabel(String label) {
+        ImportExportEntityEnum value =3D null;
+
+        for (ImportExportEntityEnum importExportEntityEnum : ImportExportEnt=
ityEnum.values()) {
+            if (label.equals(importExportEntityEnum.label)) {
+                value =3D importExportEntityEnum;
+                break;
+            }
+        }
+        return value;
+    }
+}
+
+

Modified: trunk/lima-swing/src/main/java/org/chorem/lima/LimaMain.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-swing/src/main/java/org/chorem/lima/LimaMain.java	2012-04-11 1=
3:34:48 UTC (rev 3358)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/LimaMain.java	2012-04-11 1=
5: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/AccountVi=
ewHandler.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/account/AccountViewHand=
ler.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/account/AccountViewHand=
ler.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/AccountC=
omboBoxModel.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/AccountComboBo=
xModel.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/AccountComboBo=
xModel.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/EntryBoo=
kComboBoxModel.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/EntryBookCombo=
BoxModel.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/EntryBookCombo=
BoxModel.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/Financia=
lPeriodComboBoxModel.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/FinancialPerio=
dComboBoxModel.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/FinancialPerio=
dComboBoxModel.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.FinancialPeriodServiceMonitorabl=
e;
 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/FiscalPe=
riodComboBoxModel.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/FiscalPeriodCo=
mboBoxModel.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/FiscalPeriodCo=
mboBoxModel.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/LetterCo=
mboBoxModel.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/LetterComboBox=
Model.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/LetterComboBox=
Model.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.FinancialTransactionServiceMonit=
orable;
 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/SubAccou=
ntComboBoxModel.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/SubAccountComb=
oBoxModel.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/SubAccountComb=
oBoxModel.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/EntryBo=
okViewHandler.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/entrybook/EntryBookView=
Handler.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/entrybook/EntryBookView=
Handler.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/F=
inancialPeriodTable.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialperiod/Financi=
alPeriodTable.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialperiod/Financi=
alPeriodTable.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.FinancialPeriodServiceMonitorabl=
e;
 import org.chorem.lima.entity.ClosedPeriodicEntryBook;
 import org.chorem.lima.entity.ClosedPeriodicEntryBookImpl;

Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialstatemen=
treport/FinancialStatementReportTableModel.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialstatementrepor=
t/FinancialStatementReportTableModel.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialstatementrepor=
t/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.FinancialStatementServiceMonitor=
able;
 import org.chorem.lima.business.monitorable.FinancialTransactionServiceMonit=
orable;

Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransact=
ion/FinancialTransactionTableModel.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransaction/Fi=
nancialTransactionTableModel.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransaction/Fi=
nancialTransactionTableModel.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.FinancialTransactionServiceMonit=
orable;
 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/financialtransact=
ionsearch/FinancialTransactionSearchTableModel.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransactionsea=
rch/FinancialTransactionSearchTableModel.java	2012-04-11 13:34:48 UTC (rev 33=
58)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransactionsea=
rch/FinancialTransactionSearchTableModel.java	2012-04-11 15:59:40 UTC (rev 33=
59)
@@ -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.FinancialPeriodServiceMonitorabl=
e;
 import org.chorem.lima.business.monitorable.FinancialTransactionServiceMonit=
orable;
 import org.chorem.lima.entity.Account;

Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransact=
ionsearch/FinancialTransactionSearchViewHandler.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransactionsea=
rch/FinancialTransactionSearchViewHandler.java	2012-04-11 13:34:48 UTC (rev 3=
358)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransactionsea=
rch/FinancialTransactionSearchViewHandler.java	2012-04-11 15:59:40 UTC (rev 3=
359)
@@ -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.FinancialTransactionServiceMonit=
orable;
 import org.chorem.lima.entity.Account;
 import org.chorem.lima.entity.Entry;

Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransact=
ionunbalanced/FinancialTransactionUnbalancedTableModel.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransactionunb=
alanced/FinancialTransactionUnbalancedTableModel.java	2012-04-11 13:34:48 UTC=
 (rev 3358)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransactionunb=
alanced/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.FinancialTransactionServiceMonit=
orable;
 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/Fisc=
alPeriodViewHandler.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/fiscalperiod/FiscalPeri=
odViewHandler.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/fiscalperiod/FiscalPeri=
odViewHandler.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.FinancialTransactionServiceMonit=
orable;
 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/EntryBooksPa=
ne.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/EntryBooksPane.jav=
a	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/EntryBooksPane.jav=
a	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/FinancialTra=
nsactionsPane.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/FinancialTransacti=
onsPane.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/FinancialTransacti=
onsPane.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.FinancialTransactionServiceMonit=
orable;
 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/FiscalPeriod=
sPane.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- 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/Identity=
Handler.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/identity/IdentityHandle=
r.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/identity/IdentityHandle=
r.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/LedgerView=
Handler.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/ledger/LedgerViewHandle=
r.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/ledger/LedgerViewHandle=
r.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.FinancialTransactionServiceMonit=
orable;
 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/Letteri=
ngTableModel.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/lettering/LetteringTabl=
eModel.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/lettering/LetteringTabl=
eModel.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.FinancialTransactionServiceMonit=
orable;
 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/VatRep=
ortTableModel.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/vatreports/VatReportTab=
leModel.java	2012-04-11 13:34:48 UTC (rev 3358)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/vatreports/VatReportTab=
leModel.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.FinancialTransactionServiceMonit=
orable;
 import org.chorem.lima.business.monitorable.ImportServiceMonitorable;
 import org.chorem.lima.business.monitorable.VatStatementServiceMonitorable;

Modified: trunk/pom.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- 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>
=20
   <groupId>org.chorem</groupId>
@@ -19,6 +19,7 @@
=20
   <modules>
     <module>lima-callao</module>
+    <module>lima-business-api</module>
     <module>lima-business</module>
     <module>lima-swing</module>
   </modules>


--===============7543145899348052226==--


