From: Roland Haeder Date: Tue, 6 Oct 2015 10:14:09 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0423289c299677221e0fbf1d042c0b50a427cf60;p=juser-login-lib.git Continued: - added 2 remote interfaces, for login and registration - updated jars Signed-off-by:Roland Häder --- diff --git a/lib/juser-core.jar b/lib/juser-core.jar index 1651c24..30c2eb8 100644 Binary files a/lib/juser-core.jar and b/lib/juser-core.jar differ 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; +}