From: Roland Häder Date: Tue, 16 Aug 2016 15:20:45 +0000 (+0200) Subject: Renamed as this is for users (and not any other entities with email-change functionality) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4d20e02fbc344ebba4359e5043680ded9ead6d1f;p=juser-lib.git Renamed as this is for users (and not any other entities with email-change functionality) --- diff --git a/src/org/mxchange/jusercore/model/email_address/EmailChangeSessionBeanRemote.java b/src/org/mxchange/jusercore/model/email_address/EmailChangeSessionBeanRemote.java deleted file mode 100644 index 46f2578..0000000 --- a/src/org/mxchange/jusercore/model/email_address/EmailChangeSessionBeanRemote.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * 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 . - */ -package org.mxchange.jusercore.model.email_address; - -import java.io.Serializable; -import java.util.List; -import javax.ejb.Remote; - -/** - * A remote interface for changing email addresses - *

- * @author Roland Haeder - */ -@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 allQueuedAddresses (); - - /** - * "Enqueues" given email change object - *

- * @param emailChange Email change instance to insert - * @param baseUrl Base URL - */ - void enqueueEmailAddressForChange (final ChangeableEmailAddress emailChange, final String baseUrl); - - /** - * Updates given user's email address. - *

- * @param emailChange Email change instance to mark as used - */ - void updateEmailAddress (final ChangeableEmailAddress emailChange); - -} diff --git a/src/org/mxchange/jusercore/model/email_address/UserEmailChangeSessionBeanRemote.java b/src/org/mxchange/jusercore/model/email_address/UserEmailChangeSessionBeanRemote.java new file mode 100644 index 0000000..f51e8de --- /dev/null +++ b/src/org/mxchange/jusercore/model/email_address/UserEmailChangeSessionBeanRemote.java @@ -0,0 +1,62 @@ +/* + * 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 . + */ +package org.mxchange.jusercore.model.email_address; + +import java.io.Serializable; +import java.util.List; +import javax.ejb.Remote; + +/** + * A remote interface for changing email addresses + *

+ * @author Roland Haeder + */ +@Remote +public interface UserEmailChangeSessionBeanRemote 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 allQueuedAddresses (); + + /** + * "Enqueues" given email change object + *

+ * @param emailChange Email change instance to insert + * @param baseUrl Base URL + */ + void enqueueEmailAddressForChange (final ChangeableEmailAddress emailChange, final String baseUrl); + + /** + * Updates given user's email address. + *

+ * @param emailChange Email change instance to mark as used + */ + void updateEmailAddress (final ChangeableEmailAddress emailChange); + +}