From: Roland Haeder Date: Sat, 12 Mar 2016 17:12:19 +0000 (+0100) Subject: added new business methods + updated jar(s) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bcd1d197b128646575ff9fe90668ea4da7940d93;p=juser-login-lib.git added new business methods + updated jar(s) --- diff --git a/lib/juser-core.jar b/lib/juser-core.jar index 8488d71..0ec158a 100644 Binary files a/lib/juser-core.jar and b/lib/juser-core.jar differ diff --git a/src/org/mxchange/jusercore/model/email_address/EmailChangeSessionBeanRemote.java b/src/org/mxchange/jusercore/model/email_address/EmailChangeSessionBeanRemote.java index ba84b7b..cc92647 100644 --- a/src/org/mxchange/jusercore/model/email_address/EmailChangeSessionBeanRemote.java +++ b/src/org/mxchange/jusercore/model/email_address/EmailChangeSessionBeanRemote.java @@ -17,8 +17,8 @@ package org.mxchange.jusercore.model.email_address; import java.io.Serializable; +import java.util.List; import javax.ejb.Remote; -import org.mxchange.jusercore.model.user.User; /** * A remote interface for changing email addresses @@ -28,18 +28,34 @@ import org.mxchange.jusercore.model.user.User; @Remote public interface EmailChangeSessionBeanRemote extends Serializable { + /** + * Checks whether given email address is already enqueued + *

+ * @param emailAddress Email address to check + *

+ * @return Whether the email address has already been enqueued + */ + boolean isEmailAddressEnqueued (final String emailAddress); + + /** + * Returns a list of all queued email addresses, not limited to a user + *

+ * @return A list of all queued email addresses + */ + List allQueuedAddressesAsList (); + /** * "Enqueues" given email change object *

- * @param emailChange User instance to update + * @param emailChange Email change instance to insert */ void enqueueEmailAddressForChange (final ChangeableEmailAddress emailChange); /** * Updates given user's email address. *

- * @param user User instance to update + * @param emailChange Email change instance to mark as used */ - void updateEmailAddress (final User user); + void updateEmailAddress (final ChangeableEmailAddress emailChange); } diff --git a/src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java b/src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java index 4acac2c..294e6b6 100644 --- a/src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java +++ b/src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java @@ -75,6 +75,15 @@ public interface UserSessionBeanRemote extends Serializable { */ boolean ifUserIdExists (final Long userId); + /** + * Checks if given user exists + *

+ * @param user User to check + *

+ * @return Whether the user exists + */ + boolean ifUserExists (final User user); + /** * Checks if the the given user's name is already registered *