]> git.mxchange.org Git - juser-activity-lib.git/commitdiff
Continued:
authorRoland Haeder <roland@mxchange.org>
Tue, 6 Oct 2015 10:14:09 +0000 (12:14 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 6 Oct 2015 10:14:09 +0000 (12:14 +0200)
- added 2 remote interfaces, for login and registration
- updated jars
Signed-off-by:Roland Häder <roland@mxchange.org>

lib/juser-core.jar
nbproject/build-impl.xml
nbproject/genfiles.properties
nbproject/project.properties
nbproject/project.xml
src/org/mxchange/jusercore/model/login/UserLoginSessionBeanRemote.java [new file with mode: 0644]
src/org/mxchange/jusercore/model/register/UserRegistrationSessionBeanRemote.java [new file with mode: 0644]

index 1651c24ee4b8986a7d54e6c7087867c359745bfe..30c2eb8281ea781cce326a635f5476b122507439 100644 (file)
Binary files a/lib/juser-core.jar and b/lib/juser-core.jar differ
index 7030c7db4271394e737073adfd68676520e62dfa..e5a5ee9c070239032c73d2268f73214647179ce7 100644 (file)
@@ -921,6 +921,14 @@ is divided into following sections:
         <propertyfile file="${built-jar.properties}">
             <entry key="${basedir}" value=""/>
         </propertyfile>
+        <antcall target="-maybe-call-dep">
+            <param name="call.built.properties" value="${built-jar.properties}"/>
+            <param location="${project.jcontacts-core}" name="call.subproject"/>
+            <param location="${project.jcontacts-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"/>
+        </antcall>
     </target>
     <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
     <target depends="init" name="-check-automatic-build">
@@ -1406,6 +1414,14 @@ is divided into following sections:
         <propertyfile file="${built-clean.properties}">
             <entry key="${basedir}" value=""/>
         </propertyfile>
+        <antcall target="-maybe-call-dep">
+            <param name="call.built.properties" value="${built-clean.properties}"/>
+            <param location="${project.jcontacts-core}" name="call.subproject"/>
+            <param location="${project.jcontacts-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"/>
+        </antcall>
     </target>
     <target depends="init" name="-do-clean">
         <delete dir="${build.dir}"/>
index f799d467cbc3a7e53593383e833534e9dcf5ee1a..a2a3648cacf3d4ae3b7ecfd5edaf458350d754bb 100644 (file)
@@ -1,8 +1,8 @@
-build.xml.data.CRC32=fb242293
+build.xml.data.CRC32=3fa9afd6
 build.xml.script.CRC32=62996a1a
 build.xml.stylesheet.CRC32=8064a381@1.75.2.48
 # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
 # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
-nbproject/build-impl.xml.data.CRC32=fb242293
-nbproject/build-impl.xml.script.CRC32=77e8f329
+nbproject/build-impl.xml.data.CRC32=3fa9afd6
+nbproject/build-impl.xml.script.CRC32=a88e4bf5
 nbproject/build-impl.xml.stylesheet.CRC32=876e7a8f@1.75.2.48
index e4b6914b8c7b09f972fd0e88c9509760acde735e..64fda432e227f3d36aab1f1b9e12da5787c8d385 100644 (file)
@@ -36,7 +36,8 @@ jar.compress=false
 jar.index=${jnlp.enabled}
 javac.classpath=\
     ${file.reference.juser-core.jar}:\
-    ${libs.javaee-api-7.0.classpath}
+    ${libs.javaee-api-7.0.classpath}:\
+    ${reference.jcontacts-core.jar}
 # Space-separated list of extra javac options
 javac.compilerargs=-Xlint:unchecked -Xlint:deprecation
 javac.deprecation=true
@@ -76,7 +77,9 @@ manifest.custom.permissions=
 meta.inf.dir=${src.dir}/META-INF
 mkdist.disabled=true
 platform.active=default_platform
+project.jcontacts-core=../jcontacts-core
 project.license=gpl30
+reference.jcontacts-core.jar=${project.jcontacts-core}/dist/jcontacts-core.jar
 run.classpath=\
     ${javac.classpath}:\
     ${build.classes.dir}
index 37972ca61623cf1d8cd98c6626d274f477fd7d02..ff4c7c19cf536543676da0ce44b09b5021d5f33d 100644 (file)
         <libraries xmlns="http://www.netbeans.org/ns/ant-project-libraries/1">
             <definitions>.\lib\nblibraries.properties</definitions>
         </libraries>
+        <references xmlns="http://www.netbeans.org/ns/ant-project-references/1">
+            <reference>
+                <foreign-project>jcontacts-core</foreign-project>
+                <artifact-type>jar</artifact-type>
+                <script>build.xml</script>
+                <target>jar</target>
+                <clean-target>clean</clean-target>
+                <id>jar</id>
+            </reference>
+        </references>
     </configuration>
 </project>
diff --git a/src/org/mxchange/jusercore/model/login/UserLoginSessionBeanRemote.java b/src/org/mxchange/jusercore/model/login/UserLoginSessionBeanRemote.java
new file mode 100644 (file)
index 0000000..1ddcce0
--- /dev/null
@@ -0,0 +1,43 @@
+/*
+ * Copyright (C) 2015 Roland Haeder
+ *
+ * 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.jusercore.model.login;
+
+import java.io.Serializable;
+import javax.ejb.Remote;
+import org.mxchange.jusercore.exceptions.UserNotFoundException;
+import org.mxchange.jusercore.exceptions.UserStatusLockedException;
+import org.mxchange.jusercore.exceptions.UserStatusUnconfirmedException;
+import org.mxchange.jusercore.model.user.User;
+
+/**
+ * A remote interface for user login
+ * <p>
+ * @author Roland Haeder
+ */
+@Remote
+public interface UserLoginSessionBeanRemote extends Serializable {
+
+       /**
+        * Registers given user data, if not yet found
+        * <p>
+        * @param user User instance to register
+        * @throws org.mxchange.jusercore.exceptions.UserNotFoundException If the user account was not found
+        * @throws org.mxchange.jusercore.exceptions.UserStatusLockedException If the user account is locked
+        * @throws org.mxchange.jusercore.exceptions.UserStatusUnconfirmedException If the user account is unconfirmed
+        */
+       public void loginUser (final User user) throws UserNotFoundException, UserStatusLockedException, UserStatusUnconfirmedException;
+}
diff --git a/src/org/mxchange/jusercore/model/register/UserRegistrationSessionBeanRemote.java b/src/org/mxchange/jusercore/model/register/UserRegistrationSessionBeanRemote.java
new file mode 100644 (file)
index 0000000..a819994
--- /dev/null
@@ -0,0 +1,39 @@
+/*
+ * Copyright (C) 2015 Roland Haeder
+ *
+ * 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.jusercore.model.register;
+
+import java.io.Serializable;
+import javax.ejb.Remote;
+import org.mxchange.jusercore.exceptions.UserAlreadyRegisteredException;
+import org.mxchange.jusercore.model.user.User;
+
+/**
+ * A remote interface for user registtration
+ * <p>
+ * @author Roland Haeder
+ */
+@Remote
+public interface UserRegistrationSessionBeanRemote extends Serializable {
+
+       /**
+        * Registers given user data, if not yet found
+        * <p>
+        * @param user User instance to register
+        * @throws org.mxchange.jusercore.exceptions.UserAlreadyRegisteredException If the user has already been registered
+        */
+       public void registerUser (final User user) throws UserAlreadyRegisteredException;
+}