import org.mxchange.jusercore.model.user.User;
/**
- * An event, fireed if a new confirmedUser has confirmed
+ * An event, fired if a new confirmedUser has confirmed
* <p>
* @author Roland Haeder<roland@mxchange.org>
*/
this.confirmedUser = confirmedUser;
}
- /**
- * Getter for confirmedUser instance
- * <p>
- * @return User instance
- */
@Override
public User getConfirmedUser () {
return this.confirmedUser;
import org.mxchange.jusercore.model.user.User;
/**
- * An event interface, fireed if a new user has registered
+ * An event interface, fired if a new user has registered
* <p>
* @author Roland Haeder<roland@mxchange.org>
*/
import org.mxchange.jusercore.model.user.User;
/**
- * An event, fireed if a new registeredUser has registered
+ * An event, fired if a new registeredUser has registered
* <p>
* @author Roland Haeder<roland@mxchange.org>
*/
import org.mxchange.jusercore.model.user.User;
/**
- * An event interface, fireed if a new user has registered
+ * An event interface, fired if a new user has registered
* <p>
* @author Roland Haeder<roland@mxchange.org>
*/
--- /dev/null
+/*
+ * Copyright (C) 2016 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 <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jusercore.events.resendlink;
+
+import java.text.MessageFormat;
+import org.mxchange.jusercore.model.user.User;
+
+/**
+ * An event, fired if a user has resend confirmation link
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
+ */
+public class ResendLinkUserAccountEvent implements UserResendLinkAccountEvent {
+
+ /**
+ * Serial number
+ */
+ private static final long serialVersionUID = 575_412_375_267_190L;
+
+ /**
+ * user resend confirmation link
+ */
+ private final User resendLinkUser;
+
+ /**
+ * Constructor with user resend confirmation link
+ * <p>
+ * @param resendLinkUser User resend confirmation link
+ */
+ public ResendLinkUserAccountEvent (final User resendLinkUser) {
+ // Is the confirmed user instance valid?
+ if (null == resendLinkUser) {
+ // Throw NPE
+ throw new NullPointerException("resendLinkUser is null"); //NOI18N
+ } else if (resendLinkUser.getUserId() == null) {
+ // Throw NPE again
+ throw new NullPointerException("resendLinkUser.userId is null"); //NOI18N
+ } else if (resendLinkUser.getUserId() < 1) {
+ // Invalid id number
+ throw new IllegalArgumentException(MessageFormat.format("resendLinkUser.userId={0} is invalid.", resendLinkUser.getUserId())); //NOI18N
+ }
+
+ // Set it here
+ this.resendLinkUser = resendLinkUser;
+ }
+
+ @Override
+ public User getResendLinkUser () {
+ return this.resendLinkUser;
+ }
+
+}
--- /dev/null
+/*
+ * Copyright (C) 2016 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 <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jusercore.events.resendlink;
+
+import java.io.Serializable;
+import org.mxchange.jusercore.model.user.User;
+
+/**
+ * An event interface, fired if a user has resend confirmation link
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
+ */
+public interface UserResendLinkAccountEvent extends Serializable {
+
+ /**
+ * Getter for user instance
+ * <p>
+ * @return User instance
+ */
+ User getResendLinkUser ();
+
+}