From bcd1d197b128646575ff9fe90668ea4da7940d93 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sat, 12 Mar 2016 18:12:19 +0100 Subject: [PATCH] added new business methods + updated jar(s) --- lib/juser-core.jar | Bin 37613 -> 38967 bytes .../EmailChangeSessionBeanRemote.java | 24 +++++++++++++++--- .../model/user/UserSessionBeanRemote.java | 9 +++++++ 3 files changed, 29 insertions(+), 4 deletions(-) diff --git a/lib/juser-core.jar b/lib/juser-core.jar index 8488d71d29bac0c83be02e3c7e5e3129e0b51f47..0ec158aec46f5e2cb152081a1e03136da2eb0fb9 100644 GIT binary patch delta 3873 zcma)9dr(x@8UNjT_rWd;$ci8Z;i{;xh#+dJD7uKNJXS!6f>KcmD~|vw8&MLQ)x-y) z^6<3U&_-j_q;0g~5Y#l&)|n2X2%i=_xCN)~M zGCBN~CY^qvm9p|ClZRlW&-53CvD?ySVf?eBSjxH4b2XN?##TxEQQS^BZi}x`dAwnE zjfwH6$*Uy(TVEzIYeB2je=+^0#FEALwdk9d+lnH*pKney0f{D|=WMetuwtGS^Q}l5 zIg<0NDpstHNi3@OH!E=ZeNTJZ>s#6io9jE8d^{*_R?Qdg_7st~?1C~w{IcC65|-<3 z8(>n9gh+|Wm?JR-sQ?t{)T)>}A@N1`?)`Pom01A)3Po&-E-JKWk-F9?URxg1c+HMk z=(XWA&e#x#vvz9wxYy6k05^l&oZ|`7i-X|i+idn7E6(%qg-Arl;*sinH{IJ> z-&LR8M(N4+?(Jw=Ew;={7w=e|qF`wp^;5*Y+(oj#KReE@z;wXx>r{|06lVsh#fw{2 z>%>>98kF;*KJUNj&Zfr_KJ_jf$*CF{UVU59D7iu@n<+YLassofeD$3T&0#yXzFP_k z%*4C1TS0l1$LlG4QupZ_E6X?Q;fwU^1ywX&UF50s=-%>bPi4AqiBu?PZ0z*;{TaHq zxHL4CCucGg#22)+$sh#*L(Qlazk-rbtO;JG4P0Ki!BeTP->wIv8h(l!iB_S4gelf$ z6sbEDCNQmQV@(t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uRq2$Ot1BXf`9g%@#u>K#7ln}jFaQ7m 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 *

-- 2.39.5