From: Roland Häder Date: Sat, 9 Sep 2017 22:01:42 +0000 (+0200) Subject: Renamed package to 'model' as these remote interfaces belong to a model (entity). X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=415c5b5917e2c5d5592a2ff324f0497e564f08eb;p=jbonuscard-lib.git Renamed package to 'model' as these remote interfaces belong to a model (entity). Signed-off-by: Roland Häder --- diff --git a/src/org/mxchange/jfinancials/financial/income/FinancialIncomeSessionBeanRemote.java b/src/org/mxchange/jfinancials/financial/income/FinancialIncomeSessionBeanRemote.java deleted file mode 100644 index 2c9ccb9..0000000 --- a/src/org/mxchange/jfinancials/financial/income/FinancialIncomeSessionBeanRemote.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2017 Roland Häder - * - * 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 . - */ -package org.mxchange.jfinancials.financial.income; - -import java.io.Serializable; -import javax.ejb.Remote; -import org.mxchange.jfinancials.model.income.BillableIncome; - -/** - * A remote interface for financial income stuff - *

- * @author Roland Häder - */ -@Remote -public interface FinancialIncomeSessionBeanRemote extends Serializable { - - /** - * Adds given income entity to database, if not persisted yet. - *

- * @param income Income entity - *

- * @return Updated income entity - */ - BillableIncome addIncome (final BillableIncome income); - -} diff --git a/src/org/mxchange/jfinancials/financial/receipt/FinancialReceiptSessionBeanRemote.java b/src/org/mxchange/jfinancials/financial/receipt/FinancialReceiptSessionBeanRemote.java deleted file mode 100644 index 8cb847d..0000000 --- a/src/org/mxchange/jfinancials/financial/receipt/FinancialReceiptSessionBeanRemote.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (C) 2017 Roland Häder - * - * 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 . - */ -package org.mxchange.jfinancials.financial.receipt; - -import java.io.Serializable; -import java.util.Collection; -import javax.ejb.Remote; -import org.mxchange.jfinancials.exceptions.ReceiptAlreadyAddedException; -import org.mxchange.jfinancials.model.receipt.BillableReceipt; -import org.mxchange.jusercore.model.user.User; - -/** - * A remote interface for financial receipt stuff - *

- * @author Roland Häder - */ -@Remote -public interface FinancialReceiptSessionBeanRemote extends Serializable { - - /** - * Returns a collection of all user's receipts - *

- * @param user User instance to get all receipts for - *

- * @return A collection of all user's receipts - */ - Collection allUsersReceipts (final User user); - - /** - * Adds given receipt and returns the updated version. If the receipt has - * already been found, a proper exception is being thrown. - *

- * @param receipt Receipt being added - *

- * @return Updated receipt - *

- * @throws ReceiptAlreadyAddedException If the receipt has already been - * added - */ - BillableReceipt addReceipt (final BillableReceipt receipt) throws ReceiptAlreadyAddedException; - -} diff --git a/src/org/mxchange/jfinancials/model/income/FinancialIncomeSessionBeanRemote.java b/src/org/mxchange/jfinancials/model/income/FinancialIncomeSessionBeanRemote.java new file mode 100644 index 0000000..7ed2652 --- /dev/null +++ b/src/org/mxchange/jfinancials/model/income/FinancialIncomeSessionBeanRemote.java @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2017 Roland Häder + * + * 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 . + */ +package org.mxchange.jfinancials.model.income; + +import java.io.Serializable; +import javax.ejb.Remote; + +/** + * A remote interface for financial income stuff + *

+ * @author Roland Häder + */ +@Remote +public interface FinancialIncomeSessionBeanRemote extends Serializable { + + /** + * Adds given income entity to database, if not persisted yet. + *

+ * @param income Income entity + *

+ * @return Updated income entity + */ + BillableIncome addIncome (final BillableIncome income); + +} diff --git a/src/org/mxchange/jfinancials/model/receipt/FinancialReceiptSessionBeanRemote.java b/src/org/mxchange/jfinancials/model/receipt/FinancialReceiptSessionBeanRemote.java new file mode 100644 index 0000000..da03bca --- /dev/null +++ b/src/org/mxchange/jfinancials/model/receipt/FinancialReceiptSessionBeanRemote.java @@ -0,0 +1,55 @@ +/* + * Copyright (C) 2017 Roland Häder + * + * 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 . + */ +package org.mxchange.jfinancials.model.receipt; + +import java.io.Serializable; +import java.util.Collection; +import javax.ejb.Remote; +import org.mxchange.jfinancials.exceptions.ReceiptAlreadyAddedException; +import org.mxchange.jusercore.model.user.User; + +/** + * A remote interface for financial receipt stuff + *

+ * @author Roland Häder + */ +@Remote +public interface FinancialReceiptSessionBeanRemote extends Serializable { + + /** + * Returns a collection of all user's receipts + *

+ * @param user User instance to get all receipts for + *

+ * @return A collection of all user's receipts + */ + Collection allUsersReceipts (final User user); + + /** + * Adds given receipt and returns the updated version. If the receipt has + * already been found, a proper exception is being thrown. + *

+ * @param receipt Receipt being added + *

+ * @return Updated receipt + *

+ * @throws ReceiptAlreadyAddedException If the receipt has already been + * added + */ + BillableReceipt addReceipt (final BillableReceipt receipt) throws ReceiptAlreadyAddedException; + +}