From 0423289c299677221e0fbf1d042c0b50a427cf60 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Tue, 6 Oct 2015 12:14:09 +0200 Subject: [PATCH] =?utf8?q?Continued:=20-=20added=202=20remote=20interfaces?= =?utf8?q?,=20for=20login=20and=20registration=20-=20updated=20jars=20Sign?= =?utf8?q?ed-off-by:Roland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- lib/juser-core.jar | Bin 10251 -> 13411 bytes nbproject/build-impl.xml | 16 +++++++ nbproject/genfiles.properties | 6 +-- nbproject/project.properties | 5 +- nbproject/project.xml | 10 ++++ .../login/UserLoginSessionBeanRemote.java | 43 ++++++++++++++++++ .../UserRegistrationSessionBeanRemote.java | 39 ++++++++++++++++ 7 files changed, 115 insertions(+), 4 deletions(-) create mode 100644 src/org/mxchange/jusercore/model/login/UserLoginSessionBeanRemote.java create mode 100644 src/org/mxchange/jusercore/model/register/UserRegistrationSessionBeanRemote.java diff --git a/lib/juser-core.jar b/lib/juser-core.jar index 1651c24ee4b8986a7d54e6c7087867c359745bfe..30c2eb8281ea781cce326a635f5476b122507439 100644 GIT binary patch delta 1713 zcmd5-O-vI}5T3W&ALx&55n7-HS7;ZC%8wF(D5Pp=V~Ws#jnNRWlmbO)p=_1J5F!UJ z5)3{QF&a-M#^6PXK@Nt<0Zt|+UO1SD;bMXpjTaM*&RbH$QWGU!IJ}vidGDKij#I)Ds-mEg3&%`FF~YwmFP{6=8%iyI{^AV-*bP2AKY>J=Dzi_~rIH85r5 z8d1%i-{|;O%>%GiPea6|4~|3<&2h;aPsZqdF3(Y#0l8Yp(?dSkb>M&k z9cZCY3;VPn&~~lcJQI1axO{VffaZ8K7L^+4n!bv9_-ax|U-7wEkV%`0_k?c>)f2lMo7rvGbB}B`Wm^Nd+y@5n%uejO>J#WAQ|9#o%bTkJcGYjGnD! zZK#HK14Fsn7+Sr1{c8`h(?dJCL#E9(24mrPtS6cn{4aXi)1uAtt>fD=q%%|T56mP} z1@4F*57I-cjoFNuwAywFJw^pRb5oiLGn-{uHm8c|TKgly^asat4Qe`5T!+(=zAg4J zE5}*Ml+P(o!wKgpX014znX0rQ5xNJW4oALVAFD?zA(*UsLQGni;An2qu;8)`o P;M}vof*Rm delta 343 zcmaEy(H+1O;LXg!#lXP9z)br=v}Nh6#1WJ5zqpa%ZQ zRmMUfQ~Qi%m~^BOqH5fe?;G=gWZnX0uF61VxF_qIsPXYJ@G)ewFfeo}gA4@#lFMHG diff --git a/nbproject/build-impl.xml b/nbproject/build-impl.xml index 7030c7d..e5a5ee9 100644 --- a/nbproject/build-impl.xml +++ b/nbproject/build-impl.xml @@ -921,6 +921,14 @@ is divided into following sections: + + + + + + + + @@ -1406,6 +1414,14 @@ is divided into following sections: + + + + + + + + diff --git a/nbproject/genfiles.properties b/nbproject/genfiles.properties index f799d46..a2a3648 100644 --- a/nbproject/genfiles.properties +++ b/nbproject/genfiles.properties @@ -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 diff --git a/nbproject/project.properties b/nbproject/project.properties index e4b6914..64fda43 100644 --- a/nbproject/project.properties +++ b/nbproject/project.properties @@ -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} diff --git a/nbproject/project.xml b/nbproject/project.xml index 37972ca..ff4c7c1 100644 --- a/nbproject/project.xml +++ b/nbproject/project.xml @@ -14,5 +14,15 @@ .\lib\nblibraries.properties + + + jcontacts-core + jar + + jar + clean + jar + + diff --git a/src/org/mxchange/jusercore/model/login/UserLoginSessionBeanRemote.java b/src/org/mxchange/jusercore/model/login/UserLoginSessionBeanRemote.java new file mode 100644 index 0000000..1ddcce0 --- /dev/null +++ b/src/org/mxchange/jusercore/model/login/UserLoginSessionBeanRemote.java @@ -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 . + */ +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 + *

+ * @author Roland Haeder + */ +@Remote +public interface UserLoginSessionBeanRemote extends Serializable { + + /** + * Registers given user data, if not yet found + *

+ * @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 index 0000000..a819994 --- /dev/null +++ b/src/org/mxchange/jusercore/model/register/UserRegistrationSessionBeanRemote.java @@ -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 . + */ +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 + *

+ * @author Roland Haeder + */ +@Remote +public interface UserRegistrationSessionBeanRemote extends Serializable { + + /** + * Registers given user data, if not yet found + *

+ * @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; +} -- 2.39.5