]> git.mxchange.org Git - juser-lib.git/commitdiff
added new business methods + updated jar(s)
authorRoland Haeder <roland@mxchange.org>
Sat, 12 Mar 2016 17:12:19 +0000 (18:12 +0100)
committerRoland Haeder <roland@mxchange.org>
Sun, 13 Mar 2016 14:02:53 +0000 (15:02 +0100)
lib/juser-core.jar
src/org/mxchange/jusercore/model/email_address/EmailChangeSessionBeanRemote.java
src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java

index 8488d71d29bac0c83be02e3c7e5e3129e0b51f47..0ec158aec46f5e2cb152081a1e03136da2eb0fb9 100644 (file)
Binary files a/lib/juser-core.jar and b/lib/juser-core.jar differ
index ba84b7bd24c614eb3a5910516a76682c2d57014a..cc9264705d806738690ca7d87e93ba26b38d9e63 100644 (file)
@@ -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
+        * <p>
+        * @param emailAddress Email address to check
+        * <p>
+        * @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
+        * <p>
+        * @return A list of all queued email addresses
+        */
+       List<String> allQueuedAddressesAsList ();
+
        /**
         * "Enqueues" given email change object
         * <p>
-        * @param emailChange User instance to update
+        * @param emailChange Email change instance to insert
         */
        void enqueueEmailAddressForChange (final ChangeableEmailAddress emailChange);
 
        /**
         * Updates given user's email address.
         * <p>
-        * @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);
 
 }
index 4acac2c5dcbd74ae4a5c65dcdd33143294b93cd6..294e6b688face88593fe273824a8d175e16dc8f1 100644 (file)
@@ -75,6 +75,15 @@ public interface UserSessionBeanRemote extends Serializable {
         */
        boolean ifUserIdExists (final Long userId);
 
+       /**
+        * Checks if given user exists
+        * <p>
+        * @param user User to check
+        * <p>
+        * @return Whether the user exists
+        */
+       boolean ifUserExists (final User user);
+
        /**
         * Checks if the the given user's name is already registered
         * <p>