Lima-commits
Threads by month
- ----- 2026 -----
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- 1853 discussions
Author: echatellier
Date: 2012-02-22 10:57:58 +0100 (Wed, 22 Feb 2012)
New Revision: 3338
Url: http://chorem.org/repositories/revision/lima/3338
Log:
Move all *Monitorable interfaces to monitorable package
Added:
trunk/lima-business/src/main/java/org/chorem/lima/business/ServiceMonitorable.java
trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/
trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/AccountServiceMonitorable.java
trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/DocumentServiceMonitorable.java
trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/EntryBookServiceMonitorable.java
trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/ExportServiceMonitorable.java
trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/FinancialPeriodServiceMonitorable.java
trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/FinancialStatementServiceMonitorable.java
trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/FinancialTransactionServiceMonitorable.java
trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/FiscalPeriodServiceMonitorable.java
trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/HttpServerServiceMonitorable.java
trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/IdentityServiceMonitorable.java
trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/ImportServiceMonitorable.java
trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/OptionsServiceMonitorable.java
trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/ReportServiceMonitorable.java
trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/VatStatementServiceMonitorable.java
Removed:
trunk/lima-business/src/main/java/org/chorem/lima/business/AccountServiceMonitorable.java
trunk/lima-business/src/main/java/org/chorem/lima/business/DocumentServiceMonitorable.java
trunk/lima-business/src/main/java/org/chorem/lima/business/EntryBookServiceMonitorable.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ExportServiceMonitorable.java
trunk/lima-business/src/main/java/org/chorem/lima/business/FinancialPeriodServiceMonitorable.java
trunk/lima-business/src/main/java/org/chorem/lima/business/FinancialStatementServiceMonitorable.java
trunk/lima-business/src/main/java/org/chorem/lima/business/FinancialTransactionServiceMonitorable.java
trunk/lima-business/src/main/java/org/chorem/lima/business/FiscalPeriodServiceMonitorable.java
trunk/lima-business/src/main/java/org/chorem/lima/business/HttpServerServiceMonitorable.java
trunk/lima-business/src/main/java/org/chorem/lima/business/IdentityServiceMonitorable.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ImportServiceMonitorable.java
trunk/lima-business/src/main/java/org/chorem/lima/business/OptionsServiceMonitorable.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ReportServiceMonitorable.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ServiceMonitorable.java
trunk/lima-business/src/main/java/org/chorem/lima/business/VatStatementServiceMonitorable.java
Modified:
trunk/lima-business/src/test/java/org/chorem/lima/business/AbstractLimaTest.java
trunk/lima-swing/src/main/java/org/chorem/lima/LimaConfig.java
trunk/lima-swing/src/main/java/org/chorem/lima/LimaMain.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/MainViewHandler.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/account/AccountTreeTableModel.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/account/AccountViewHandler.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/accountsreports/AccountsReportsViewHandler.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/balance/BalanceViewHandler.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/AccountComboBoxModel.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/EntryBookComboBoxModel.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/FinancialPeriodComboBoxModel.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/FiscalPeriodComboBoxModel.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/LetterComboBoxModel.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/SubAccountComboBoxModel.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/entrybook/EntryBookTableModel.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/entrybook/EntryBookViewHandler.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/entrybooksreports/EntryBooksReportsViewHandler.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialperiod/FinancialPeriodTable.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialperiod/FinancialPeriodTableModel.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialstatementchart/FinancialStatementChartTreeTableModel.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialstatementchart/FinancialStatementChartViewHandler.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialstatementreport/FinancialStatementReportTableModel.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialstatementreport/FinancialStatementReportViewHandler.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransaction/FinancialTransactionTableModel.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransaction/FinancialTransactionViewHandler.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransactionsearch/FinancialTransactionSearchTableModel.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransactionsearch/FinancialTransactionSearchViewHandler.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransactionunbalanced/FinancialTransactionUnbalancedTableModel.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/fiscalperiod/FiscalPeriodTableModel.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/fiscalperiod/FiscalPeriodViewHandler.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/AccountsPane.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/EntryBooksPane.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/FinancialTransactionsPane.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/FiscalPeriodsPane.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/identity/IdentityHandler.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/importexport/ImportExport.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/ledger/LedgerViewHandler.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/lettering/LetteringTableModel.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/lettering/LetteringViewHandler.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/opening/OpeningViewHandler.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/vatchart/VatChartTreeTableModel.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/vatchart/VatChartViewHandler.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/vatreports/VatReportTableModel.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/vatreports/VatReportViewHandler.java
Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/AccountServiceMonitorable.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/AccountServiceMonitorable.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/AccountServiceMonitorable.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -1,32 +0,0 @@
-/*
- * #%L
- * Lima business
- *
- * $Id$
- * $HeadURL$
- * %%
- * Copyright (C) 2008 - 2010 CodeLutin
- * %%
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public
- * License along with this program. If not, see
- * <http://www.gnu.org/licenses/gpl-3.0.html>.
- * #L%
- */
-
-package org.chorem.lima.business;
-
-import org.chorem.lima.business.ejbinterface.AccountService;
-
-public interface AccountServiceMonitorable extends AccountService, ServiceMonitorable {
-
-}
Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/DocumentServiceMonitorable.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/DocumentServiceMonitorable.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/DocumentServiceMonitorable.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -1,32 +0,0 @@
-/*
- * #%L
- * Lima business
- *
- * $Id$
- * $HeadURL$
- * %%
- * Copyright (C) 2008 - 2010 CodeLutin
- * %%
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public
- * License along with this program. If not, see
- * <http://www.gnu.org/licenses/gpl-3.0.html>.
- * #L%
- */
-
-package org.chorem.lima.business;
-
-import org.chorem.lima.business.ejbinterface.DocumentService;
-
-public interface DocumentServiceMonitorable extends DocumentService, ServiceMonitorable {
-
-}
Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/EntryBookServiceMonitorable.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/EntryBookServiceMonitorable.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/EntryBookServiceMonitorable.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -1,32 +0,0 @@
-/*
- * #%L
- * Lima business
- *
- * $Id$
- * $HeadURL$
- * %%
- * Copyright (C) 2008 - 2010 CodeLutin
- * %%
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public
- * License along with this program. If not, see
- * <http://www.gnu.org/licenses/gpl-3.0.html>.
- * #L%
- */
-
-package org.chorem.lima.business;
-
-import org.chorem.lima.business.ejbinterface.EntryBookService;
-
-public interface EntryBookServiceMonitorable extends EntryBookService, ServiceMonitorable {
-
-}
Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/ExportServiceMonitorable.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ExportServiceMonitorable.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ExportServiceMonitorable.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -1,32 +0,0 @@
-/*
- * #%L
- * Lima business
- *
- * $Id$
- * $HeadURL$
- * %%
- * Copyright (C) 2008 - 2010 CodeLutin
- * %%
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public
- * License along with this program. If not, see
- * <http://www.gnu.org/licenses/gpl-3.0.html>.
- * #L%
- */
-
-package org.chorem.lima.business;
-
-import org.chorem.lima.business.ejbinterface.ExportService;
-
-public interface ExportServiceMonitorable extends ExportService, ServiceMonitorable {
-
-}
Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/FinancialPeriodServiceMonitorable.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/FinancialPeriodServiceMonitorable.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/FinancialPeriodServiceMonitorable.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -1,32 +0,0 @@
-/*
- * #%L
- * Lima business
- *
- * $Id$
- * $HeadURL$
- * %%
- * Copyright (C) 2008 - 2010 CodeLutin
- * %%
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public
- * License along with this program. If not, see
- * <http://www.gnu.org/licenses/gpl-3.0.html>.
- * #L%
- */
-
-package org.chorem.lima.business;
-
-import org.chorem.lima.business.ejbinterface.FinancialPeriodService;
-
-public interface FinancialPeriodServiceMonitorable extends FinancialPeriodService, ServiceMonitorable {
-
-}
Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/FinancialStatementServiceMonitorable.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/FinancialStatementServiceMonitorable.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/FinancialStatementServiceMonitorable.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -1,32 +0,0 @@
-/*
- * #%L
- * Lima business
- *
- * $Id$
- * $HeadURL$
- * %%
- * Copyright (C) 2008 - 2010 CodeLutin
- * %%
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public
- * License along with this program. If not, see
- * <http://www.gnu.org/licenses/gpl-3.0.html>.
- * #L%
- */
-
-package org.chorem.lima.business;
-
-import org.chorem.lima.business.ejbinterface.FinancialStatementService;
-
-public interface FinancialStatementServiceMonitorable extends FinancialStatementService, ServiceMonitorable {
-
-}
Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/FinancialTransactionServiceMonitorable.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/FinancialTransactionServiceMonitorable.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/FinancialTransactionServiceMonitorable.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -1,32 +0,0 @@
-/*
- * #%L
- * Lima business
- *
- * $Id$
- * $HeadURL$
- * %%
- * Copyright (C) 2008 - 2010 CodeLutin
- * %%
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public
- * License along with this program. If not, see
- * <http://www.gnu.org/licenses/gpl-3.0.html>.
- * #L%
- */
-
-package org.chorem.lima.business;
-
-import org.chorem.lima.business.ejbinterface.FinancialTransactionService;
-
-public interface FinancialTransactionServiceMonitorable extends FinancialTransactionService, ServiceMonitorable {
-
-}
Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/FiscalPeriodServiceMonitorable.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/FiscalPeriodServiceMonitorable.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/FiscalPeriodServiceMonitorable.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -1,32 +0,0 @@
-/*
- * #%L
- * Lima business
- *
- * $Id$
- * $HeadURL$
- * %%
- * Copyright (C) 2008 - 2010 CodeLutin
- * %%
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public
- * License along with this program. If not, see
- * <http://www.gnu.org/licenses/gpl-3.0.html>.
- * #L%
- */
-
-package org.chorem.lima.business;
-
-import org.chorem.lima.business.ejbinterface.FiscalPeriodService;
-
-public interface FiscalPeriodServiceMonitorable extends FiscalPeriodService, ServiceMonitorable {
-
-}
Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/HttpServerServiceMonitorable.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/HttpServerServiceMonitorable.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/HttpServerServiceMonitorable.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -1,32 +0,0 @@
-/*
- * #%L
- * Lima business
- *
- * $Id$
- * $HeadURL$
- * %%
- * Copyright (C) 2008 - 2010 CodeLutin
- * %%
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public
- * License along with this program. If not, see
- * <http://www.gnu.org/licenses/gpl-3.0.html>.
- * #L%
- */
-
-package org.chorem.lima.business;
-
-import org.chorem.lima.business.ejbinterface.HttpServerService;
-
-public interface HttpServerServiceMonitorable extends HttpServerService, ServiceMonitorable {
-
-}
Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/IdentityServiceMonitorable.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/IdentityServiceMonitorable.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/IdentityServiceMonitorable.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -1,32 +0,0 @@
-/*
- * #%L
- * Lima business
- *
- * $Id$
- * $HeadURL$
- * %%
- * Copyright (C) 2008 - 2010 CodeLutin
- * %%
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public
- * License along with this program. If not, see
- * <http://www.gnu.org/licenses/gpl-3.0.html>.
- * #L%
- */
-
-package org.chorem.lima.business;
-
-import org.chorem.lima.business.ejbinterface.IdentityService;
-
-public interface IdentityServiceMonitorable extends IdentityService, ServiceMonitorable {
-
-}
Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/ImportServiceMonitorable.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ImportServiceMonitorable.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ImportServiceMonitorable.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -1,32 +0,0 @@
-/*
- * #%L
- * Lima business
- *
- * $Id$
- * $HeadURL$
- * %%
- * Copyright (C) 2008 - 2010 CodeLutin
- * %%
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public
- * License along with this program. If not, see
- * <http://www.gnu.org/licenses/gpl-3.0.html>.
- * #L%
- */
-
-package org.chorem.lima.business;
-
-import org.chorem.lima.business.ejbinterface.ImportService;
-
-public interface ImportServiceMonitorable extends ImportService, ServiceMonitorable {
-
-}
Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/OptionsServiceMonitorable.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/OptionsServiceMonitorable.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/OptionsServiceMonitorable.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -1,31 +0,0 @@
-/*
- * #%L
- * Lima :: business
- *
- * $Id$
- * $HeadURL$
- * %%
- * Copyright (C) 2008 - 2011 CodeLutin
- * %%
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public
- * License along with this program. If not, see
- * <http://www.gnu.org/licenses/gpl-3.0.html>.
- * #L%
- */
-package org.chorem.lima.business;
-
-import org.chorem.lima.business.ejbinterface.OptionsService;
-
-public interface OptionsServiceMonitorable extends OptionsService, ServiceMonitorable {
-
-}
Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/ReportServiceMonitorable.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ReportServiceMonitorable.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ReportServiceMonitorable.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -1,32 +0,0 @@
-/*
- * #%L
- * Lima business
- *
- * $Id$
- * $HeadURL$
- * %%
- * Copyright (C) 2008 - 2010 CodeLutin
- * %%
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public
- * License along with this program. If not, see
- * <http://www.gnu.org/licenses/gpl-3.0.html>.
- * #L%
- */
-
-package org.chorem.lima.business;
-
-import org.chorem.lima.business.ejbinterface.ReportService;
-
-public interface ReportServiceMonitorable extends ReportService, ServiceMonitorable {
-
-}
Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/ServiceMonitorable.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ServiceMonitorable.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ServiceMonitorable.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -1,32 +0,0 @@
-/*
- * #%L
- * Lima business
- *
- * $Id$
- * $HeadURL$
- * %%
- * Copyright (C) 2008 - 2010 CodeLutin
- * %%
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public
- * License along with this program. If not, see
- * <http://www.gnu.org/licenses/gpl-3.0.html>.
- * #L%
- */
-
-package org.chorem.lima.business;
-
-public interface ServiceMonitorable {
- void addServiceListener(ServiceListener l);
-
- void removeServiceListener(ServiceListener l);
-}
Copied: trunk/lima-business/src/main/java/org/chorem/lima/business/ServiceMonitorable.java (from rev 3322, trunk/lima-business/src/main/java/org/chorem/lima/business/ServiceMonitorable.java)
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ServiceMonitorable.java (rev 0)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ServiceMonitorable.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -0,0 +1,33 @@
+/*
+ * #%L
+ * Lima business
+ *
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2008 - 2010 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
+package org.chorem.lima.business;
+
+
+public interface ServiceMonitorable {
+ void addServiceListener(ServiceListener l);
+
+ void removeServiceListener(ServiceListener l);
+}
Deleted: trunk/lima-business/src/main/java/org/chorem/lima/business/VatStatementServiceMonitorable.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/VatStatementServiceMonitorable.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/VatStatementServiceMonitorable.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -1,31 +0,0 @@
-/*
- * #%L
- * Lima :: business
- *
- * $Id$
- * $HeadURL$
- * %%
- * Copyright (C) 2008 - 2011 CodeLutin
- * %%
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public
- * License along with this program. If not, see
- * <http://www.gnu.org/licenses/gpl-3.0.html>.
- * #L%
- */
-package org.chorem.lima.business;
-
-import org.chorem.lima.business.ejbinterface.VatStatementService;
-
-public interface VatStatementServiceMonitorable extends VatStatementService, ServiceMonitorable {
-
-}
Copied: trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/AccountServiceMonitorable.java (from rev 3322, trunk/lima-business/src/main/java/org/chorem/lima/business/AccountServiceMonitorable.java)
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/AccountServiceMonitorable.java (rev 0)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/AccountServiceMonitorable.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -0,0 +1,33 @@
+/*
+ * #%L
+ * Lima business
+ *
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2008 - 2010 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
+package org.chorem.lima.business.monitorable;
+
+import org.chorem.lima.business.ServiceMonitorable;
+import org.chorem.lima.business.ejbinterface.AccountService;
+
+public interface AccountServiceMonitorable extends AccountService, ServiceMonitorable {
+
+}
Copied: trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/DocumentServiceMonitorable.java (from rev 3322, trunk/lima-business/src/main/java/org/chorem/lima/business/DocumentServiceMonitorable.java)
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/DocumentServiceMonitorable.java (rev 0)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/DocumentServiceMonitorable.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -0,0 +1,33 @@
+/*
+ * #%L
+ * Lima business
+ *
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2008 - 2010 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
+package org.chorem.lima.business.monitorable;
+
+import org.chorem.lima.business.ServiceMonitorable;
+import org.chorem.lima.business.ejbinterface.DocumentService;
+
+public interface DocumentServiceMonitorable extends DocumentService, ServiceMonitorable {
+
+}
Copied: trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/EntryBookServiceMonitorable.java (from rev 3322, trunk/lima-business/src/main/java/org/chorem/lima/business/EntryBookServiceMonitorable.java)
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/EntryBookServiceMonitorable.java (rev 0)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/EntryBookServiceMonitorable.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -0,0 +1,33 @@
+/*
+ * #%L
+ * Lima business
+ *
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2008 - 2010 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
+package org.chorem.lima.business.monitorable;
+
+import org.chorem.lima.business.ServiceMonitorable;
+import org.chorem.lima.business.ejbinterface.EntryBookService;
+
+public interface EntryBookServiceMonitorable extends EntryBookService, ServiceMonitorable {
+
+}
Copied: trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/ExportServiceMonitorable.java (from rev 3322, trunk/lima-business/src/main/java/org/chorem/lima/business/ExportServiceMonitorable.java)
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/ExportServiceMonitorable.java (rev 0)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/ExportServiceMonitorable.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -0,0 +1,33 @@
+/*
+ * #%L
+ * Lima business
+ *
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2008 - 2010 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
+package org.chorem.lima.business.monitorable;
+
+import org.chorem.lima.business.ServiceMonitorable;
+import org.chorem.lima.business.ejbinterface.ExportService;
+
+public interface ExportServiceMonitorable extends ExportService, ServiceMonitorable {
+
+}
Copied: trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/FinancialPeriodServiceMonitorable.java (from rev 3322, trunk/lima-business/src/main/java/org/chorem/lima/business/FinancialPeriodServiceMonitorable.java)
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/FinancialPeriodServiceMonitorable.java (rev 0)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/FinancialPeriodServiceMonitorable.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -0,0 +1,33 @@
+/*
+ * #%L
+ * Lima business
+ *
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2008 - 2010 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
+package org.chorem.lima.business.monitorable;
+
+import org.chorem.lima.business.ServiceMonitorable;
+import org.chorem.lima.business.ejbinterface.FinancialPeriodService;
+
+public interface FinancialPeriodServiceMonitorable extends FinancialPeriodService, ServiceMonitorable {
+
+}
Copied: trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/FinancialStatementServiceMonitorable.java (from rev 3322, trunk/lima-business/src/main/java/org/chorem/lima/business/FinancialStatementServiceMonitorable.java)
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/FinancialStatementServiceMonitorable.java (rev 0)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/FinancialStatementServiceMonitorable.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -0,0 +1,33 @@
+/*
+ * #%L
+ * Lima business
+ *
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2008 - 2010 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
+package org.chorem.lima.business.monitorable;
+
+import org.chorem.lima.business.ServiceMonitorable;
+import org.chorem.lima.business.ejbinterface.FinancialStatementService;
+
+public interface FinancialStatementServiceMonitorable extends FinancialStatementService, ServiceMonitorable {
+
+}
Copied: trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/FinancialTransactionServiceMonitorable.java (from rev 3322, trunk/lima-business/src/main/java/org/chorem/lima/business/FinancialTransactionServiceMonitorable.java)
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/FinancialTransactionServiceMonitorable.java (rev 0)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/FinancialTransactionServiceMonitorable.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -0,0 +1,33 @@
+/*
+ * #%L
+ * Lima business
+ *
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2008 - 2010 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
+package org.chorem.lima.business.monitorable;
+
+import org.chorem.lima.business.ServiceMonitorable;
+import org.chorem.lima.business.ejbinterface.FinancialTransactionService;
+
+public interface FinancialTransactionServiceMonitorable extends FinancialTransactionService, ServiceMonitorable {
+
+}
Copied: trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/FiscalPeriodServiceMonitorable.java (from rev 3322, trunk/lima-business/src/main/java/org/chorem/lima/business/FiscalPeriodServiceMonitorable.java)
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/FiscalPeriodServiceMonitorable.java (rev 0)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/FiscalPeriodServiceMonitorable.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -0,0 +1,33 @@
+/*
+ * #%L
+ * Lima business
+ *
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2008 - 2010 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
+package org.chorem.lima.business.monitorable;
+
+import org.chorem.lima.business.ServiceMonitorable;
+import org.chorem.lima.business.ejbinterface.FiscalPeriodService;
+
+public interface FiscalPeriodServiceMonitorable extends FiscalPeriodService, ServiceMonitorable {
+
+}
Copied: trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/HttpServerServiceMonitorable.java (from rev 3322, trunk/lima-business/src/main/java/org/chorem/lima/business/HttpServerServiceMonitorable.java)
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/HttpServerServiceMonitorable.java (rev 0)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/HttpServerServiceMonitorable.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -0,0 +1,33 @@
+/*
+ * #%L
+ * Lima business
+ *
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2008 - 2010 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
+package org.chorem.lima.business.monitorable;
+
+import org.chorem.lima.business.ServiceMonitorable;
+import org.chorem.lima.business.ejbinterface.HttpServerService;
+
+public interface HttpServerServiceMonitorable extends HttpServerService, ServiceMonitorable {
+
+}
Copied: trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/IdentityServiceMonitorable.java (from rev 3322, trunk/lima-business/src/main/java/org/chorem/lima/business/IdentityServiceMonitorable.java)
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/IdentityServiceMonitorable.java (rev 0)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/IdentityServiceMonitorable.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -0,0 +1,33 @@
+/*
+ * #%L
+ * Lima business
+ *
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2008 - 2010 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
+package org.chorem.lima.business.monitorable;
+
+import org.chorem.lima.business.ServiceMonitorable;
+import org.chorem.lima.business.ejbinterface.IdentityService;
+
+public interface IdentityServiceMonitorable extends IdentityService, ServiceMonitorable {
+
+}
Copied: trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/ImportServiceMonitorable.java (from rev 3322, trunk/lima-business/src/main/java/org/chorem/lima/business/ImportServiceMonitorable.java)
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/ImportServiceMonitorable.java (rev 0)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/ImportServiceMonitorable.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -0,0 +1,33 @@
+/*
+ * #%L
+ * Lima business
+ *
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2008 - 2010 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
+package org.chorem.lima.business.monitorable;
+
+import org.chorem.lima.business.ServiceMonitorable;
+import org.chorem.lima.business.ejbinterface.ImportService;
+
+public interface ImportServiceMonitorable extends ImportService, ServiceMonitorable {
+
+}
Copied: trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/OptionsServiceMonitorable.java (from rev 3322, trunk/lima-business/src/main/java/org/chorem/lima/business/OptionsServiceMonitorable.java)
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/OptionsServiceMonitorable.java (rev 0)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/OptionsServiceMonitorable.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -0,0 +1,32 @@
+/*
+ * #%L
+ * Lima :: business
+ *
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2008 - 2011 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+package org.chorem.lima.business.monitorable;
+
+import org.chorem.lima.business.ServiceMonitorable;
+import org.chorem.lima.business.ejbinterface.OptionsService;
+
+public interface OptionsServiceMonitorable extends OptionsService, ServiceMonitorable {
+
+}
Copied: trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/ReportServiceMonitorable.java (from rev 3322, trunk/lima-business/src/main/java/org/chorem/lima/business/ReportServiceMonitorable.java)
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/ReportServiceMonitorable.java (rev 0)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/ReportServiceMonitorable.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -0,0 +1,33 @@
+/*
+ * #%L
+ * Lima business
+ *
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2008 - 2010 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
+package org.chorem.lima.business.monitorable;
+
+import org.chorem.lima.business.ServiceMonitorable;
+import org.chorem.lima.business.ejbinterface.ReportService;
+
+public interface ReportServiceMonitorable extends ReportService, ServiceMonitorable {
+
+}
Copied: trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/VatStatementServiceMonitorable.java (from rev 3322, trunk/lima-business/src/main/java/org/chorem/lima/business/VatStatementServiceMonitorable.java)
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/VatStatementServiceMonitorable.java (rev 0)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/monitorable/VatStatementServiceMonitorable.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -0,0 +1,32 @@
+/*
+ * #%L
+ * Lima :: business
+ *
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2008 - 2011 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+package org.chorem.lima.business.monitorable;
+
+import org.chorem.lima.business.ServiceMonitorable;
+import org.chorem.lima.business.ejbinterface.VatStatementService;
+
+public interface VatStatementServiceMonitorable extends VatStatementService, ServiceMonitorable {
+
+}
Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/AbstractLimaTest.java
===================================================================
--- trunk/lima-business/src/test/java/org/chorem/lima/business/AbstractLimaTest.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-business/src/test/java/org/chorem/lima/business/AbstractLimaTest.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -46,6 +46,12 @@
import org.chorem.lima.business.ejbinterface.FinancialTransactionService;
import org.chorem.lima.business.ejbinterface.FiscalPeriodService;
import org.chorem.lima.business.ejbinterface.ReportService;
+import org.chorem.lima.business.monitorable.AccountServiceMonitorable;
+import org.chorem.lima.business.monitorable.EntryBookServiceMonitorable;
+import org.chorem.lima.business.monitorable.FinancialPeriodServiceMonitorable;
+import org.chorem.lima.business.monitorable.FinancialTransactionServiceMonitorable;
+import org.chorem.lima.business.monitorable.FiscalPeriodServiceMonitorable;
+import org.chorem.lima.business.monitorable.ReportServiceMonitorable;
import org.chorem.lima.entity.Account;
import org.chorem.lima.entity.AccountImpl;
import org.chorem.lima.entity.Entry;
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/LimaConfig.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/LimaConfig.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/LimaConfig.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -29,7 +29,7 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.chorem.lima.actions.MiscAction;
-import org.chorem.lima.business.OptionsServiceMonitorable;
+import org.chorem.lima.business.monitorable.OptionsServiceMonitorable;
import org.chorem.lima.entity.LimaCallaoDAOHelper;
import org.chorem.lima.service.LimaServiceFactory;
import org.nuiton.topia.TopiaContextFactory;
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/LimaMain.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/LimaMain.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/LimaMain.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -28,9 +28,9 @@
import jaxx.runtime.SwingUtil;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.chorem.lima.business.AccountServiceMonitorable;
-import org.chorem.lima.business.HttpServerServiceMonitorable;
import org.chorem.lima.business.ejbinterface.AccountService;
+import org.chorem.lima.business.monitorable.AccountServiceMonitorable;
+import org.chorem.lima.business.monitorable.HttpServerServiceMonitorable;
import org.chorem.lima.entity.Account;
import org.chorem.lima.service.LimaServiceFactory;
import org.chorem.lima.ui.MainView;
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/MainViewHandler.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/MainViewHandler.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/MainViewHandler.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -33,7 +33,7 @@
import org.apache.commons.logging.LogFactory;
import org.chorem.lima.LimaConfig;
import org.chorem.lima.LimaContext;
-import org.chorem.lima.business.HttpServerServiceMonitorable;
+import org.chorem.lima.business.monitorable.HttpServerServiceMonitorable;
import org.chorem.lima.enums.ImportExportEnum;
import org.chorem.lima.service.LimaServiceFactory;
import org.chorem.lima.ui.account.AccountView;
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/account/AccountTreeTableModel.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/account/AccountTreeTableModel.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/account/AccountTreeTableModel.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -27,10 +27,10 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.chorem.lima.business.AccountServiceMonitorable;
import org.chorem.lima.business.LimaBusinessException;
import org.chorem.lima.business.LimaException;
import org.chorem.lima.business.ejbinterface.AccountService;
+import org.chorem.lima.business.monitorable.AccountServiceMonitorable;
import org.chorem.lima.entity.Account;
import org.chorem.lima.service.LimaServiceFactory;
import org.chorem.lima.util.ErrorHelper;
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/account/AccountViewHandler.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/account/AccountViewHandler.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/account/AccountViewHandler.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -28,11 +28,11 @@
import org.apache.commons.lang.ObjectUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.chorem.lima.business.AccountServiceMonitorable;
-import org.chorem.lima.business.ImportServiceMonitorable;
import org.chorem.lima.business.LimaException;
import org.chorem.lima.business.ServiceListener;
import org.chorem.lima.business.ejbinterface.AccountService;
+import org.chorem.lima.business.monitorable.AccountServiceMonitorable;
+import org.chorem.lima.business.monitorable.ImportServiceMonitorable;
import org.chorem.lima.entity.Account;
import org.chorem.lima.entity.AccountImpl;
import org.chorem.lima.enums.AccountsChartEnum;
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/accountsreports/AccountsReportsViewHandler.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/accountsreports/AccountsReportsViewHandler.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/accountsreports/AccountsReportsViewHandler.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -28,11 +28,11 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.chorem.lima.beans.ReportsDatas;
-import org.chorem.lima.business.FinancialTransactionServiceMonitorable;
-import org.chorem.lima.business.ImportServiceMonitorable;
import org.chorem.lima.business.LimaException;
-import org.chorem.lima.business.ReportServiceMonitorable;
import org.chorem.lima.business.ServiceListener;
+import org.chorem.lima.business.monitorable.FinancialTransactionServiceMonitorable;
+import org.chorem.lima.business.monitorable.ImportServiceMonitorable;
+import org.chorem.lima.business.monitorable.ReportServiceMonitorable;
import org.chorem.lima.entity.Account;
import org.chorem.lima.service.LimaServiceFactory;
import org.chorem.lima.ui.combobox.AccountComboBoxModel;
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/balance/BalanceViewHandler.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/balance/BalanceViewHandler.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/balance/BalanceViewHandler.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -29,13 +29,13 @@
import org.apache.commons.logging.LogFactory;
import org.chorem.lima.LimaConfig;
import org.chorem.lima.beans.BalanceTrial;
-import org.chorem.lima.business.FinancialTransactionServiceMonitorable;
-import org.chorem.lima.business.FiscalPeriodServiceMonitorable;
-import org.chorem.lima.business.HttpServerServiceMonitorable;
-import org.chorem.lima.business.ImportServiceMonitorable;
import org.chorem.lima.business.LimaException;
-import org.chorem.lima.business.ReportServiceMonitorable;
import org.chorem.lima.business.ServiceListener;
+import org.chorem.lima.business.monitorable.FinancialTransactionServiceMonitorable;
+import org.chorem.lima.business.monitorable.FiscalPeriodServiceMonitorable;
+import org.chorem.lima.business.monitorable.HttpServerServiceMonitorable;
+import org.chorem.lima.business.monitorable.ImportServiceMonitorable;
+import org.chorem.lima.business.monitorable.ReportServiceMonitorable;
import org.chorem.lima.business.utils.DocumentsEnum;
import org.chorem.lima.business.utils.FormatsEnum;
import org.chorem.lima.entity.FiscalPeriod;
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/AccountComboBoxModel.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/AccountComboBoxModel.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/AccountComboBoxModel.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -27,11 +27,11 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.chorem.lima.business.AccountServiceMonitorable;
-import org.chorem.lima.business.ImportServiceMonitorable;
import org.chorem.lima.business.LimaException;
import org.chorem.lima.business.ServiceListener;
import org.chorem.lima.business.ejbinterface.AccountService;
+import org.chorem.lima.business.monitorable.AccountServiceMonitorable;
+import org.chorem.lima.business.monitorable.ImportServiceMonitorable;
import org.chorem.lima.entity.Account;
import org.chorem.lima.service.LimaServiceFactory;
import org.chorem.lima.ui.financialperiod.FinancialPeriodTableModel;
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/EntryBookComboBoxModel.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/EntryBookComboBoxModel.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/EntryBookComboBoxModel.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -27,11 +27,11 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.chorem.lima.business.EntryBookServiceMonitorable;
-import org.chorem.lima.business.ImportServiceMonitorable;
import org.chorem.lima.business.LimaException;
import org.chorem.lima.business.ServiceListener;
import org.chorem.lima.business.ejbinterface.EntryBookService;
+import org.chorem.lima.business.monitorable.EntryBookServiceMonitorable;
+import org.chorem.lima.business.monitorable.ImportServiceMonitorable;
import org.chorem.lima.entity.EntryBook;
import org.chorem.lima.service.LimaServiceFactory;
import org.chorem.lima.ui.financialperiod.FinancialPeriodTableModel;
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/FinancialPeriodComboBoxModel.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/FinancialPeriodComboBoxModel.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/FinancialPeriodComboBoxModel.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -27,12 +27,12 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.chorem.lima.business.FinancialPeriodServiceMonitorable;
-import org.chorem.lima.business.FiscalPeriodServiceMonitorable;
-import org.chorem.lima.business.ImportServiceMonitorable;
import org.chorem.lima.business.LimaException;
import org.chorem.lima.business.ServiceListener;
import org.chorem.lima.business.ejbinterface.FinancialPeriodService;
+import org.chorem.lima.business.monitorable.FinancialPeriodServiceMonitorable;
+import org.chorem.lima.business.monitorable.FiscalPeriodServiceMonitorable;
+import org.chorem.lima.business.monitorable.ImportServiceMonitorable;
import org.chorem.lima.entity.FinancialPeriod;
import org.chorem.lima.entity.FiscalPeriod;
import org.chorem.lima.service.LimaServiceFactory;
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/FiscalPeriodComboBoxModel.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/FiscalPeriodComboBoxModel.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/FiscalPeriodComboBoxModel.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -27,11 +27,11 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.chorem.lima.business.FiscalPeriodServiceMonitorable;
-import org.chorem.lima.business.ImportServiceMonitorable;
import org.chorem.lima.business.LimaException;
import org.chorem.lima.business.ServiceListener;
import org.chorem.lima.business.ejbinterface.FiscalPeriodService;
+import org.chorem.lima.business.monitorable.FiscalPeriodServiceMonitorable;
+import org.chorem.lima.business.monitorable.ImportServiceMonitorable;
import org.chorem.lima.entity.FiscalPeriod;
import org.chorem.lima.service.LimaServiceFactory;
import org.chorem.lima.ui.financialperiod.FinancialPeriodTableModel;
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/LetterComboBoxModel.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/LetterComboBoxModel.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/LetterComboBoxModel.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -27,11 +27,11 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.chorem.lima.business.FinancialTransactionServiceMonitorable;
-import org.chorem.lima.business.ImportServiceMonitorable;
import org.chorem.lima.business.LimaException;
import org.chorem.lima.business.ServiceListener;
import org.chorem.lima.business.ejbinterface.FinancialTransactionService;
+import org.chorem.lima.business.monitorable.FinancialTransactionServiceMonitorable;
+import org.chorem.lima.business.monitorable.ImportServiceMonitorable;
import org.chorem.lima.entity.Letter;
import org.chorem.lima.service.LimaServiceFactory;
import org.chorem.lima.ui.financialperiod.FinancialPeriodTableModel;
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/SubAccountComboBoxModel.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/SubAccountComboBoxModel.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/combobox/SubAccountComboBoxModel.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -27,11 +27,11 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.chorem.lima.business.AccountServiceMonitorable;
-import org.chorem.lima.business.ImportServiceMonitorable;
import org.chorem.lima.business.LimaException;
import org.chorem.lima.business.ServiceListener;
import org.chorem.lima.business.ejbinterface.AccountService;
+import org.chorem.lima.business.monitorable.AccountServiceMonitorable;
+import org.chorem.lima.business.monitorable.ImportServiceMonitorable;
import org.chorem.lima.entity.Account;
import org.chorem.lima.service.LimaServiceFactory;
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/entrybook/EntryBookTableModel.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/entrybook/EntryBookTableModel.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/entrybook/EntryBookTableModel.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -27,10 +27,10 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.chorem.lima.business.EntryBookServiceMonitorable;
-import org.chorem.lima.business.ImportServiceMonitorable;
import org.chorem.lima.business.LimaException;
import org.chorem.lima.business.ServiceListener;
+import org.chorem.lima.business.monitorable.EntryBookServiceMonitorable;
+import org.chorem.lima.business.monitorable.ImportServiceMonitorable;
import org.chorem.lima.entity.EntryBook;
import org.chorem.lima.service.LimaServiceFactory;
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/entrybook/EntryBookViewHandler.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/entrybook/EntryBookViewHandler.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/entrybook/EntryBookViewHandler.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -27,9 +27,9 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.chorem.lima.business.EntryBookServiceMonitorable;
import org.chorem.lima.business.LimaException;
import org.chorem.lima.business.ejbinterface.EntryBookService;
+import org.chorem.lima.business.monitorable.EntryBookServiceMonitorable;
import org.chorem.lima.entity.EntryBook;
import org.chorem.lima.entity.EntryBookImpl;
import org.chorem.lima.enums.EntryBooksChartEnum;
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/entrybooksreports/EntryBooksReportsViewHandler.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/entrybooksreports/EntryBooksReportsViewHandler.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/entrybooksreports/EntryBooksReportsViewHandler.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -29,14 +29,14 @@
import org.apache.commons.logging.LogFactory;
import org.chorem.lima.LimaConfig;
import org.chorem.lima.beans.ReportsDatas;
-import org.chorem.lima.business.DocumentServiceMonitorable;
-import org.chorem.lima.business.FinancialTransactionServiceMonitorable;
-import org.chorem.lima.business.FiscalPeriodServiceMonitorable;
-import org.chorem.lima.business.HttpServerServiceMonitorable;
-import org.chorem.lima.business.ImportServiceMonitorable;
import org.chorem.lima.business.LimaException;
-import org.chorem.lima.business.ReportServiceMonitorable;
import org.chorem.lima.business.ServiceListener;
+import org.chorem.lima.business.monitorable.DocumentServiceMonitorable;
+import org.chorem.lima.business.monitorable.FinancialTransactionServiceMonitorable;
+import org.chorem.lima.business.monitorable.FiscalPeriodServiceMonitorable;
+import org.chorem.lima.business.monitorable.HttpServerServiceMonitorable;
+import org.chorem.lima.business.monitorable.ImportServiceMonitorable;
+import org.chorem.lima.business.monitorable.ReportServiceMonitorable;
import org.chorem.lima.business.utils.DocumentsEnum;
import org.chorem.lima.business.utils.FormatsEnum;
import org.chorem.lima.entity.EntryBook;
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialperiod/FinancialPeriodTable.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialperiod/FinancialPeriodTable.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialperiod/FinancialPeriodTable.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -27,9 +27,9 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.chorem.lima.business.FinancialPeriodServiceMonitorable;
import org.chorem.lima.business.LimaException;
import org.chorem.lima.business.ejbinterface.FinancialPeriodService;
+import org.chorem.lima.business.monitorable.FinancialPeriodServiceMonitorable;
import org.chorem.lima.entity.ClosedPeriodicEntryBook;
import org.chorem.lima.entity.ClosedPeriodicEntryBookImpl;
import org.chorem.lima.service.LimaServiceFactory;
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialperiod/FinancialPeriodTableModel.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialperiod/FinancialPeriodTableModel.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialperiod/FinancialPeriodTableModel.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -27,11 +27,11 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.chorem.lima.business.FinancialPeriodServiceMonitorable;
-import org.chorem.lima.business.FiscalPeriodServiceMonitorable;
-import org.chorem.lima.business.ImportServiceMonitorable;
import org.chorem.lima.business.LimaException;
import org.chorem.lima.business.ServiceListener;
+import org.chorem.lima.business.monitorable.FinancialPeriodServiceMonitorable;
+import org.chorem.lima.business.monitorable.FiscalPeriodServiceMonitorable;
+import org.chorem.lima.business.monitorable.ImportServiceMonitorable;
import org.chorem.lima.business.utils.FinancialPeriodComparator;
import org.chorem.lima.entity.ClosedPeriodicEntryBook;
import org.chorem.lima.entity.EntryBook;
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialstatementchart/FinancialStatementChartTreeTableModel.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialstatementchart/FinancialStatementChartTreeTableModel.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialstatementchart/FinancialStatementChartTreeTableModel.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -27,8 +27,8 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.chorem.lima.business.FinancialStatementServiceMonitorable;
import org.chorem.lima.business.LimaException;
+import org.chorem.lima.business.monitorable.FinancialStatementServiceMonitorable;
import org.chorem.lima.entity.FinancialStatement;
import org.chorem.lima.entity.FinancialStatementImpl;
import org.chorem.lima.service.LimaServiceFactory;
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialstatementchart/FinancialStatementChartViewHandler.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialstatementchart/FinancialStatementChartViewHandler.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialstatementchart/FinancialStatementChartViewHandler.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -27,11 +27,11 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.chorem.lima.business.FinancialStatementServiceMonitorable;
-import org.chorem.lima.business.ImportServiceMonitorable;
import org.chorem.lima.business.LimaBusinessException;
import org.chorem.lima.business.LimaException;
import org.chorem.lima.business.ServiceListener;
+import org.chorem.lima.business.monitorable.FinancialStatementServiceMonitorable;
+import org.chorem.lima.business.monitorable.ImportServiceMonitorable;
import org.chorem.lima.entity.FinancialStatement;
import org.chorem.lima.entity.FinancialStatementImpl;
import org.chorem.lima.enums.FinancialStatementsChartEnum;
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialstatementreport/FinancialStatementReportTableModel.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialstatementreport/FinancialStatementReportTableModel.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialstatementreport/FinancialStatementReportTableModel.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -29,15 +29,15 @@
import org.apache.commons.logging.LogFactory;
import org.chorem.lima.LimaConfig;
import org.chorem.lima.beans.FinancialStatementAmounts;
-import org.chorem.lima.business.DocumentServiceMonitorable;
-import org.chorem.lima.business.FinancialStatementServiceMonitorable;
-import org.chorem.lima.business.FinancialTransactionServiceMonitorable;
-import org.chorem.lima.business.HttpServerServiceMonitorable;
-import org.chorem.lima.business.ImportServiceMonitorable;
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.monitorable.DocumentServiceMonitorable;
+import org.chorem.lima.business.monitorable.FinancialStatementServiceMonitorable;
+import org.chorem.lima.business.monitorable.FinancialTransactionServiceMonitorable;
+import org.chorem.lima.business.monitorable.HttpServerServiceMonitorable;
+import org.chorem.lima.business.monitorable.ImportServiceMonitorable;
import org.chorem.lima.business.utils.DocumentsEnum;
import org.chorem.lima.business.utils.FormatsEnum;
import org.chorem.lima.service.LimaServiceFactory;
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialstatementreport/FinancialStatementReportViewHandler.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialstatementreport/FinancialStatementReportViewHandler.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialstatementreport/FinancialStatementReportViewHandler.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -27,8 +27,8 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.chorem.lima.business.FiscalPeriodServiceMonitorable;
import org.chorem.lima.business.LimaException;
+import org.chorem.lima.business.monitorable.FiscalPeriodServiceMonitorable;
import org.chorem.lima.business.utils.FormatsEnum;
import org.chorem.lima.entity.FiscalPeriod;
import org.chorem.lima.service.LimaServiceFactory;
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransaction/FinancialTransactionTableModel.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransaction/FinancialTransactionTableModel.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransaction/FinancialTransactionTableModel.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -28,12 +28,12 @@
import org.apache.commons.lang.time.DateUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.chorem.lima.business.FinancialTransactionServiceMonitorable;
-import org.chorem.lima.business.ImportServiceMonitorable;
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.monitorable.FinancialTransactionServiceMonitorable;
+import org.chorem.lima.business.monitorable.ImportServiceMonitorable;
import org.chorem.lima.business.utils.EntryComparator;
import org.chorem.lima.entity.Account;
import org.chorem.lima.entity.Entry;
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransaction/FinancialTransactionViewHandler.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransaction/FinancialTransactionViewHandler.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransaction/FinancialTransactionViewHandler.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -28,8 +28,8 @@
import jaxx.runtime.SwingUtil;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.chorem.lima.business.EntryBookServiceMonitorable;
import org.chorem.lima.business.LimaException;
+import org.chorem.lima.business.monitorable.EntryBookServiceMonitorable;
import org.chorem.lima.entity.Entry;
import org.chorem.lima.entity.EntryBook;
import org.chorem.lima.entity.FinancialTransaction;
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransactionsearch/FinancialTransactionSearchTableModel.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransactionsearch/FinancialTransactionSearchTableModel.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransactionsearch/FinancialTransactionSearchTableModel.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -29,13 +29,13 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.chorem.lima.beans.FinancialTransactionSearch;
-import org.chorem.lima.business.FinancialPeriodServiceMonitorable;
-import org.chorem.lima.business.FinancialTransactionServiceMonitorable;
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.monitorable.FinancialPeriodServiceMonitorable;
+import org.chorem.lima.business.monitorable.FinancialTransactionServiceMonitorable;
import org.chorem.lima.entity.Account;
import org.chorem.lima.entity.Entry;
import org.chorem.lima.entity.EntryBook;
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransactionsearch/FinancialTransactionSearchViewHandler.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransactionsearch/FinancialTransactionSearchViewHandler.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransactionsearch/FinancialTransactionSearchViewHandler.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -30,9 +30,9 @@
import org.chorem.lima.FinancialStatementWayEnum;
import org.chorem.lima.beans.FinancialTransactionSearch;
import org.chorem.lima.beans.FinancialTransactionSearchImpl;
-import org.chorem.lima.business.FinancialTransactionServiceMonitorable;
import org.chorem.lima.business.LimaException;
import org.chorem.lima.business.ejbinterface.FinancialTransactionService;
+import org.chorem.lima.business.monitorable.FinancialTransactionServiceMonitorable;
import org.chorem.lima.entity.Account;
import org.chorem.lima.entity.Entry;
import org.chorem.lima.entity.EntryBook;
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransactionunbalanced/FinancialTransactionUnbalancedTableModel.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransactionunbalanced/FinancialTransactionUnbalancedTableModel.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransactionunbalanced/FinancialTransactionUnbalancedTableModel.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -27,10 +27,10 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.chorem.lima.business.FinancialTransactionServiceMonitorable;
import org.chorem.lima.business.LimaException;
import org.chorem.lima.business.ServiceListener;
import org.chorem.lima.business.ejbinterface.FinancialTransactionService;
+import org.chorem.lima.business.monitorable.FinancialTransactionServiceMonitorable;
import org.chorem.lima.business.utils.EntryComparator;
import org.chorem.lima.entity.Account;
import org.chorem.lima.entity.Entry;
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/fiscalperiod/FiscalPeriodTableModel.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/fiscalperiod/FiscalPeriodTableModel.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/fiscalperiod/FiscalPeriodTableModel.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -27,13 +27,13 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.chorem.lima.business.FinancialTransactionServiceMonitorable;
-import org.chorem.lima.business.FiscalPeriodServiceMonitorable;
-import org.chorem.lima.business.ImportServiceMonitorable;
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.monitorable.FinancialTransactionServiceMonitorable;
+import org.chorem.lima.business.monitorable.FiscalPeriodServiceMonitorable;
+import org.chorem.lima.business.monitorable.ImportServiceMonitorable;
import org.chorem.lima.business.utils.FiscalPeriodComparator;
import org.chorem.lima.entity.FinancialTransaction;
import org.chorem.lima.entity.FiscalPeriod;
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/fiscalperiod/FiscalPeriodViewHandler.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/fiscalperiod/FiscalPeriodViewHandler.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/fiscalperiod/FiscalPeriodViewHandler.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -27,9 +27,9 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.chorem.lima.business.FinancialTransactionServiceMonitorable;
-import org.chorem.lima.business.FiscalPeriodServiceMonitorable;
import org.chorem.lima.business.LimaException;
+import org.chorem.lima.business.monitorable.FinancialTransactionServiceMonitorable;
+import org.chorem.lima.business.monitorable.FiscalPeriodServiceMonitorable;
import org.chorem.lima.entity.Entry;
import org.chorem.lima.entity.EntryBook;
import org.chorem.lima.entity.EntryBookImpl;
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/AccountsPane.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/AccountsPane.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/AccountsPane.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -28,10 +28,10 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.chorem.lima.LimaContext;
-import org.chorem.lima.business.AccountServiceMonitorable;
-import org.chorem.lima.business.ImportServiceMonitorable;
import org.chorem.lima.business.LimaException;
import org.chorem.lima.business.ServiceListener;
+import org.chorem.lima.business.monitorable.AccountServiceMonitorable;
+import org.chorem.lima.business.monitorable.ImportServiceMonitorable;
import org.chorem.lima.entity.Account;
import org.chorem.lima.service.LimaServiceFactory;
import org.chorem.lima.ui.MainView;
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/EntryBooksPane.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/EntryBooksPane.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/EntryBooksPane.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -28,11 +28,11 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.chorem.lima.LimaContext;
-import org.chorem.lima.business.EntryBookServiceMonitorable;
-import org.chorem.lima.business.ImportServiceMonitorable;
import org.chorem.lima.business.LimaException;
import org.chorem.lima.business.ServiceListener;
import org.chorem.lima.business.ejbinterface.EntryBookService;
+import org.chorem.lima.business.monitorable.EntryBookServiceMonitorable;
+import org.chorem.lima.business.monitorable.ImportServiceMonitorable;
import org.chorem.lima.entity.EntryBook;
import org.chorem.lima.service.LimaServiceFactory;
import org.chorem.lima.ui.MainView;
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/FinancialTransactionsPane.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/FinancialTransactionsPane.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/FinancialTransactionsPane.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -28,13 +28,13 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.chorem.lima.LimaContext;
-import org.chorem.lima.business.FinancialTransactionServiceMonitorable;
-import org.chorem.lima.business.FiscalPeriodServiceMonitorable;
-import org.chorem.lima.business.ImportServiceMonitorable;
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.monitorable.FinancialTransactionServiceMonitorable;
+import org.chorem.lima.business.monitorable.FiscalPeriodServiceMonitorable;
+import org.chorem.lima.business.monitorable.ImportServiceMonitorable;
import org.chorem.lima.entity.FinancialTransaction;
import org.chorem.lima.entity.FiscalPeriod;
import org.chorem.lima.service.LimaServiceFactory;
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/FiscalPeriodsPane.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/FiscalPeriodsPane.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/FiscalPeriodsPane.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -28,11 +28,11 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.chorem.lima.LimaContext;
-import org.chorem.lima.business.FiscalPeriodServiceMonitorable;
-import org.chorem.lima.business.ImportServiceMonitorable;
import org.chorem.lima.business.LimaException;
import org.chorem.lima.business.ServiceListener;
import org.chorem.lima.business.ejbinterface.FiscalPeriodService;
+import org.chorem.lima.business.monitorable.FiscalPeriodServiceMonitorable;
+import org.chorem.lima.business.monitorable.ImportServiceMonitorable;
import org.chorem.lima.entity.FiscalPeriod;
import org.chorem.lima.service.LimaServiceFactory;
import org.chorem.lima.ui.MainView;
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/identity/IdentityHandler.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/identity/IdentityHandler.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/identity/IdentityHandler.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -27,9 +27,9 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.chorem.lima.business.IdentityServiceMonitorable;
import org.chorem.lima.business.LimaException;
import org.chorem.lima.business.ejbinterface.IdentityService;
+import org.chorem.lima.business.monitorable.IdentityServiceMonitorable;
import org.chorem.lima.entity.Identity;
import org.chorem.lima.entity.IdentityImpl;
import org.chorem.lima.service.LimaServiceFactory;
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/importexport/ImportExport.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/importexport/ImportExport.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/importexport/ImportExport.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -28,9 +28,9 @@
import org.apache.commons.io.IOUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.chorem.lima.business.ExportServiceMonitorable;
-import org.chorem.lima.business.ImportServiceMonitorable;
import org.chorem.lima.business.LimaException;
+import org.chorem.lima.business.monitorable.ExportServiceMonitorable;
+import org.chorem.lima.business.monitorable.ImportServiceMonitorable;
import org.chorem.lima.business.utils.ImportExportEntityEnum;
import org.chorem.lima.enums.EncodingEnum;
import org.chorem.lima.enums.ImportExportEnum;
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/ledger/LedgerViewHandler.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/ledger/LedgerViewHandler.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/ledger/LedgerViewHandler.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -30,15 +30,15 @@
import org.chorem.lima.LimaConfig;
import org.chorem.lima.beans.BalanceTrial;
import org.chorem.lima.beans.ReportsDatas;
-import org.chorem.lima.business.FinancialTransactionServiceMonitorable;
-import org.chorem.lima.business.FiscalPeriodServiceMonitorable;
-import org.chorem.lima.business.HttpServerServiceMonitorable;
-import org.chorem.lima.business.ImportServiceMonitorable;
import org.chorem.lima.business.LimaException;
-import org.chorem.lima.business.ReportServiceMonitorable;
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.monitorable.FinancialTransactionServiceMonitorable;
+import org.chorem.lima.business.monitorable.FiscalPeriodServiceMonitorable;
+import org.chorem.lima.business.monitorable.HttpServerServiceMonitorable;
+import org.chorem.lima.business.monitorable.ImportServiceMonitorable;
+import org.chorem.lima.business.monitorable.ReportServiceMonitorable;
import org.chorem.lima.business.utils.DocumentsEnum;
import org.chorem.lima.business.utils.EntryComparator;
import org.chorem.lima.business.utils.FormatsEnum;
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/lettering/LetteringTableModel.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/lettering/LetteringTableModel.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/lettering/LetteringTableModel.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -27,11 +27,11 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.chorem.lima.business.FinancialTransactionServiceMonitorable;
-import org.chorem.lima.business.ImportServiceMonitorable;
import org.chorem.lima.business.LimaException;
import org.chorem.lima.business.ServiceListener;
import org.chorem.lima.business.ejbinterface.FinancialTransactionService;
+import org.chorem.lima.business.monitorable.FinancialTransactionServiceMonitorable;
+import org.chorem.lima.business.monitorable.ImportServiceMonitorable;
import org.chorem.lima.business.utils.EntryComparator;
import org.chorem.lima.entity.Account;
import org.chorem.lima.entity.Entry;
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/lettering/LetteringViewHandler.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/lettering/LetteringViewHandler.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/lettering/LetteringViewHandler.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -27,8 +27,8 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.chorem.lima.business.FinancialTransactionServiceMonitorable;
import org.chorem.lima.business.LimaException;
+import org.chorem.lima.business.monitorable.FinancialTransactionServiceMonitorable;
import org.chorem.lima.entity.Letter;
import org.chorem.lima.service.LimaServiceFactory;
import org.chorem.lima.ui.combobox.FinancialPeriodComboBoxModel;
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/opening/OpeningViewHandler.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/opening/OpeningViewHandler.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/opening/OpeningViewHandler.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -27,8 +27,8 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.chorem.lima.business.FiscalPeriodServiceMonitorable;
import org.chorem.lima.business.LimaException;
+import org.chorem.lima.business.monitorable.FiscalPeriodServiceMonitorable;
import org.chorem.lima.entity.FiscalPeriod;
import org.chorem.lima.entity.FiscalPeriodImpl;
import org.chorem.lima.enums.AccountsChartEnum;
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/vatchart/VatChartTreeTableModel.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/vatchart/VatChartTreeTableModel.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/vatchart/VatChartTreeTableModel.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -27,7 +27,7 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.chorem.lima.business.LimaException;
-import org.chorem.lima.business.VatStatementServiceMonitorable;
+import org.chorem.lima.business.monitorable.VatStatementServiceMonitorable;
import org.chorem.lima.entity.VatStatement;
import org.chorem.lima.entity.VatStatementImpl;
import org.chorem.lima.service.LimaServiceFactory;
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/vatchart/VatChartViewHandler.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/vatchart/VatChartViewHandler.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/vatchart/VatChartViewHandler.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -26,11 +26,11 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.chorem.lima.business.ImportServiceMonitorable;
import org.chorem.lima.business.LimaBusinessException;
import org.chorem.lima.business.LimaException;
import org.chorem.lima.business.ServiceListener;
-import org.chorem.lima.business.VatStatementServiceMonitorable;
+import org.chorem.lima.business.monitorable.ImportServiceMonitorable;
+import org.chorem.lima.business.monitorable.VatStatementServiceMonitorable;
import org.chorem.lima.entity.VatStatement;
import org.chorem.lima.entity.VatStatementImpl;
import org.chorem.lima.enums.ImportExportEnum;
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/vatreports/VatReportTableModel.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/vatreports/VatReportTableModel.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/vatreports/VatReportTableModel.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -27,12 +27,12 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.chorem.lima.beans.VatStatementAmounts;
-import org.chorem.lima.business.FinancialTransactionServiceMonitorable;
-import org.chorem.lima.business.ImportServiceMonitorable;
import org.chorem.lima.business.LimaException;
import org.chorem.lima.business.ServiceListener;
-import org.chorem.lima.business.VatStatementServiceMonitorable;
import org.chorem.lima.business.ejbinterface.VatStatementService;
+import org.chorem.lima.business.monitorable.FinancialTransactionServiceMonitorable;
+import org.chorem.lima.business.monitorable.ImportServiceMonitorable;
+import org.chorem.lima.business.monitorable.VatStatementServiceMonitorable;
import org.chorem.lima.service.LimaServiceFactory;
import org.chorem.lima.util.ErrorHelper;
import org.nuiton.topia.TopiaException;
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/vatreports/VatReportViewHandler.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/vatreports/VatReportViewHandler.java 2012-02-22 09:57:21 UTC (rev 3337)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/vatreports/VatReportViewHandler.java 2012-02-22 09:57:58 UTC (rev 3338)
@@ -27,8 +27,8 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.chorem.lima.LimaConfig;
-import org.chorem.lima.business.DocumentServiceMonitorable;
-import org.chorem.lima.business.HttpServerServiceMonitorable;
+import org.chorem.lima.business.monitorable.DocumentServiceMonitorable;
+import org.chorem.lima.business.monitorable.HttpServerServiceMonitorable;
import org.chorem.lima.business.utils.DocumentsEnum;
import org.chorem.lima.service.LimaServiceFactory;
import org.chorem.lima.ui.celleditor.BigDecimalTableCellEditor;
1
0
r3337 - in trunk: lima-business/src/main/java/org/chorem/lima/business/ejbinterface lima-swing/src/main/java/org/chorem/lima/enums
by echatellier@users.chorem.org 22 Feb '12
by echatellier@users.chorem.org 22 Feb '12
22 Feb '12
Author: echatellier
Date: 2012-02-22 10:57:21 +0100 (Wed, 22 Feb 2012)
New Revision: 3337
Url: http://chorem.org/repositories/revision/lima/3337
Log:
Fix style ...
Modified:
trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/ImportService.java
trunk/lima-swing/src/main/java/org/chorem/lima/enums/EncodingEnum.java
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/ImportService.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/ImportService.java 2012-02-22 09:56:52 UTC (rev 3336)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/ImportService.java 2012-02-22 09:57:21 UTC (rev 3337)
@@ -5,7 +5,7 @@
* $Id$
* $HeadURL$
* %%
- * Copyright (C) 2008 - 2010 CodeLutin
+ * 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
@@ -37,9 +37,9 @@
*
* @author chatellier
* @version $Revision$
- * <p/>
- * Last update : $Date$
- * By : $Author$
+ * <p/>
+ * Last update : $Date$
+ * By : $Author$
*/
@Remote
public interface ImportService {
@@ -54,7 +54,6 @@
String importAccountsChartFromEbp(String datas) throws LimaException;
-
/**
* Import data as Sage Maestria export.
*
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/enums/EncodingEnum.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/enums/EncodingEnum.java 2012-02-22 09:56:52 UTC (rev 3336)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/enums/EncodingEnum.java 2012-02-22 09:57:21 UTC (rev 3337)
@@ -5,7 +5,7 @@
* $Id$
* $HeadURL$
* %%
- * Copyright (C) 2008 - 2010 CodeLutin
+ * 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
@@ -27,14 +27,15 @@
public enum EncodingEnum {
- UTF8("UTF-8", "UTF-8 Lima"), ISOLATIN1("ISO-8859-1", "ISO-Latin-1 Excel / Windows"),
+ UTF8("UTF-8", "UTF-8 Lima"),
+ ISOLATIN1("ISO-8859-1", "ISO-Latin-1 Excel / Windows"),
MACROMAN("MacRoman", "MacRoman Excel / Mac");
- private final String encoding;
+ protected final String encoding;
- private final String description;
+ protected final String description;
- EncodingEnum(String encoding, String description) {
+ private EncodingEnum(String encoding, String description) {
this.encoding = encoding;
this.description = description;
}
@@ -68,5 +69,4 @@
}
return value;
}
-
}
1
0
r3336 - trunk/lima-business/src/main/java/org/chorem/lima/business/ejb
by echatellier@users.chorem.org 22 Feb '12
by echatellier@users.chorem.org 22 Feb '12
22 Feb '12
Author: echatellier
Date: 2012-02-22 10:56:52 +0100 (Wed, 22 Feb 2012)
New Revision: 3336
Url: http://chorem.org/repositories/revision/lima/3336
Log:
Fix sub entries sum query
Modified:
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialTransactionServiceImpl.java
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialTransactionServiceImpl.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialTransactionServiceImpl.java 2012-02-21 15:56:10 UTC (rev 3335)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialTransactionServiceImpl.java 2012-02-22 09:56:52 UTC (rev 3336)
@@ -317,7 +317,8 @@
TopiaQuery query = financialTransactionDAO.createQuery("T");
query.addFrom(FiscalPeriod.class, "F")
.addLeftJoin("T." + FinancialTransaction.PROPERTY_ENTRY, "E", false)
- .addWhere("T.amountCredit = T.amountDebit")
+ .addWhere("(select sum(amount) from " + Entry.class.getName() + " where debit = false and financialTransaction = T) <> " +
+ "(select sum(amount) from " + Entry.class.getName() + " where debit = true and financialTransaction = T)")
.addNotNull("E.account")
.addNotNull("T.entryBook")
.addInElements("T.financialPeriod", "F.financialPeriod")
1
0
r3335 - trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules
by echatellier@users.chorem.org 21 Feb '12
by echatellier@users.chorem.org 21 Feb '12
21 Feb '12
Author: echatellier
Date: 2012-02-21 16:56:10 +0100 (Tue, 21 Feb 2012)
New Revision: 3335
Url: http://chorem.org/repositories/revision/lima/3335
Log:
Fix doc
Modified:
trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/EntryBookServiceRuleFrTest.java
trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FinancialPeriodServiceRuleFrTest.java
trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FinancialTransactionServiceRuleFrTest.java
trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FiscalPeriodServiceRuleFrTest.java
Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/EntryBookServiceRuleFrTest.java
===================================================================
--- trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/EntryBookServiceRuleFrTest.java 2012-02-21 15:55:51 UTC (rev 3334)
+++ trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/EntryBookServiceRuleFrTest.java 2012-02-21 15:56:10 UTC (rev 3335)
@@ -34,7 +34,7 @@
/**
* Add configuration to add specific test on French rules set.
*
- * (redo all test defined in AccountServiceImplTest).
+ * (redo all test defined in EntryBookServiceImplTest).
*
* Plus ajout de test specific à la locale FR.
*
Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FinancialPeriodServiceRuleFrTest.java
===================================================================
--- trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FinancialPeriodServiceRuleFrTest.java 2012-02-21 15:55:51 UTC (rev 3334)
+++ trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FinancialPeriodServiceRuleFrTest.java 2012-02-21 15:56:10 UTC (rev 3335)
@@ -34,7 +34,7 @@
/**
* Add configuration to add specific test on French rules set.
*
- * (redo all test defined in AccountServiceImplTest).
+ * (redo all test defined in EntryBookServiceImplTest).
*
* Plus ajout de test specific à la locale FR.
*
Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FinancialTransactionServiceRuleFrTest.java
===================================================================
--- trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FinancialTransactionServiceRuleFrTest.java 2012-02-21 15:55:51 UTC (rev 3334)
+++ trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FinancialTransactionServiceRuleFrTest.java 2012-02-21 15:56:10 UTC (rev 3335)
@@ -34,7 +34,7 @@
/**
* Add configuration to add specific test on French rules set.
*
- * (redo all test defined in AccountServiceImplTest).
+ * (redo all test defined in FinancialTransactionServiceImplTest).
*
* Plus ajout de test specific à la locale FR.
*
Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FiscalPeriodServiceRuleFrTest.java
===================================================================
--- trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FiscalPeriodServiceRuleFrTest.java 2012-02-21 15:55:51 UTC (rev 3334)
+++ trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FiscalPeriodServiceRuleFrTest.java 2012-02-21 15:56:10 UTC (rev 3335)
@@ -34,7 +34,7 @@
/**
* Add configuration to add specific test on French rules set.
*
- * (redo all test defined in AccountServiceImplTest).
+ * (redo all test defined in FiscalPeriodServiceImplTest).
*
* Plus ajout de test specific à la locale FR.
*
1
0
r3334 - in trunk/lima-business/src: main/java/org/chorem/lima/business/ejb main/java/org/chorem/lima/business/ejbinterface test/java/org/chorem/lima/business test/java/org/chorem/lima/business/accountingrules
by echatellier@users.chorem.org 21 Feb '12
by echatellier@users.chorem.org 21 Feb '12
21 Feb '12
Author: echatellier
Date: 2012-02-21 16:55:51 +0100 (Tue, 21 Feb 2012)
New Revision: 3334
Url: http://chorem.org/repositories/revision/lima/3334
Log:
Ajout test report.
Correction report sans transactions non balanc?\195?\169es (en harcod?\195?\169, ya que ca de vrai)
Added:
trunk/lima-business/src/test/java/org/chorem/lima/business/ReportServiceImplTest.java
trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/ReportServiceRuleFrTest.java
Modified:
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ReportServiceImpl.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/ReportService.java
trunk/lima-business/src/test/java/org/chorem/lima/business/AbstractLimaTest.java
trunk/lima-business/src/test/java/org/chorem/lima/business/FinancialTransactionServiceImplTest.java
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ReportServiceImpl.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ReportServiceImpl.java 2012-02-21 15:07:06 UTC (rev 3333)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ReportServiceImpl.java 2012-02-21 15:55:51 UTC (rev 3334)
@@ -162,7 +162,7 @@
/**
* Query for find entries for accountsreports and balancereports
- * Just exact and balanced transaction are calculated
+ * Just exact and balanced transaction are calculated.
*
* @param account
* @param beginDate
@@ -181,17 +181,13 @@
String transactionDateProperty = TopiaQuery.getProperty(
Entry.PROPERTY_FINANCIAL_TRANSACTION, FinancialTransaction.PROPERTY_TRANSACTION_DATE);
-
- // FIXME 20120110 echatellier amoutcredit and debit removed since 0.6
- //String amountCreditProperty = TopiaQuery.getProperty(
- // Entry.PROPERTY_FINANCIAL_TRANSACTION, FinancialTransaction.PROPERTY_AMOUNT_CREDIT);
- //String amountDebitProperty = TopiaQuery.getProperty(
- // Entry.PROPERTY_FINANCIAL_TRANSACTION, FinancialTransaction.PROPERTY_AMOUNT_DEBIT);
String entryBookProperty = TopiaQuery.getProperty(
Entry.PROPERTY_FINANCIAL_TRANSACTION, FinancialTransaction.PROPERTY_ENTRY_BOOK);
+ // echatellier, oui c'est hardcodé, mais qu'est ce que c'est illisible sans ca
query
- //.addWhere(amountCreditProperty + " = " + amountDebitProperty)
+ .addWhere("(select sum(E2.amount) from " + Entry.class.getName() + " E2 where E2.debit = false and E2.financialTransaction = E.financialTransaction) = " +
+ "(select sum(E2.amount) from " + Entry.class.getName() + " E2 where E2.debit = true and E2.financialTransaction = E.financialTransaction)")
.addWhere(transactionDateProperty + " BETWEEN :beginDate AND :endDate")
.addNotNull(entryBookProperty)
.addParam("beginDate", beginDate)
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/ReportService.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/ReportService.java 2012-02-21 15:07:06 UTC (rev 3333)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/ReportService.java 2012-02-21 15:55:51 UTC (rev 3334)
@@ -75,7 +75,7 @@
Boolean movementedFilter) throws LimaException;
/**
- * Generation du grand-livre
+ * Generation du grand-livre.
*
* @param beginDate
* @param endDate
@@ -91,7 +91,7 @@
/**
- * Generation du rapports des comptes
+ * Generation du rapports des comptes.
*
* @param account
* @param thirdPartAccountsMode
@@ -107,7 +107,7 @@
/**
- * Calculate all credit, debit and solde amounts for the balance
+ * Calculate all credit, debit and solde amounts for the balance.
* <p/>
* Get all entries if true
*
@@ -126,7 +126,7 @@
TopiaContext topiaContext) throws LimaException;
/**
- * Generation du rapports des journaux
+ * Generation du rapports des journaux.
*
* @param entryBook
* @param beginDate
@@ -139,7 +139,7 @@
Date endDate) throws LimaException;
/**
- * Generate VAT
+ * Generate VAT.
*
* @param fiscalPeriod
* @return
Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/AbstractLimaTest.java
===================================================================
--- trunk/lima-business/src/test/java/org/chorem/lima/business/AbstractLimaTest.java 2012-02-21 15:07:06 UTC (rev 3333)
+++ trunk/lima-business/src/test/java/org/chorem/lima/business/AbstractLimaTest.java 2012-02-21 15:55:51 UTC (rev 3334)
@@ -26,6 +26,7 @@
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
+import java.math.BigDecimal;
import java.text.DateFormat;
import java.text.ParseException;
import java.util.Locale;
@@ -44,10 +45,16 @@
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.ReportService;
import org.chorem.lima.entity.Account;
import org.chorem.lima.entity.AccountImpl;
+import org.chorem.lima.entity.Entry;
import org.chorem.lima.entity.EntryBook;
import org.chorem.lima.entity.EntryBookImpl;
+import org.chorem.lima.entity.EntryImpl;
+import org.chorem.lima.entity.FinancialPeriod;
+import org.chorem.lima.entity.FinancialTransaction;
+import org.chorem.lima.entity.FinancialTransactionImpl;
import org.chorem.lima.entity.FiscalPeriod;
import org.chorem.lima.entity.FiscalPeriodImpl;
import org.chorem.lima.entity.LimaCallaoDAOHelper;
@@ -79,6 +86,7 @@
protected static FinancialPeriodService financialPeriodService;
protected static FinancialTransactionService financialTransactionService;
protected static FiscalPeriodService fiscalPeriodService;
+ protected static ReportService reportService;
/**
* This is a before class method, but junit will fail to run inherited
@@ -109,6 +117,7 @@
financialPeriodService = LimaServiceFactory.getService(FinancialPeriodServiceMonitorable.class);
financialTransactionService = LimaServiceFactory.getService(FinancialTransactionServiceMonitorable.class);
fiscalPeriodService = LimaServiceFactory.getService(FiscalPeriodServiceMonitorable.class);
+ reportService = LimaServiceFactory.getService(ReportServiceMonitorable.class);
}
/**
@@ -187,7 +196,17 @@
*/
@Before
public void initTestDatabase() throws LimaException, ParseException {
+ initTestAccounts();
+ initTestTransactions();
+ }
+ /**
+ * Create a basic account plan.
+ *
+ * @throws LimaException
+ * @throws ParseException
+ */
+ protected void initTestAccounts() throws LimaException, ParseException {
// clear database
clearService.clearDatabase();
@@ -218,10 +237,10 @@
accountService.createAccount(accountBefa, accountBanques);
// creation d'un journal
- EntryBook entryBook = new EntryBookImpl();
- entryBook.setLabel("Journal des ventes");
- entryBook.setCode("jdv");
- entryBookService.createEntryBook(entryBook);
+ EntryBook journalDesVentes = new EntryBookImpl();
+ journalDesVentes.setLabel("Journal des ventes");
+ journalDesVentes.setCode("jdv");
+ entryBookService.createEntryBook(journalDesVentes);
// creation d'un exercice fiscal
FiscalPeriod fiscalPeriod = new FiscalPeriodImpl();
@@ -229,4 +248,43 @@
fiscalPeriod.setEndDate(df.parse("December 31, 2012"));
fiscalPeriodService.createFiscalPeriod(fiscalPeriod);
}
+
+ /**
+ * Create some transaction in previous accounts.
+ *
+ * @throws LimaException
+ * @throws ParseException
+ */
+ protected void initTestTransactions() throws LimaException, ParseException {
+ // add some transactions
+ // FIXME echatellier 20120221 fix test, following instance already in current method
+ EntryBook journalDesVentes = entryBookService.getEntryBookByCode("jdv");
+ Account accountVmpVae = accountService.getAccountByNumber("511");
+
+ // TODO echatellier 20120116 improve period choice
+ FinancialPeriod financialPeriod = financialPeriodService.getAllFinancialPeriods().get(0);
+
+ FinancialTransaction transaction1 = new FinancialTransactionImpl();
+ transaction1.setTransactionDate(df.parse("April 4, 2012"));
+ transaction1.setEntryBook(journalDesVentes);
+ transaction1.setFinancialPeriod(financialPeriod);
+ transaction1 = financialTransactionService.createFinancialTransaction(transaction1);
+
+ Entry tr1Entry1 = new EntryImpl();
+ tr1Entry1.setAmount(BigDecimal.valueOf(42.0));
+ tr1Entry1.setAccount(accountVmpVae);
+ tr1Entry1.setFinancialTransaction(transaction1);
+ tr1Entry1.setDescription("test desc");
+ tr1Entry1.setVoucher("voucher");
+ tr1Entry1 = financialTransactionService.createEntry(tr1Entry1);
+
+ Entry tr1Entry2 = new EntryImpl();
+ tr1Entry2.setAmount(BigDecimal.valueOf(42.0));
+ tr1Entry2.setDebit(true);
+ tr1Entry2.setAccount(accountVmpVae);
+ tr1Entry2.setFinancialTransaction(transaction1);
+ tr1Entry2.setDescription("test desc");
+ tr1Entry2.setVoucher("voucher");
+ tr1Entry2 = financialTransactionService.createEntry(tr1Entry2);
+ }
}
Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/FinancialTransactionServiceImplTest.java
===================================================================
--- trunk/lima-business/src/test/java/org/chorem/lima/business/FinancialTransactionServiceImplTest.java 2012-02-21 15:07:06 UTC (rev 3333)
+++ trunk/lima-business/src/test/java/org/chorem/lima/business/FinancialTransactionServiceImplTest.java 2012-02-21 15:55:51 UTC (rev 3334)
@@ -53,45 +53,6 @@
public class FinancialTransactionServiceImplTest extends AbstractLimaTest {
/**
- * Init db with some transaction.
- *
- * @throws ParseException
- * @throws LimaException
- */
- @Before
- public void initTransactions() throws ParseException, LimaException {
-
- EntryBook journalDesVentes = entryBookService.getEntryBookByCode("jdv");
- Account accountVmpVae = accountService.getAccountByNumber("511");
-
- // TODO echatellier 20120116 improve period choice
- FinancialPeriod financialPeriod = financialPeriodService.getAllFinancialPeriods().get(0);
-
- FinancialTransaction transaction1 = new FinancialTransactionImpl();
- transaction1.setTransactionDate(df.parse("April 4, 2012"));
- transaction1.setEntryBook(journalDesVentes);
- transaction1.setFinancialPeriod(financialPeriod);
- transaction1 = financialTransactionService.createFinancialTransaction(transaction1);
-
- Entry tr1Entry1 = new EntryImpl();
- tr1Entry1.setAmount(BigDecimal.valueOf(42.0));
- tr1Entry1.setAccount(accountVmpVae);
- tr1Entry1.setFinancialTransaction(transaction1);
- tr1Entry1.setDescription("test desc");
- tr1Entry1.setVoucher("voucher");
- tr1Entry1 = financialTransactionService.createEntry(tr1Entry1);
-
- Entry tr1Entry2 = new EntryImpl();
- tr1Entry2.setAmount(BigDecimal.valueOf(42.0));
- tr1Entry2.setDebit(true);
- tr1Entry2.setAccount(accountVmpVae);
- tr1Entry2.setFinancialTransaction(transaction1);
- tr1Entry2.setDescription("test desc");
- tr1Entry2.setVoucher("voucher");
- tr1Entry2 = financialTransactionService.createEntry(tr1Entry2);
- }
-
- /**
* Test to find all unbalanced transactions.
* Nothing wrong here.
*
Added: trunk/lima-business/src/test/java/org/chorem/lima/business/ReportServiceImplTest.java
===================================================================
--- trunk/lima-business/src/test/java/org/chorem/lima/business/ReportServiceImplTest.java (rev 0)
+++ trunk/lima-business/src/test/java/org/chorem/lima/business/ReportServiceImplTest.java 2012-02-21 15:55:51 UTC (rev 3334)
@@ -0,0 +1,107 @@
+/*
+ * #%L
+ * Lima business
+ *
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2012 CodeLutin, Chatellier Eric
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
+package org.chorem.lima.business;
+
+import java.math.BigDecimal;
+import java.text.ParseException;
+import java.util.Date;
+
+import org.chorem.lima.beans.ReportsDatas;
+import org.chorem.lima.entity.Account;
+import org.chorem.lima.entity.Entry;
+import org.chorem.lima.entity.EntryBook;
+import org.chorem.lima.entity.EntryImpl;
+import org.chorem.lima.entity.FinancialPeriod;
+import org.chorem.lima.entity.FinancialTransaction;
+import org.chorem.lima.entity.FinancialTransactionImpl;
+import org.junit.Assert;
+import org.junit.Test;
+
+/**
+ * Test le service de génération des reports.
+ */
+public class ReportServiceImplTest extends AbstractLimaTest {
+
+ /**
+ * Test de génération du rapport des comptes.
+ *
+ * @throws LimaException
+ * @throws ParseException
+ */
+ @Test
+ public void testGenerateAccountsReports() throws LimaException, ParseException {
+
+ Account accountBefa = accountService.getAccountByNumber("51");
+ Assert.assertNotNull(accountBefa);
+
+ Date beginDate = df.parse("April 1, 2012");
+ Date endDate = df.parse("May 31, 2012");
+ ReportsDatas datas = reportService.generateAccountsReports(accountBefa, false, beginDate, endDate);
+ Assert.assertEquals(BigDecimal.valueOf(42), datas.getAmountCredit().stripTrailingZeros());
+ Assert.assertEquals(BigDecimal.valueOf(42), datas.getAmountDebit().stripTrailingZeros());
+
+ beginDate = df.parse("May 1, 2012");
+ datas = reportService.generateAccountsReports(accountBefa, false, beginDate, endDate);
+ Assert.assertEquals(BigDecimal.valueOf(0), datas.getAmountCredit().stripTrailingZeros());
+ Assert.assertEquals(BigDecimal.valueOf(0), datas.getAmountDebit().stripTrailingZeros());
+ }
+
+ /**
+ * Test de génération du rapport des comptes, en verifiant que les transactions
+ * non équilibrées ne sont pas présentes (modification 0.6).
+ *
+ * @throws LimaException
+ * @throws ParseException
+ */
+ @Test
+ public void testGenerateAccountsReportsUnlalanced() throws LimaException, ParseException {
+ EntryBook journalDesVentes = entryBookService.getEntryBookByCode("jdv");
+ Account accountVmpVae = accountService.getAccountByNumber("511");
+
+ // TODO echatellier 20120116 improve period choice
+ FinancialPeriod financialPeriod = financialPeriodService.getAllFinancialPeriods().get(0);
+
+ FinancialTransaction transaction1 = new FinancialTransactionImpl();
+ transaction1.setTransactionDate(df.parse("April 5, 2012"));
+ transaction1.setEntryBook(journalDesVentes);
+ transaction1.setFinancialPeriod(financialPeriod);
+ transaction1 = financialTransactionService.createFinancialTransaction(transaction1);
+
+ Entry tr1Entry1 = new EntryImpl();
+ tr1Entry1.setAmount(BigDecimal.valueOf(54.0));
+ tr1Entry1.setAccount(accountVmpVae);
+ tr1Entry1.setFinancialTransaction(transaction1);
+ tr1Entry1.setDescription("test desc");
+ tr1Entry1.setVoucher("voucher");
+ tr1Entry1 = financialTransactionService.createEntry(tr1Entry1);
+
+ Date beginDate = df.parse("April 1, 2012");
+ Date endDate = df.parse("May 31, 2012");
+ ReportsDatas datas = reportService.generateAccountsReports(accountVmpVae, false, beginDate, endDate);
+ Assert.assertEquals(BigDecimal.valueOf(42), datas.getAmountCredit().stripTrailingZeros());
+ Assert.assertEquals(BigDecimal.valueOf(42), datas.getAmountDebit().stripTrailingZeros());
+ }
+}
Property changes on: trunk/lima-business/src/test/java/org/chorem/lima/business/ReportServiceImplTest.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/ReportServiceRuleFrTest.java
===================================================================
--- trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/ReportServiceRuleFrTest.java (rev 0)
+++ trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/ReportServiceRuleFrTest.java 2012-02-21 15:55:51 UTC (rev 3334)
@@ -0,0 +1,62 @@
+/*
+ * #%L
+ *
+ *
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2012 Codelutin, Chatellier Eric
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Lesser Public License for more details.
+ *
+ * You should have received a copy of the GNU General Lesser Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
+ */
+
+package org.chorem.lima.business.accountingrules;
+
+import org.chorem.lima.business.LimaConfig;
+import org.chorem.lima.business.ReportServiceImplTest;
+import org.junit.Assert;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+/**
+ * Add configuration to add specific test on French rules set.
+ *
+ * (redo all test defined in ReportServiceImplTest).
+ *
+ * Plus ajout de test specific à la locale FR.
+ *
+ * @author chatellier
+ * @version $Revision$
+ *
+ * Last update : $Date$
+ * By : $Author$
+ */
+public class ReportServiceRuleFrTest extends ReportServiceImplTest {
+
+ @BeforeClass
+ public static void installFrenchRule() throws Exception {
+ LimaConfig.getInstance().setAccountingRule(FranceAccountingRules.class.getName());
+ }
+
+ /**
+ * Test une fois que la regles est correctement instanciée car
+ * elle peut être mise en cache dans {@link LimaConfig}.
+ */
+ @Test
+ public void testRuleInstance() {
+ Assert.assertTrue(LimaConfig.getInstance().getAccountingRules() instanceof FranceAccountingRules);
+ }
+}
Property changes on: trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/ReportServiceRuleFrTest.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
1
0
r3333 - trunk/lima-business/src/main/java/org/chorem/lima/business/ejb
by echatellier@users.chorem.org 21 Feb '12
by echatellier@users.chorem.org 21 Feb '12
21 Feb '12
Author: echatellier
Date: 2012-02-21 16:07:06 +0100 (Tue, 21 Feb 2012)
New Revision: 3333
Url: http://chorem.org/repositories/revision/lima/3333
Log:
switch to protected (service util method)
Modified:
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ReportServiceImpl.java
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ReportServiceImpl.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ReportServiceImpl.java 2012-02-21 14:43:33 UTC (rev 3332)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ReportServiceImpl.java 2012-02-21 15:07:06 UTC (rev 3333)
@@ -172,7 +172,7 @@
* @return
* @throws LimaException
*/
- public TopiaQuery createEntryQuery(Account account,
+ protected TopiaQuery createEntryQuery(Account account,
Date beginDate,
Date endDate,
EntryDAO entryDAO,
1
0
r3332 - trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface
by echatellier@users.chorem.org 21 Feb '12
by echatellier@users.chorem.org 21 Feb '12
21 Feb '12
Author: echatellier
Date: 2012-02-21 15:43:33 +0100 (Tue, 21 Feb 2012)
New Revision: 3332
Url: http://chorem.org/repositories/revision/lima/3332
Log:
Remove strange comment
Modified:
trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/ReportService.java
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/ReportService.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/ReportService.java 2012-02-21 14:20:35 UTC (rev 3331)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejbinterface/ReportService.java 2012-02-21 14:43:33 UTC (rev 3332)
@@ -58,15 +58,6 @@
public interface ReportService {
/**
- * Generation du bilan.
- *
- * @param fiscalPeriod exercice
- * @return le bilan
- * @throws LimaException
- * BalanceSheet generateBalanceSheet(FiscalPeriod fiscalPeriod) throws LimaException;
- */
-
- /**
* Generation de la balance.
*
* @param beginDate
1
0
r3331 - in trunk/lima-business/src/test/java/org/chorem/lima/business: . accountingrules
by echatellier@users.chorem.org 21 Feb '12
by echatellier@users.chorem.org 21 Feb '12
21 Feb '12
Author: echatellier
Date: 2012-02-21 15:20:35 +0100 (Tue, 21 Feb 2012)
New Revision: 3331
Url: http://chorem.org/repositories/revision/lima/3331
Log:
Add new test with FR accountingRules
Added:
trunk/lima-business/src/test/java/org/chorem/lima/business/FinancialTransactionServiceImplTest.java
trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/EntryBookServiceRuleFrTest.java
trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FinancialPeriodServiceRuleFrTest.java
trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FinancialTransactionServiceRuleFrTest.java
trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FiscalPeriodServiceRuleFrTest.java
Removed:
trunk/lima-business/src/test/java/org/chorem/lima/business/FinancialTransactionServiceTest.java
Copied: trunk/lima-business/src/test/java/org/chorem/lima/business/FinancialTransactionServiceImplTest.java (from rev 3329, trunk/lima-business/src/test/java/org/chorem/lima/business/FinancialTransactionServiceTest.java)
===================================================================
--- trunk/lima-business/src/test/java/org/chorem/lima/business/FinancialTransactionServiceImplTest.java (rev 0)
+++ trunk/lima-business/src/test/java/org/chorem/lima/business/FinancialTransactionServiceImplTest.java 2012-02-21 14:20:35 UTC (rev 3331)
@@ -0,0 +1,190 @@
+/*
+ * #%L
+ *
+ *
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2012 Codelutin, Chatellier Eric
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Lesser Public License for more details.
+ *
+ * You should have received a copy of the GNU General Lesser Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
+ */
+
+package org.chorem.lima.business;
+
+import java.math.BigDecimal;
+import java.text.ParseException;
+import java.util.List;
+
+import org.chorem.lima.entity.Account;
+import org.chorem.lima.entity.Entry;
+import org.chorem.lima.entity.EntryBook;
+import org.chorem.lima.entity.EntryImpl;
+import org.chorem.lima.entity.FinancialPeriod;
+import org.chorem.lima.entity.FinancialTransaction;
+import org.chorem.lima.entity.FinancialTransactionImpl;
+import org.chorem.lima.entity.FiscalPeriod;
+import org.junit.Assert;
+import org.junit.Before;
+import org.junit.Test;
+
+/**
+ * Test on financial transaction service.
+ *
+ * @author chatellier
+ * @version $Revision$
+ *
+ * Last update : $Date$
+ * By : $Author$
+ */
+public class FinancialTransactionServiceImplTest extends AbstractLimaTest {
+
+ /**
+ * Init db with some transaction.
+ *
+ * @throws ParseException
+ * @throws LimaException
+ */
+ @Before
+ public void initTransactions() throws ParseException, LimaException {
+
+ EntryBook journalDesVentes = entryBookService.getEntryBookByCode("jdv");
+ Account accountVmpVae = accountService.getAccountByNumber("511");
+
+ // TODO echatellier 20120116 improve period choice
+ FinancialPeriod financialPeriod = financialPeriodService.getAllFinancialPeriods().get(0);
+
+ FinancialTransaction transaction1 = new FinancialTransactionImpl();
+ transaction1.setTransactionDate(df.parse("April 4, 2012"));
+ transaction1.setEntryBook(journalDesVentes);
+ transaction1.setFinancialPeriod(financialPeriod);
+ transaction1 = financialTransactionService.createFinancialTransaction(transaction1);
+
+ Entry tr1Entry1 = new EntryImpl();
+ tr1Entry1.setAmount(BigDecimal.valueOf(42.0));
+ tr1Entry1.setAccount(accountVmpVae);
+ tr1Entry1.setFinancialTransaction(transaction1);
+ tr1Entry1.setDescription("test desc");
+ tr1Entry1.setVoucher("voucher");
+ tr1Entry1 = financialTransactionService.createEntry(tr1Entry1);
+
+ Entry tr1Entry2 = new EntryImpl();
+ tr1Entry2.setAmount(BigDecimal.valueOf(42.0));
+ tr1Entry2.setDebit(true);
+ tr1Entry2.setAccount(accountVmpVae);
+ tr1Entry2.setFinancialTransaction(transaction1);
+ tr1Entry2.setDescription("test desc");
+ tr1Entry2.setVoucher("voucher");
+ tr1Entry2 = financialTransactionService.createEntry(tr1Entry2);
+ }
+
+ /**
+ * Test to find all unbalanced transactions.
+ * Nothing wrong here.
+ *
+ * @throws ParseException
+ * @throws LimaException
+ */
+ @Test
+ public void testGetInexactTransactionAllGood() throws ParseException, LimaException {
+ FiscalPeriod fiscalPeriod = fiscalPeriodService.getAllFiscalPeriods().get(0);
+ List<FinancialTransaction> transactions = financialTransactionService.getAllInexactFinancialTransactions(fiscalPeriod);
+ Assert.assertTrue(transactions.isEmpty());
+ }
+
+ /**
+ * Test to find all unbalanced transactions.
+ *
+ * wrong data.
+ *
+ * @throws ParseException
+ * @throws LimaException
+ */
+ @Test
+ public void testGetInexactTransactionNotAllGood() throws ParseException, LimaException {
+
+ EntryBook journalDesVentes = entryBookService.getEntryBookByCode("jdv");
+ Account accountVmpVae = accountService.getAccountByNumber("511");
+
+ // TODO echatellier 20120116 improve period choice
+ FinancialPeriod financialPeriod = financialPeriodService.getAllFinancialPeriods().get(0);
+
+ FinancialTransaction transaction1 = new FinancialTransactionImpl();
+ transaction1.setTransactionDate(df.parse("April 5, 2012"));
+ transaction1.setEntryBook(journalDesVentes);
+ transaction1.setFinancialPeriod(financialPeriod);
+ transaction1 = financialTransactionService.createFinancialTransaction(transaction1);
+
+ Entry tr1Entry1 = new EntryImpl();
+ tr1Entry1.setAmount(BigDecimal.valueOf(42.0));
+ tr1Entry1.setAccount(accountVmpVae);
+ tr1Entry1.setFinancialTransaction(transaction1);
+ //tr1Entry1.setDescription("test desc");
+ tr1Entry1.setVoucher("voucher");
+ tr1Entry1 = financialTransactionService.createEntry(tr1Entry1);
+
+ Entry tr1Entry2 = new EntryImpl();
+ tr1Entry2.setAmount(BigDecimal.valueOf(42.0));
+ tr1Entry2.setDebit(true);
+ tr1Entry2.setAccount(accountVmpVae);
+ tr1Entry2.setFinancialTransaction(transaction1);
+ tr1Entry2.setDescription("test desc");
+ tr1Entry2.setVoucher("voucher");
+ tr1Entry2 = financialTransactionService.createEntry(tr1Entry2);
+
+ // one in period
+ FiscalPeriod fiscalPeriod = fiscalPeriodService.getAllFiscalPeriods().get(0);
+ List<FinancialTransaction> transactions = financialTransactionService.getAllInexactFinancialTransactions(fiscalPeriod);
+ Assert.assertEquals(1, transactions.size());
+ }
+
+ /**
+ * Test to find all unbalanced transactions.
+ *
+ * Test only unbalanced transactions (no data errors : fields).
+ *
+ * @throws ParseException
+ * @throws LimaException
+ */
+ @Test
+ public void testGetUnbalancedTransactionNotAllGood() throws ParseException, LimaException {
+
+ EntryBook journalDesVentes = entryBookService.getEntryBookByCode("jdv");
+ Account accountVmpVae = accountService.getAccountByNumber("511");
+
+ // TODO echatellier 20120116 improve period choice
+ FinancialPeriod financialPeriod = financialPeriodService.getAllFinancialPeriods().get(0);
+
+ FinancialTransaction transaction1 = new FinancialTransactionImpl();
+ transaction1.setTransactionDate(df.parse("April 5, 2012"));
+ transaction1.setEntryBook(journalDesVentes);
+ transaction1.setFinancialPeriod(financialPeriod);
+ transaction1 = financialTransactionService.createFinancialTransaction(transaction1);
+
+ Entry tr1Entry1 = new EntryImpl();
+ tr1Entry1.setAmount(BigDecimal.valueOf(54.0));
+ tr1Entry1.setAccount(accountVmpVae);
+ tr1Entry1.setFinancialTransaction(transaction1);
+ tr1Entry1.setDescription("test desc");
+ tr1Entry1.setVoucher("voucher");
+ tr1Entry1 = financialTransactionService.createEntry(tr1Entry1);
+
+ // one in period
+ FiscalPeriod fiscalPeriod = fiscalPeriodService.getAllFiscalPeriods().get(0);
+ List<FinancialTransaction> transactions = financialTransactionService.getAllInexactFinancialTransactions(fiscalPeriod);
+ Assert.assertEquals(1, transactions.size());
+ }
+}
Deleted: trunk/lima-business/src/test/java/org/chorem/lima/business/FinancialTransactionServiceTest.java
===================================================================
--- trunk/lima-business/src/test/java/org/chorem/lima/business/FinancialTransactionServiceTest.java 2012-02-21 14:02:26 UTC (rev 3330)
+++ trunk/lima-business/src/test/java/org/chorem/lima/business/FinancialTransactionServiceTest.java 2012-02-21 14:20:35 UTC (rev 3331)
@@ -1,190 +0,0 @@
-/*
- * #%L
- *
- *
- * $Id$
- * $HeadURL$
- * %%
- * Copyright (C) 2012 Codelutin, Chatellier Eric
- * %%
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Lesser Public License for more details.
- *
- * You should have received a copy of the GNU General Lesser Public
- * License along with this program. If not, see
- * <http://www.gnu.org/licenses/lgpl-3.0.html>.
- * #L%
- */
-
-package org.chorem.lima.business;
-
-import java.math.BigDecimal;
-import java.text.ParseException;
-import java.util.List;
-
-import org.chorem.lima.entity.Account;
-import org.chorem.lima.entity.Entry;
-import org.chorem.lima.entity.EntryBook;
-import org.chorem.lima.entity.EntryImpl;
-import org.chorem.lima.entity.FinancialPeriod;
-import org.chorem.lima.entity.FinancialTransaction;
-import org.chorem.lima.entity.FinancialTransactionImpl;
-import org.chorem.lima.entity.FiscalPeriod;
-import org.junit.Assert;
-import org.junit.Before;
-import org.junit.Test;
-
-/**
- * Test on financial transaction service.
- *
- * @author chatellier
- * @version $Revision$
- *
- * Last update : $Date$
- * By : $Author$
- */
-public class FinancialTransactionServiceTest extends AbstractLimaTest {
-
- /**
- * Init db with some transaction.
- *
- * @throws ParseException
- * @throws LimaException
- */
- @Before
- public void initTransactions() throws ParseException, LimaException {
-
- EntryBook journalDesVentes = entryBookService.getEntryBookByCode("jdv");
- Account accountVmpVae = accountService.getAccountByNumber("511");
-
- // TODO echatellier 20120116 improve period choice
- FinancialPeriod financialPeriod = financialPeriodService.getAllFinancialPeriods().get(0);
-
- FinancialTransaction transaction1 = new FinancialTransactionImpl();
- transaction1.setTransactionDate(df.parse("April 4, 2012"));
- transaction1.setEntryBook(journalDesVentes);
- transaction1.setFinancialPeriod(financialPeriod);
- transaction1 = financialTransactionService.createFinancialTransaction(transaction1);
-
- Entry tr1Entry1 = new EntryImpl();
- tr1Entry1.setAmount(BigDecimal.valueOf(42.0));
- tr1Entry1.setAccount(accountVmpVae);
- tr1Entry1.setFinancialTransaction(transaction1);
- tr1Entry1.setDescription("test desc");
- tr1Entry1.setVoucher("voucher");
- tr1Entry1 = financialTransactionService.createEntry(tr1Entry1);
-
- Entry tr1Entry2 = new EntryImpl();
- tr1Entry2.setAmount(BigDecimal.valueOf(42.0));
- tr1Entry2.setDebit(true);
- tr1Entry2.setAccount(accountVmpVae);
- tr1Entry2.setFinancialTransaction(transaction1);
- tr1Entry2.setDescription("test desc");
- tr1Entry2.setVoucher("voucher");
- tr1Entry2 = financialTransactionService.createEntry(tr1Entry2);
- }
-
- /**
- * Test to find all unbalanced transactions.
- * Nothing wrong here.
- *
- * @throws ParseException
- * @throws LimaException
- */
- @Test
- public void testGetInexactTransactionAllGood() throws ParseException, LimaException {
- FiscalPeriod fiscalPeriod = fiscalPeriodService.getAllFiscalPeriods().get(0);
- List<FinancialTransaction> transactions = financialTransactionService.getAllInexactFinancialTransactions(fiscalPeriod);
- Assert.assertTrue(transactions.isEmpty());
- }
-
- /**
- * Test to find all unbalanced transactions.
- *
- * wrong data.
- *
- * @throws ParseException
- * @throws LimaException
- */
- @Test
- public void testGetInexactTransactionNotAllGood() throws ParseException, LimaException {
-
- EntryBook journalDesVentes = entryBookService.getEntryBookByCode("jdv");
- Account accountVmpVae = accountService.getAccountByNumber("511");
-
- // TODO echatellier 20120116 improve period choice
- FinancialPeriod financialPeriod = financialPeriodService.getAllFinancialPeriods().get(0);
-
- FinancialTransaction transaction1 = new FinancialTransactionImpl();
- transaction1.setTransactionDate(df.parse("April 5, 2012"));
- transaction1.setEntryBook(journalDesVentes);
- transaction1.setFinancialPeriod(financialPeriod);
- transaction1 = financialTransactionService.createFinancialTransaction(transaction1);
-
- Entry tr1Entry1 = new EntryImpl();
- tr1Entry1.setAmount(BigDecimal.valueOf(42.0));
- tr1Entry1.setAccount(accountVmpVae);
- tr1Entry1.setFinancialTransaction(transaction1);
- //tr1Entry1.setDescription("test desc");
- tr1Entry1.setVoucher("voucher");
- tr1Entry1 = financialTransactionService.createEntry(tr1Entry1);
-
- Entry tr1Entry2 = new EntryImpl();
- tr1Entry2.setAmount(BigDecimal.valueOf(42.0));
- tr1Entry2.setDebit(true);
- tr1Entry2.setAccount(accountVmpVae);
- tr1Entry2.setFinancialTransaction(transaction1);
- tr1Entry2.setDescription("test desc");
- tr1Entry2.setVoucher("voucher");
- tr1Entry2 = financialTransactionService.createEntry(tr1Entry2);
-
- // one in period
- FiscalPeriod fiscalPeriod = fiscalPeriodService.getAllFiscalPeriods().get(0);
- List<FinancialTransaction> transactions = financialTransactionService.getAllInexactFinancialTransactions(fiscalPeriod);
- Assert.assertEquals(1, transactions.size());
- }
-
- /**
- * Test to find all unbalanced transactions.
- *
- * Test only unbalanced transactions (no data errors : fields).
- *
- * @throws ParseException
- * @throws LimaException
- */
- @Test
- public void testGetUnbalancedTransactionNotAllGood() throws ParseException, LimaException {
-
- EntryBook journalDesVentes = entryBookService.getEntryBookByCode("jdv");
- Account accountVmpVae = accountService.getAccountByNumber("511");
-
- // TODO echatellier 20120116 improve period choice
- FinancialPeriod financialPeriod = financialPeriodService.getAllFinancialPeriods().get(0);
-
- FinancialTransaction transaction1 = new FinancialTransactionImpl();
- transaction1.setTransactionDate(df.parse("April 5, 2012"));
- transaction1.setEntryBook(journalDesVentes);
- transaction1.setFinancialPeriod(financialPeriod);
- transaction1 = financialTransactionService.createFinancialTransaction(transaction1);
-
- Entry tr1Entry1 = new EntryImpl();
- tr1Entry1.setAmount(BigDecimal.valueOf(54.0));
- tr1Entry1.setAccount(accountVmpVae);
- tr1Entry1.setFinancialTransaction(transaction1);
- tr1Entry1.setDescription("test desc");
- tr1Entry1.setVoucher("voucher");
- tr1Entry1 = financialTransactionService.createEntry(tr1Entry1);
-
- // one in period
- FiscalPeriod fiscalPeriod = fiscalPeriodService.getAllFiscalPeriods().get(0);
- List<FinancialTransaction> transactions = financialTransactionService.getAllInexactFinancialTransactions(fiscalPeriod);
- Assert.assertEquals(1, transactions.size());
- }
-}
Added: trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/EntryBookServiceRuleFrTest.java
===================================================================
--- trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/EntryBookServiceRuleFrTest.java (rev 0)
+++ trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/EntryBookServiceRuleFrTest.java 2012-02-21 14:20:35 UTC (rev 3331)
@@ -0,0 +1,62 @@
+/*
+ * #%L
+ *
+ *
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2012 Codelutin, Chatellier Eric
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Lesser Public License for more details.
+ *
+ * You should have received a copy of the GNU General Lesser Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
+ */
+
+package org.chorem.lima.business.accountingrules;
+
+import org.chorem.lima.business.EntryBookServiceImplTest;
+import org.chorem.lima.business.LimaConfig;
+import org.junit.Assert;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+/**
+ * Add configuration to add specific test on French rules set.
+ *
+ * (redo all test defined in AccountServiceImplTest).
+ *
+ * Plus ajout de test specific à la locale FR.
+ *
+ * @author chatellier
+ * @version $Revision$
+ *
+ * Last update : $Date$
+ * By : $Author$
+ */
+public class EntryBookServiceRuleFrTest extends EntryBookServiceImplTest {
+
+ @BeforeClass
+ public static void installFrenchRule() throws Exception {
+ LimaConfig.getInstance().setAccountingRule(FranceAccountingRules.class.getName());
+ }
+
+ /**
+ * Test une fois que la regles est correctement instanciée car
+ * elle peut être mise en cache dans {@link LimaConfig}.
+ */
+ @Test
+ public void testRuleInstance() {
+ Assert.assertTrue(LimaConfig.getInstance().getAccountingRules() instanceof FranceAccountingRules);
+ }
+}
Property changes on: trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/EntryBookServiceRuleFrTest.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FinancialPeriodServiceRuleFrTest.java
===================================================================
--- trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FinancialPeriodServiceRuleFrTest.java (rev 0)
+++ trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FinancialPeriodServiceRuleFrTest.java 2012-02-21 14:20:35 UTC (rev 3331)
@@ -0,0 +1,62 @@
+/*
+ * #%L
+ *
+ *
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2012 Codelutin, Chatellier Eric
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Lesser Public License for more details.
+ *
+ * You should have received a copy of the GNU General Lesser Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
+ */
+
+package org.chorem.lima.business.accountingrules;
+
+import org.chorem.lima.business.EntryBookServiceImplTest;
+import org.chorem.lima.business.LimaConfig;
+import org.junit.Assert;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+/**
+ * Add configuration to add specific test on French rules set.
+ *
+ * (redo all test defined in AccountServiceImplTest).
+ *
+ * Plus ajout de test specific à la locale FR.
+ *
+ * @author chatellier
+ * @version $Revision$
+ *
+ * Last update : $Date$
+ * By : $Author$
+ */
+public class FinancialPeriodServiceRuleFrTest extends EntryBookServiceImplTest {
+
+ @BeforeClass
+ public static void installFrenchRule() throws Exception {
+ LimaConfig.getInstance().setAccountingRule(FranceAccountingRules.class.getName());
+ }
+
+ /**
+ * Test une fois que la regles est correctement instanciée car
+ * elle peut être mise en cache dans {@link LimaConfig}.
+ */
+ @Test
+ public void testRuleInstance() {
+ Assert.assertTrue(LimaConfig.getInstance().getAccountingRules() instanceof FranceAccountingRules);
+ }
+}
Property changes on: trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FinancialPeriodServiceRuleFrTest.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FinancialTransactionServiceRuleFrTest.java
===================================================================
--- trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FinancialTransactionServiceRuleFrTest.java (rev 0)
+++ trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FinancialTransactionServiceRuleFrTest.java 2012-02-21 14:20:35 UTC (rev 3331)
@@ -0,0 +1,62 @@
+/*
+ * #%L
+ *
+ *
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2012 Codelutin, Chatellier Eric
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Lesser Public License for more details.
+ *
+ * You should have received a copy of the GNU General Lesser Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
+ */
+
+package org.chorem.lima.business.accountingrules;
+
+import org.chorem.lima.business.FinancialTransactionServiceImplTest;
+import org.chorem.lima.business.LimaConfig;
+import org.junit.Assert;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+/**
+ * Add configuration to add specific test on French rules set.
+ *
+ * (redo all test defined in AccountServiceImplTest).
+ *
+ * Plus ajout de test specific à la locale FR.
+ *
+ * @author chatellier
+ * @version $Revision$
+ *
+ * Last update : $Date$
+ * By : $Author$
+ */
+public class FinancialTransactionServiceRuleFrTest extends FinancialTransactionServiceImplTest {
+
+ @BeforeClass
+ public static void installFrenchRule() throws Exception {
+ LimaConfig.getInstance().setAccountingRule(FranceAccountingRules.class.getName());
+ }
+
+ /**
+ * Test une fois que la regles est correctement instanciée car
+ * elle peut être mise en cache dans {@link LimaConfig}.
+ */
+ @Test
+ public void testRuleInstance() {
+ Assert.assertTrue(LimaConfig.getInstance().getAccountingRules() instanceof FranceAccountingRules);
+ }
+}
Property changes on: trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FinancialTransactionServiceRuleFrTest.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FiscalPeriodServiceRuleFrTest.java
===================================================================
--- trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FiscalPeriodServiceRuleFrTest.java (rev 0)
+++ trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FiscalPeriodServiceRuleFrTest.java 2012-02-21 14:20:35 UTC (rev 3331)
@@ -0,0 +1,62 @@
+/*
+ * #%L
+ *
+ *
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2012 Codelutin, Chatellier Eric
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Lesser Public License for more details.
+ *
+ * You should have received a copy of the GNU General Lesser Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ * #L%
+ */
+
+package org.chorem.lima.business.accountingrules;
+
+import org.chorem.lima.business.FiscalPeriodServiceImplTest;
+import org.chorem.lima.business.LimaConfig;
+import org.junit.Assert;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+/**
+ * Add configuration to add specific test on French rules set.
+ *
+ * (redo all test defined in AccountServiceImplTest).
+ *
+ * Plus ajout de test specific à la locale FR.
+ *
+ * @author chatellier
+ * @version $Revision$
+ *
+ * Last update : $Date$
+ * By : $Author$
+ */
+public class FiscalPeriodServiceRuleFrTest extends FiscalPeriodServiceImplTest {
+
+ @BeforeClass
+ public static void installFrenchRule() throws Exception {
+ LimaConfig.getInstance().setAccountingRule(FranceAccountingRules.class.getName());
+ }
+
+ /**
+ * Test une fois que la regles est correctement instanciée car
+ * elle peut être mise en cache dans {@link LimaConfig}.
+ */
+ @Test
+ public void testRuleInstance() {
+ Assert.assertTrue(LimaConfig.getInstance().getAccountingRules() instanceof FranceAccountingRules);
+ }
+}
Property changes on: trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FiscalPeriodServiceRuleFrTest.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
1
0
r3330 - trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules
by echatellier@users.chorem.org 21 Feb '12
by echatellier@users.chorem.org 21 Feb '12
21 Feb '12
Author: echatellier
Date: 2012-02-21 15:02:26 +0100 (Tue, 21 Feb 2012)
New Revision: 3330
Url: http://chorem.org/repositories/revision/lima/3330
Log:
Fix tests without services internal state
Modified:
trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/AccountServiceRuleFrTest.java
Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/AccountServiceRuleFrTest.java
===================================================================
--- trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/AccountServiceRuleFrTest.java 2012-02-21 14:00:40 UTC (rev 3329)
+++ trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/AccountServiceRuleFrTest.java 2012-02-21 14:02:26 UTC (rev 3330)
@@ -32,7 +32,6 @@
import org.chorem.lima.entity.AccountImpl;
import org.junit.Assert;
import org.junit.BeforeClass;
-import org.junit.Ignore;
import org.junit.Test;
/**
@@ -67,14 +66,10 @@
/**
* Création d'un compte dans le plan comptable.
*
- * This test currently wont work because AccountServiceImpl keep accouting
- * reference and @BeforeClass changes has no effects.
- *
* @throws LimaException
*/
@Test(expected=LimaException.class)
@Override
- @Ignore
public void testCreateAccountWrongNumber() throws LimaException {
Account myAccount = new AccountImpl();
myAccount.setAccountNumber("42");
1
0
r3329 - trunk/lima-business/src/test/java/org/chorem/lima/business
by echatellier@users.chorem.org 21 Feb '12
by echatellier@users.chorem.org 21 Feb '12
21 Feb '12
Author: echatellier
Date: 2012-02-21 15:00:40 +0100 (Tue, 21 Feb 2012)
New Revision: 3329
Url: http://chorem.org/repositories/revision/lima/3329
Log:
Fix imports
Modified:
trunk/lima-business/src/test/java/org/chorem/lima/business/EntryBookServiceImplTest.java
trunk/lima-business/src/test/java/org/chorem/lima/business/FinancialPeriodServiceImplTest.java
trunk/lima-business/src/test/java/org/chorem/lima/business/FinancialTransactionServiceTest.java
Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/EntryBookServiceImplTest.java
===================================================================
--- trunk/lima-business/src/test/java/org/chorem/lima/business/EntryBookServiceImplTest.java 2012-02-21 13:50:57 UTC (rev 3328)
+++ trunk/lima-business/src/test/java/org/chorem/lima/business/EntryBookServiceImplTest.java 2012-02-21 14:00:40 UTC (rev 3329)
@@ -28,7 +28,6 @@
import org.chorem.lima.entity.EntryBook;
import org.chorem.lima.entity.EntryBookImpl;
import org.junit.Assert;
-import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;
Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/FinancialPeriodServiceImplTest.java
===================================================================
--- trunk/lima-business/src/test/java/org/chorem/lima/business/FinancialPeriodServiceImplTest.java 2012-02-21 13:50:57 UTC (rev 3328)
+++ trunk/lima-business/src/test/java/org/chorem/lima/business/FinancialPeriodServiceImplTest.java 2012-02-21 14:00:40 UTC (rev 3329)
@@ -25,7 +25,6 @@
package org.chorem.lima.business;
-import org.junit.BeforeClass;
import org.junit.Test;
/**
Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/FinancialTransactionServiceTest.java
===================================================================
--- trunk/lima-business/src/test/java/org/chorem/lima/business/FinancialTransactionServiceTest.java 2012-02-21 13:50:57 UTC (rev 3328)
+++ trunk/lima-business/src/test/java/org/chorem/lima/business/FinancialTransactionServiceTest.java 2012-02-21 14:00:40 UTC (rev 3329)
@@ -29,8 +29,6 @@
import java.text.ParseException;
import java.util.List;
-import junit.framework.Assert;
-
import org.chorem.lima.entity.Account;
import org.chorem.lima.entity.Entry;
import org.chorem.lima.entity.EntryBook;
@@ -39,8 +37,8 @@
import org.chorem.lima.entity.FinancialTransaction;
import org.chorem.lima.entity.FinancialTransactionImpl;
import org.chorem.lima.entity.FiscalPeriod;
+import org.junit.Assert;
import org.junit.Before;
-import org.junit.BeforeClass;
import org.junit.Test;
/**
1
0