]> git.mxchange.org Git - jbonuscard-lib.git/commitdiff
Intialized jbonuscard-lib project based on jfinancials-lib
authorRoland Häder <roland@mxchange.org>
Thu, 23 Apr 2020 07:50:47 +0000 (09:50 +0200)
committerRoland Häder <roland@mxchange.org>
Thu, 23 Apr 2020 07:50:47 +0000 (09:50 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
16 files changed:
README.txt
build.xml
lib/jcontacts-business-core.jar
lib/jcontacts-core.jar
lib/jcountry-core.jar
lib/jphone-core.jar
lib/jproduct-core.jar
lib/juser-core.jar
nbproject/build-impl.xml
nbproject/project.properties
nbproject/project.xml
src/org/mxchange/jfinancials/model/income/FinancialIncomeSessionBeanRemote.java [deleted file]
src/org/mxchange/jfinancials/model/receipt/FinancialAdminReceiptSessionBeanRemote.java [deleted file]
src/org/mxchange/jfinancials/model/receipt/FinancialReceiptSessionBeanRemote.java [deleted file]
src/org/mxchange/jfinancials/model/receipt_item/FinancialAdminReceiptItemSessionBeanRemote.java [deleted file]
src/org/mxchange/jfinancials/model/receipt_item/FinancialReceiptItemSessionBeanRemote.java [deleted file]

index 1538010debc12de2c2bdaae8d26118e62dcde3fb..b9bb69a3db6a59b46d1cf6332f9e995dc82b1abd 100644 (file)
@@ -4,5 +4,3 @@ README.txt
 1) What is this?
 ---------------
 
-This is a library for the jfinancials application. It should be linked as
-NetBeans project in all applications (Console, Swing, JSF, ...).
index 45c787ba81b96bc1b90dc7c86b814f2a32987caa..f2c1f886f54cca7f34b956e51cd43788f116e992 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -7,8 +7,8 @@
 <!-- the Compile on Save feature is turned off for the project. -->
 <!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
 <!-- in the project's Project Properties dialog box.-->
-<project name="jfinancials-lib" default="default" basedir=".">
-    <description>Builds, tests, and runs the project jfinancials-lib.</description>
+<project name="jbonuscard-lib" default="default" basedir=".">
+    <description>Builds, tests, and runs the project jbonuscard-lib.</description>
     <import file="nbproject/build-impl.xml"/>
     <!--
 
@@ -58,7 +58,7 @@
 
     An example of overriding the target for project execution could look like this:
 
-        <target name="run" depends="jfinancials-lib-impl.jar">
+        <target name="run" depends="jbonuscard-lib-impl.jar">
             <exec dir="bin" executable="launcher.exe">
                 <arg file="${dist.jar}"/>
             </exec>
index f1f885622722edcaded56831955db8074b6857a7..3ca0addff60bbe1b698ff5d6663712622ab948d6 100644 (file)
Binary files a/lib/jcontacts-business-core.jar and b/lib/jcontacts-business-core.jar differ
index 1f6fbd86c612c457541d9dead3d415758dd946cd..88fc960e6c77fabb422bdeb1763f03733f669569 100644 (file)
Binary files a/lib/jcontacts-core.jar and b/lib/jcontacts-core.jar differ
index 6fd32475479a38ac95d71416694e7275a1b83a4c..a66837ecd23fa76a6f4d763e7a4513c9037da2b5 100644 (file)
Binary files a/lib/jcountry-core.jar and b/lib/jcountry-core.jar differ
index 3d67df4815e711e18443fa3b604ca19d95d056c8..484e214cfb4985ad33ea3ef38711ee88927c5be1 100644 (file)
Binary files a/lib/jphone-core.jar and b/lib/jphone-core.jar differ
index f4f781693e36b1c2f08c696bfb7b7e2660f4c1d8..3a5a0710167bf0a6c0702c148b4153bea93361ff 100644 (file)
Binary files a/lib/jproduct-core.jar and b/lib/jproduct-core.jar differ
index ec926985e7124b86a7f55e38b0b0aefea1019aa1..a0e14affe5d898b5fe4fb931973180d6f0d8f941 100644 (file)
Binary files a/lib/juser-core.jar and b/lib/juser-core.jar differ
index 41a960382bbc8c7e40b1c7f98762e3a08dbcafcc..ff857ceaf5736782dad16ff1b975854a8589094b 100644 (file)
@@ -19,7 +19,7 @@ is divided into following sections:
   - cleanup
 
         -->
-<project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="jfinancials-lib-impl">
+<project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="jbonuscard-lib-impl">
     <fail message="Please build using Ant 1.8.0 or higher.">
         <condition>
             <not>
@@ -474,7 +474,7 @@ is divided into following sections:
                     </fileset>
                 </union>
                 <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
-                <testng classfilesetref="test.set" failureProperty="tests.failed" listeners="org.testng.reporters.VerboseReporter" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="jfinancials-lib" testname="TestNG tests" workingDir="${work.dir}">
+                <testng classfilesetref="test.set" failureProperty="tests.failed" listeners="org.testng.reporters.VerboseReporter" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="jbonuscard-lib" testname="TestNG tests" workingDir="${work.dir}">
                     <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
                     <propertyset>
                         <propertyref prefix="test-sys-prop."/>
@@ -625,7 +625,7 @@ is divided into following sections:
                 <condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}">
                     <isset property="test.method"/>
                 </condition>
-                <condition else="-suitename jfinancials-lib -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
+                <condition else="-suitename jbonuscard-lib -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
                     <matches pattern=".*\.xml" string="@{testClass}"/>
                 </condition>
                 <delete dir="${build.test.results.dir}" quiet="true"/>
@@ -917,7 +917,7 @@ is divided into following sections:
         <delete file="${built-jar.properties}" quiet="true"/>
     </target>
     <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
-        <echo level="warn" message="Cycle detected: jfinancials-lib was already built"/>
+        <echo level="warn" message="Cycle detected: jbonuscard-lib was already built"/>
     </target>
     <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
         <mkdir dir="${build.dir}"/>
@@ -929,8 +929,8 @@ is divided into following sections:
         </propertyfile>
         <antcall target="-maybe-call-dep">
             <param name="call.built.properties" value="${built-jar.properties}"/>
-            <param location="${project.jfinancials-core}" name="call.subproject"/>
-            <param location="${project.jfinancials-core}/build.xml" name="call.script"/>
+            <param location="${project.jbonuscard-core}" name="call.subproject"/>
+            <param location="${project.jbonuscard-core}/build.xml" name="call.script"/>
             <param name="call.target" value="jar"/>
             <param name="transfer.built-jar.properties" value="${built-jar.properties}"/>
             <param name="transfer.not.archive.disabled" value="true"/>
@@ -1410,7 +1410,7 @@ is divided into following sections:
         <delete file="${built-clean.properties}" quiet="true"/>
     </target>
     <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
-        <echo level="warn" message="Cycle detected: jfinancials-lib was already built"/>
+        <echo level="warn" message="Cycle detected: jbonuscard-lib was already built"/>
     </target>
     <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
         <mkdir dir="${build.dir}"/>
@@ -1422,8 +1422,8 @@ is divided into following sections:
         </propertyfile>
         <antcall target="-maybe-call-dep">
             <param name="call.built.properties" value="${built-clean.properties}"/>
-            <param location="${project.jfinancials-core}" name="call.subproject"/>
-            <param location="${project.jfinancials-core}/build.xml" name="call.script"/>
+            <param location="${project.jbonuscard-core}" name="call.subproject"/>
+            <param location="${project.jbonuscard-core}/build.xml" name="call.script"/>
             <param name="call.target" value="clean"/>
             <param name="transfer.built-clean.properties" value="${built-clean.properties}"/>
             <param name="transfer.not.archive.disabled" value="true"/>
index 581aec1bbfb340fbf8576ce700b2d62904c4ea33..8a968993538ddd5cb20e50f0d0a31ab008d8fd16 100644 (file)
@@ -3,7 +3,7 @@ annotation.processing.enabled.in.editor=true
 annotation.processing.processors.list=
 annotation.processing.run.all.processors=true
 annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
-application.title=jfinancials-lib
+application.title=jbonuscard-lib
 application.vendor=Roland H\u00e4der
 auxiliary.org-netbeans-spi-editor-hints-projects.perProjectHintSettingsFile=nbproject/cfg_hints.xml
 build.classes.dir=${build.dir}/classes
@@ -26,7 +26,7 @@ debug.test.classpath=\
 dist.archive.excludes=
 # This directory is removed when the project is cleaned:
 dist.dir=dist
-dist.jar=${dist.dir}/jfinancials-lib.jar
+dist.jar=${dist.dir}/jbonuscard-lib.jar
 dist.javadoc.dir=${dist.dir}/javadoc
 endorsed.classpath=
 excludes=
@@ -36,7 +36,7 @@ file.reference.jcountry-core.jar=lib/jcountry-core.jar
 file.reference.jphone-core.jar=lib/jphone-core.jar
 file.reference.jproduct-core.jar=lib/jproduct-core.jar
 file.reference.juser-core.jar=lib/juser-core.jar
-file.reference.jfinancials-core.jar=lib/jfinancials-core.jar
+file.reference.jbonuscard-core.jar=lib/jbonuscard-core.jar
 includes=**
 jar.archive.disabled=${jnlp.enabled}
 jar.compress=false
@@ -48,7 +48,7 @@ javac.classpath=\
     ${file.reference.jcontacts-business-core.jar}:\
     ${file.reference.jproduct-core.jar}:\
     ${file.reference.juser-core.jar}:\
-    ${reference.jfinancials-core.jar}:\
+    ${reference.jbonuscard-core.jar}:\
     ${libs.javaee-api-7.0.classpath}
 # Space-separated list of extra javac options
 javac.compilerargs=-Xlint:unchecked -Xlint:deprecation
@@ -91,9 +91,9 @@ manifest.file=manifest.mf
 meta.inf.dir=${src.dir}/META-INF
 mkdist.disabled=true
 platform.active=default_platform
-project.jfinancials-core=../jfinancials-core
+project.jbonuscard-core=../jbonuscard-core
 project.license=gpl30
-reference.jfinancials-core.jar=${project.jfinancials-core}/dist/jfinancials-core.jar
+reference.jbonuscard-core.jar=${project.jbonuscard-core}/dist/jbonuscard-core.jar
 run.classpath=\
     ${javac.classpath}:\
     ${build.classes.dir}
@@ -107,6 +107,6 @@ source.reference.jcountry-core.jar=../jcountry-core/src/
 source.reference.jphone-core.jar=../jphone-core/src/
 source.reference.jproduct-core.jar=../jproduct-core/src/
 source.reference.juser-core.jar=../juser-core/src/
-source.reference.jfinancials-core.jar=../jfinancials-core/src/
+source.reference.jbonuscard-core.jar=../jbonuscard-core/src/
 src.dir=src
 test.src.dir=test
index f6983614efdf13c74ed27167ec16d1d70df732db..f6f2a3d0f8fe1611ea30e0a63919b8efd91f6d8a 100644 (file)
@@ -3,7 +3,7 @@
     <type>org.netbeans.modules.java.j2seproject</type>
     <configuration>
         <data xmlns="http://www.netbeans.org/ns/j2se-project/3">
-            <name>jfinancials-lib</name>
+            <name>jbonuscard-lib</name>
             <source-roots>
                 <root id="src.dir"/>
             </source-roots>
@@ -16,7 +16,7 @@
         </libraries>
         <references xmlns="http://www.netbeans.org/ns/ant-project-references/1">
             <reference>
-                <foreign-project>jfinancials-core</foreign-project>
+                <foreign-project>jbonuscard-core</foreign-project>
                 <artifact-type>jar</artifact-type>
                 <script>build.xml</script>
                 <target>jar</target>
diff --git a/src/org/mxchange/jfinancials/model/income/FinancialIncomeSessionBeanRemote.java b/src/org/mxchange/jfinancials/model/income/FinancialIncomeSessionBeanRemote.java
deleted file mode 100644 (file)
index dd88f08..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Copyright (C) 2017 - 2020 Free Software Foundation
- *
- * 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/>.
- */
-package org.mxchange.jfinancials.model.income;
-
-import java.io.Serializable;
-import javax.ejb.Remote;
-
-/**
- * A remote interface for financial income stuff
- * <p>
- * @author Roland Häder<roland@mxchange.org>
- */
-@Remote
-public interface FinancialIncomeSessionBeanRemote extends Serializable {
-
-       /**
-        * Adds given income entity to database, if not persisted yet.
-        * <p>
-        * @param income Income entity
-        * <p>
-        * @return Updated income entity
-        */
-       BillableIncome addIncome (final BillableIncome income);
-
-}
diff --git a/src/org/mxchange/jfinancials/model/receipt/FinancialAdminReceiptSessionBeanRemote.java b/src/org/mxchange/jfinancials/model/receipt/FinancialAdminReceiptSessionBeanRemote.java
deleted file mode 100644 (file)
index e06e29d..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * Copyright (C) 2017 - 2020 Free Software Foundation
- *
- * 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/>.
- */
-package org.mxchange.jfinancials.model.receipt;
-
-import java.io.Serializable;
-import javax.ejb.Remote;
-import org.mxchange.jfinancials.exceptions.receipt.ReceiptAlreadyAddedException;
-import org.mxchange.jfinancials.exceptions.receipt.ReceiptNotFoundException;
-
-/**
- * A remote interface for administrative EJBs for receipts
- * <p>
- * @author Roland Häder<roland@mxchange.org>
- */
-@Remote
-public interface FinancialAdminReceiptSessionBeanRemote extends Serializable {
-
-       /**
-        * Updates given receipt in database and returns an updated version.
-        * <p>
-        * @param receipt Receipt instance being updated
-        * <p>
-        * @return Updated receipt instance
-        * <p>
-        * @throws ReceiptNotFoundException If receipt instance was not found
-        */
-       BillableReceipt updateReceipt (final BillableReceipt receipt) throws ReceiptNotFoundException;
-
-       /**
-        * Adds given receipt and returns the updated version. If the receipt has
-        * already been found, a proper exception is being thrown.
-        * <p>
-        * @param receipt Receipt being added
-        * <p>
-        * @return Updated receipt
-        * <p>
-        * @throws ReceiptAlreadyAddedException If the receipt has already been
-        * added
-        */
-       BillableReceipt addReceipt (final BillableReceipt receipt) throws ReceiptAlreadyAddedException;
-
-}
diff --git a/src/org/mxchange/jfinancials/model/receipt/FinancialReceiptSessionBeanRemote.java b/src/org/mxchange/jfinancials/model/receipt/FinancialReceiptSessionBeanRemote.java
deleted file mode 100644 (file)
index 38533e7..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-/*
- * Copyright (C) 2017 - 2020 Free Software Foundation
- *
- * 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/>.
- */
-package org.mxchange.jfinancials.model.receipt;
-
-import java.io.Serializable;
-import java.util.List;
-import javax.ejb.Remote;
-import org.mxchange.jfinancials.exceptions.receipt.ReceiptAlreadyAddedException;
-import org.mxchange.jusercore.model.user.User;
-
-/**
- * A remote interface for financial receipts
- * <p>
- * @author Roland Häder<roland@mxchange.org>
- */
-@Remote
-public interface FinancialReceiptSessionBeanRemote extends Serializable {
-
-       /**
-        * Returns a list of all receipts
-        * <p>
-        * @return A list of all receipts
-        */
-       List<BillableReceipt> fetchAllReceipts ();
-
-       /**
-        * Returns a list of all user's receipts
-        * <p>
-        * @param user User instance to get all receipts for
-        * <p>
-        * @return A list of all user's receipts
-        */
-       List<BillableReceipt> fetchAllUsersReceipts (final User user);
-
-       /**
-        * Adds given receipt and returns the updated version. If the receipt has
-        * already been found, a proper exception is being thrown.
-        * <p>
-        * @param receipt Receipt being added
-        * <p>
-        * @return Updated receipt
-        * <p>
-        * @throws ReceiptAlreadyAddedException If the receipt has already been
-        * added
-        */
-       BillableReceipt addReceipt (final BillableReceipt receipt) throws ReceiptAlreadyAddedException;
-
-       /**
-        * Checks if given receipt is already persisted by checking receipt number
-        * and branch office combination.
-        * <p>
-        * @param receipt Receipt instance
-        * <p>
-        * @return Whether the receipt has already been registered
-        */
-       boolean isReceiptRegistered (final BillableReceipt receipt);
-
-}
diff --git a/src/org/mxchange/jfinancials/model/receipt_item/FinancialAdminReceiptItemSessionBeanRemote.java b/src/org/mxchange/jfinancials/model/receipt_item/FinancialAdminReceiptItemSessionBeanRemote.java
deleted file mode 100644 (file)
index 2e52f8e..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Copyright (C) 2017 - 2020 Free Software Foundation
- *
- * 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/>.
- */
-package org.mxchange.jfinancials.model.receipt_item;
-
-import java.io.Serializable;
-import javax.ejb.Remote;
-import org.mxchange.jfinancials.exceptions.receipt_item.ReceiptItemAlreadyAddedException;
-
-/**
- * A remote interface for administrative EJBs for receipt items
- * <p>
- * @author Roland Häder<roland@mxchange.org>
- */
-@Remote
-public interface FinancialAdminReceiptItemSessionBeanRemote extends Serializable {
-
-       /**
-        * Adds given receipt item and returns the updated version. If the receipt
-        * item has already been found, a proper exception is being thrown.
-        * <p>
-        * @param receiptItem Receipt item being added
-        * <p>
-        * @return Updated receipt item
-        * <p>
-        * @throws ReceiptItemAlreadyAddedException If the receipt item has already
-        * been added
-        */
-       BillableReceiptItem addReceiptItem (final BillableReceiptItem receiptItem) throws ReceiptItemAlreadyAddedException;
-
-}
diff --git a/src/org/mxchange/jfinancials/model/receipt_item/FinancialReceiptItemSessionBeanRemote.java b/src/org/mxchange/jfinancials/model/receipt_item/FinancialReceiptItemSessionBeanRemote.java
deleted file mode 100644 (file)
index f77d2fe..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-/*
- * Copyright (C) 2017 - 2020 Free Software Foundation
- *
- * 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/>.
- */
-package org.mxchange.jfinancials.model.receipt_item;
-
-import java.io.Serializable;
-import java.util.List;
-import javax.ejb.Remote;
-import org.mxchange.jfinancials.exceptions.receipt_item.ReceiptItemAlreadyAddedException;
-import org.mxchange.jfinancials.model.receipt.BillableReceipt;
-import org.mxchange.jusercore.model.user.User;
-
-/**
- * A remote interface for financial receipt items
- * <p>
- * @author Roland Häder<roland@mxchange.org>
- */
-@Remote
-public interface FinancialReceiptItemSessionBeanRemote extends Serializable {
-
-       /**
-        * Returns a list of all receipt items
-        * <p>
-        * @return A list of all receipt items
-        */
-       List<BillableReceiptItem> fetchAllReceiptItems ();
-
-       /**
-        * Returns a list of all items by given receipt instance
-        * <p>
-        * @param receipt Receipt instance
-        * <p>
-        * @return A list of all assigned receipt items
-        */
-       List<BillableReceiptItem> fetchReceiptItemsByReceipt (final BillableReceipt receipt);
-
-       /**
-        * Returns a list of all user's receipt items
-        * <p>
-        * @param user User instance to get all receipts for
-        * <p>
-        * @return A list of all user's receipt items
-        */
-       List<BillableReceiptItem> fetchReceiptItemsByUserUser (final User user);
-
-       /**
-        * Adds given receipt item and returns the updated version. If the receipt
-        * item has already been found, a proper exception is being thrown.
-        * <p>
-        * @param receiptItem Receipt item being added
-        * <p>
-        * @return Updated receipt
-        * <p>
-        * @throws ReceiptItemAlreadyAddedException If the receipt item has already
-        * been added
-        */
-       BillableReceiptItem addReceiptItem (final BillableReceiptItem receiptItem) throws ReceiptItemAlreadyAddedException;
-
-}