From: Roland Häder Date: Thu, 25 Aug 2016 13:02:32 +0000 (+0200) Subject: Please cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6abcc33f1c8698f02104400687e7abd27b7c258b;p=pizzaservice-lib.git Please cherry-pick: - throw checked exceptions, having some nice feedback from EJB --- diff --git a/src/org/mxchange/pizzaapplication/beans/resendlink/ResendLinkSessionBeanRemote.java b/src/org/mxchange/pizzaapplication/beans/resendlink/ResendLinkSessionBeanRemote.java index 07dc18c..07b2dec 100644 --- a/src/org/mxchange/pizzaapplication/beans/resendlink/ResendLinkSessionBeanRemote.java +++ b/src/org/mxchange/pizzaapplication/beans/resendlink/ResendLinkSessionBeanRemote.java @@ -19,6 +19,9 @@ package org.mxchange.pizzaapplication.beans.resendlink; import java.io.Serializable; import java.util.Locale; import javax.ejb.Remote; +import org.mxchange.jusercore.exceptions.UserNotFoundException; +import org.mxchange.jusercore.exceptions.UserStatusConfirmedException; +import org.mxchange.jusercore.exceptions.UserStatusLockedException; import org.mxchange.jusercore.model.user.User; /** @@ -38,7 +41,11 @@ public interface ResendLinkSessionBeanRemote extends Serializable { * @param user User instance * @param locale Locale instance * @param baseUrl Base URL + *

+ * @throws UserNotFoundException When the user is not found + * @throws UserStatusConfirmedException User account is already confirmed + * @throws UserStatusLockedException User account is locked */ - void resendConfirmationLink (final User user, final Locale locale, final String baseUrl); + void resendConfirmationLink (final User user, final Locale locale, final String baseUrl) throws UserNotFoundException, UserStatusConfirmedException, UserStatusLockedException; }