]> git.mxchange.org Git - jjobs-war.git/commitdiff
renamed to better names
authorRoland Häder <roland@mxchange.org>
Wed, 19 Apr 2017 22:48:49 +0000 (00:48 +0200)
committerRoland Häder <roland@mxchange.org>
Wed, 19 Apr 2017 23:01:50 +0000 (01:01 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
30 files changed:
src/java/org/mxchange/jjobs/beans/addressbook/JobsAddressbookWebSessionBean.java
src/java/org/mxchange/jjobs/beans/addressbook/JobsAddressbookWebSessionController.java
src/java/org/mxchange/jjobs/beans/confirmlink/JobsConfirmationLinkWebRequestBean.java
src/java/org/mxchange/jjobs/beans/contact/JobsAdminContactWebRequestBean.java
src/java/org/mxchange/jjobs/beans/contact/JobsAdminContactWebRequestController.java
src/java/org/mxchange/jjobs/beans/contact/JobsContactWebSessionBean.java
src/java/org/mxchange/jjobs/beans/contact/JobsContactWebSessionController.java
src/java/org/mxchange/jjobs/beans/contact/phone/JobsAdminContactPhoneWebRequestBean.java
src/java/org/mxchange/jjobs/beans/contact/phone/JobsAdminContactPhoneWebRequestController.java
src/java/org/mxchange/jjobs/beans/contact/phone/JobsContactPhoneWebSessionBean.java
src/java/org/mxchange/jjobs/beans/contact/phone/JobsContactPhoneWebSessionController.java
src/java/org/mxchange/jjobs/beans/country/JobsAdminCountryWebRequestBean.java
src/java/org/mxchange/jjobs/beans/country/JobsCountryWebApplicationBean.java
src/java/org/mxchange/jjobs/beans/country/JobsCountryWebApplicationController.java
src/java/org/mxchange/jjobs/beans/localization/JobsLocalizationSessionBean.java
src/java/org/mxchange/jjobs/beans/localization/JobsLocalizationSessionController.java
src/java/org/mxchange/jjobs/beans/login/JobsUserLoginWebSessionBean.java
src/java/org/mxchange/jjobs/beans/login/JobsUserLoginWebSessionController.java
src/java/org/mxchange/jjobs/beans/phone/JobsPhoneWebApplicationBean.java
src/java/org/mxchange/jjobs/beans/phone/JobsPhoneWebApplicationController.java
src/java/org/mxchange/jjobs/beans/register/JobsUserRegisterWebSessionBean.java
src/java/org/mxchange/jjobs/beans/resendlink/JobsResendLinkWebSessionBean.java
src/java/org/mxchange/jjobs/beans/user/JobsAdminUserWebRequestBean.java
src/java/org/mxchange/jjobs/beans/user/JobsAdminUserWebRequestController.java
src/java/org/mxchange/jjobs/beans/user/JobsUserWebSessionBean.java
src/java/org/mxchange/jjobs/beans/user/JobsUserWebSessionController.java
src/java/org/mxchange/jjobs/beans/user/activity/JobsUserActivityWebApplicationBean.java
src/java/org/mxchange/jjobs/beans/user/activity/JobsUserActivityWebApplicationController.java
src/java/org/mxchange/jjobs/beans/user/password/JobsUserPasswordWebRequestBean.java
src/java/org/mxchange/jjobs/validator/user/JobsUserIdValidator.java

index 81bd02d209998a6f6803de2555d03288341fe061..cd9fb5854d5d5f2f57b0dfeb2140f074a35155d2 100644 (file)
@@ -35,7 +35,6 @@ import javax.naming.InitialContext;
 import javax.naming.NamingException;
 import org.mxchange.addressbook.model.addressbook.AddressbookSessionBeanRemote;
 import org.mxchange.jaddressbookcore.events.addressbook.AddressbookLoadedEvent;
-import org.mxchange.jaddressbookcore.events.addressbook.LoadedAddressbookEvent;
 import org.mxchange.jaddressbookcore.exceptions.AddressbookNameAlreadyUsedException;
 import org.mxchange.jaddressbookcore.exceptions.AddressbookNotFoundException;
 import org.mxchange.jaddressbookcore.model.addressbook.Addressbook;
@@ -43,8 +42,9 @@ import org.mxchange.jaddressbookcore.model.addressbook.UserAddressbook;
 import org.mxchange.jaddressbookcore.model.addressbook.entry.AddressbookEntry;
 import org.mxchange.jjobs.beans.BaseJobsController;
 import org.mxchange.jjobs.beans.login.JobsUserLoginWebSessionController;
-import org.mxchange.jusercore.events.login.UserLoggedInEvent;
 import org.mxchange.jusercore.model.user.User;
+import org.mxchange.jaddressbookcore.events.addressbook.ObservableAddressbookLoadedEvent;
+import org.mxchange.jusercore.events.login.ObservableUserLoggedInEvent;
 
 /**
  * An address book bean (controller)
@@ -95,7 +95,7 @@ public class JobsAddressbookWebSessionBean extends BaseJobsController implements
         */
        @Inject
        @Any
-       private Event<AddressbookLoadedEvent> loadedEvent;
+       private Event<ObservableAddressbookLoadedEvent> loadedEvent;
 
        /**
         * Login controller
@@ -164,7 +164,7 @@ public class JobsAddressbookWebSessionBean extends BaseJobsController implements
        }
 
        @Override
-       public void afterAddressbookLoadedEvent (@Observes final AddressbookLoadedEvent event) {
+       public void afterAddressbookLoadedEvent (@Observes final ObservableAddressbookLoadedEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
@@ -197,7 +197,7 @@ public class JobsAddressbookWebSessionBean extends BaseJobsController implements
        }
 
        @Override
-       public void afterLoginEvent (@Observes final UserLoggedInEvent event) {
+       public void afterLoginEvent (@Observes final ObservableUserLoggedInEvent event) {
                // Is the user logged in?
                if (null == event) {
                        // Is null
@@ -401,7 +401,7 @@ public class JobsAddressbookWebSessionBean extends BaseJobsController implements
                        Addressbook a = this.addressbookBean.getAddressbookById(this.getAddressbookId());
 
                        // Fire event here
-                       this.loadedEvent.fire(new LoadedAddressbookEvent(a));
+                       this.loadedEvent.fire(new AddressbookLoadedEvent(a));
 
                        // Found it
                        isFound = true;
index 3d716c565c4b0290cec3b616056f751eefc4ecf5..94666b9049ee35bfbc3f5451f95ac8e5055caece 100644 (file)
@@ -19,11 +19,11 @@ package org.mxchange.jjobs.beans.addressbook;
 import java.io.Serializable;
 import java.util.Calendar;
 import java.util.List;
-import org.mxchange.jaddressbookcore.events.addressbook.AddressbookLoadedEvent;
 import org.mxchange.jaddressbookcore.model.addressbook.Addressbook;
 import org.mxchange.jaddressbookcore.model.addressbook.entry.AddressbookEntry;
-import org.mxchange.jusercore.events.login.UserLoggedInEvent;
 import org.mxchange.jusercore.model.user.User;
+import org.mxchange.jaddressbookcore.events.addressbook.ObservableAddressbookLoadedEvent;
+import org.mxchange.jusercore.events.login.ObservableUserLoggedInEvent;
 
 /**
  * An interface for address book beans
@@ -145,7 +145,7 @@ public interface JobsAddressbookWebSessionController extends Serializable {
         * <p>
         * @param event Event with address book instance
         */
-       void afterAddressbookLoadedEvent (final AddressbookLoadedEvent event);
+       void afterAddressbookLoadedEvent (final ObservableAddressbookLoadedEvent event);
 
        /**
         * This method is called when a user has successfully logged in his/her
@@ -153,7 +153,7 @@ public interface JobsAddressbookWebSessionController extends Serializable {
         * <p>
         * @param event
         */
-       void afterLoginEvent (final UserLoggedInEvent event);
+       void afterLoginEvent (final ObservableUserLoggedInEvent event);
 
        /**
         * Checks if the user is logged in and if so if it matches the current
index 31e1f9bf5cd73b53e777acbfde0d293c8bc987ed..d49aae87381c762440230f1906fe7cc289c8e18f 100644 (file)
@@ -33,13 +33,13 @@ import org.mxchange.jcoreee.utils.FacesUtils;
 import org.mxchange.jjobs.beans.BaseJobsController;
 import org.mxchange.jjobs.beans.helper.JobsWebViewHelperController;
 import org.mxchange.jjobs.beans.user.JobsUserWebSessionController;
-import org.mxchange.jusercore.events.confirmation.ConfirmedUserAccountEvent;
 import org.mxchange.jusercore.events.confirmation.UserConfirmedAccountEvent;
 import org.mxchange.jusercore.exceptions.UserStatusConfirmedException;
 import org.mxchange.jusercore.exceptions.UserStatusLockedException;
 import org.mxchange.jusercore.model.user.User;
 import org.mxchange.jusercore.model.user.UserSessionBeanRemote;
 import org.mxchange.jusercore.model.user.status.UserAccountStatus;
+import org.mxchange.jusercore.events.confirmation.ObservableUserConfirmedAccountEvent;
 
 /**
  * A web request bean for confirmation link handling
@@ -76,7 +76,7 @@ public class JobsConfirmationLinkWebRequestBean extends BaseJobsController imple
         */
        @Inject
        @Any
-       private Event<UserConfirmedAccountEvent> userConfirmedEvent;
+       private Event<ObservableUserConfirmedAccountEvent> userConfirmedEvent;
 
        /**
         * User controller
@@ -203,7 +203,7 @@ public class JobsConfirmationLinkWebRequestBean extends BaseJobsController imple
                }
 
                // Fire event that the user has confirmed account
-               this.userConfirmedEvent.fire(new ConfirmedUserAccountEvent(updatedUser));
+               this.userConfirmedEvent.fire(new UserConfirmedAccountEvent(updatedUser));
 
                // Set it again in helper
                this.beanHelper.setUser(updatedUser);
index 1293d20d80201e3a2df92717ac274d3d0f2675be..b4c598255ede6a5548dfa57fa312e33b8e723f95 100644 (file)
@@ -37,10 +37,7 @@ import org.mxchange.jcontacts.contact.UserContact;
 import org.mxchange.jcontacts.contact.gender.Gender;
 import org.mxchange.jcontacts.contact.utils.ContactUtils;
 import org.mxchange.jcontacts.events.contact.add.AdminAddedContactEvent;
-import org.mxchange.jcontacts.events.contact.add.AdminContactAddedEvent;
-import org.mxchange.jcontacts.events.contact.deleted.AdminContactDeletedEvent;
 import org.mxchange.jcontacts.events.contact.deleted.AdminDeletedContactEvent;
-import org.mxchange.jcontacts.events.contact.update.AdminContactUpdatedEvent;
 import org.mxchange.jcontacts.events.contact.update.AdminUpdatedContactEvent;
 import org.mxchange.jcontacts.exceptions.ContactAlreadyAddedException;
 import org.mxchange.jcountry.data.Country;
@@ -51,7 +48,10 @@ import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
 import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
 import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber;
 import org.mxchange.jphone.phonenumbers.mobileprovider.MobileProvider;
-import org.mxchange.jusercore.events.user.add.AdminAddedUserEvent;
+import org.mxchange.jusercore.events.user.add.ObservableAdminAddedUserEvent;
+import org.mxchange.jcontacts.events.contact.add.ObservableAdminAddedContactEvent;
+import org.mxchange.jcontacts.events.contact.deleted.ObservableAdminDeletedContactEvent;
+import org.mxchange.jcontacts.events.contact.update.ObservableAdminUpdatedContactEvent;
 
 /**
  * An administrative user controller (bean)
@@ -72,7 +72,7 @@ public class JobsAdminContactWebRequestBean extends BaseJobsController implement
         */
        @Inject
        @Any
-       private Event<AdminAddedContactEvent> addedContactEvent;
+       private Event<ObservableAdminAddedContactEvent> addedContactEvent;
 
        /**
         * Administrative contact EJB
@@ -126,7 +126,7 @@ public class JobsAdminContactWebRequestBean extends BaseJobsController implement
         */
        @Inject
        @Any
-       private Event<AdminDeletedContactEvent> deletedContactEvent;
+       private Event<ObservableAdminDeletedContactEvent> deletedContactEvent;
 
        /**
         * Email address
@@ -243,7 +243,7 @@ public class JobsAdminContactWebRequestBean extends BaseJobsController implement
         */
        @Inject
        @Any
-       private Event<AdminUpdatedContactEvent> updatedContactEvent;
+       private Event<ObservableAdminUpdatedContactEvent> updatedContactEvent;
 
        /**
         * ZIP code
@@ -312,7 +312,7 @@ public class JobsAdminContactWebRequestBean extends BaseJobsController implement
                }
 
                // Fire event
-               this.addedContactEvent.fire(new AdminContactAddedEvent(updatedContact));
+               this.addedContactEvent.fire(new AdminAddedContactEvent(updatedContact));
 
                // Clear this bean
                this.clear();
@@ -322,7 +322,7 @@ public class JobsAdminContactWebRequestBean extends BaseJobsController implement
        }
 
        @Override
-       public void afterAdminAddedUserEvent (@Observes final AdminAddedUserEvent event) {
+       public void afterAdminAddedUserEvent (@Observes final ObservableAdminAddedUserEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
@@ -426,7 +426,7 @@ public class JobsAdminContactWebRequestBean extends BaseJobsController implement
                this.adminContactBean.deleteContactData(contact);
 
                // Fire event
-               this.deletedContactEvent.fire(new AdminContactDeletedEvent(contact));
+               this.deletedContactEvent.fire(new AdminDeletedContactEvent(contact));
 
                // All fine
                return "admin_list_contact"; //NOI18N
@@ -456,7 +456,7 @@ public class JobsAdminContactWebRequestBean extends BaseJobsController implement
                Contact updatedContact = this.contactBean.updateContactData(contact, this.isMobileUnlinked, this.isLandLineUnlinked, this.isFaxUnlinked);
 
                // Fire event
-               this.updatedContactEvent.fire(new AdminContactUpdatedEvent(updatedContact));
+               this.updatedContactEvent.fire(new AdminUpdatedContactEvent(updatedContact));
 
                // Clear bean
                this.clear();
index ccfcba287aabbec49c48251e18a61eab55018a95..1bc2438a6a099cdb8d792d57c8eb9ca01384dfaa 100644 (file)
@@ -24,7 +24,7 @@ import org.mxchange.jcountry.data.Country;
 import org.mxchange.jphone.phonenumbers.DialableNumber;
 import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber;
 import org.mxchange.jphone.phonenumbers.mobileprovider.MobileProvider;
-import org.mxchange.jusercore.events.user.add.AdminAddedUserEvent;
+import org.mxchange.jusercore.events.user.add.ObservableAdminAddedUserEvent;
 
 /**
  * An administrative interface for user beans
@@ -55,7 +55,7 @@ public interface JobsAdminContactWebRequestController extends Serializable {
         * <p>
         * @param event Event being fired
         */
-       void afterAdminAddedUserEvent (final AdminAddedUserEvent event);
+       void afterAdminAddedUserEvent (final ObservableAdminAddedUserEvent event);
 
        /**
         * Creates an instance from contact data
index 8fc2f45f61c114203a9a7e1106ccd8c166328ce9..7f6a66a963a72f1d253651e258b5f7298e3d54c4 100644 (file)
@@ -37,12 +37,6 @@ import org.mxchange.jcontacts.contact.ContactSessionBeanRemote;
 import org.mxchange.jcontacts.contact.UserContact;
 import org.mxchange.jcontacts.contact.gender.Gender;
 import org.mxchange.jcontacts.contact.utils.ContactUtils;
-import org.mxchange.jcontacts.events.contact.add.AdminAddedContactEvent;
-import org.mxchange.jcontacts.events.contact.deleted.AdminDeletedContactEvent;
-import org.mxchange.jcontacts.events.contact.update.AdminUpdatedContactEvent;
-import org.mxchange.jcontacts.events.fax.unlinked.AdminUnlinkedFaxNumberEvent;
-import org.mxchange.jcontacts.events.landline.unlinked.AdminUnlinkedLandLineNumberEvent;
-import org.mxchange.jcontacts.events.mobile.unlinked.AdminUnlinkedMobileNumberEvent;
 import org.mxchange.jcontacts.exceptions.ContactNotFoundException;
 import org.mxchange.jcountry.data.Country;
 import org.mxchange.jjobs.beans.BaseJobsController;
@@ -56,12 +50,18 @@ import org.mxchange.jphone.phonenumbers.landline.LandLineNumber;
 import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber;
 import org.mxchange.jphone.phonenumbers.mobile.MobileNumber;
 import org.mxchange.jphone.phonenumbers.mobileprovider.MobileProvider;
-import org.mxchange.jusercore.events.confirmation.UserConfirmedAccountEvent;
-import org.mxchange.jusercore.events.login.UserLoggedInEvent;
-import org.mxchange.jusercore.events.registration.UserRegisteredEvent;
-import org.mxchange.jusercore.events.user.add.AdminAddedUserEvent;
-import org.mxchange.jusercore.events.user.linked.AdminLinkedUserEvent;
 import org.mxchange.jusercore.model.user.User;
+import org.mxchange.jusercore.events.confirmation.ObservableUserConfirmedAccountEvent;
+import org.mxchange.jusercore.events.login.ObservableUserLoggedInEvent;
+import org.mxchange.jusercore.events.registration.ObservableUserRegisteredEvent;
+import org.mxchange.jusercore.events.user.add.ObservableAdminAddedUserEvent;
+import org.mxchange.jusercore.events.user.linked.ObservableAdminLinkedUserEvent;
+import org.mxchange.jcontacts.events.contact.add.ObservableAdminAddedContactEvent;
+import org.mxchange.jcontacts.events.contact.deleted.ObservableAdminDeletedContactEvent;
+import org.mxchange.jcontacts.events.contact.update.ObservableAdminUpdatedContactEvent;
+import org.mxchange.jcontacts.events.fax.unlinked.ObservableAdminUnlinkedFaxNumberEvent;
+import org.mxchange.jcontacts.events.landline.unlinked.ObservableAdminUnlinkedLandLineNumberEvent;
+import org.mxchange.jcontacts.events.mobile.unlinked.ObservableAdminUnlinkedMobileNumberEvent;
 
 /**
  * A general contact controller (bean)
@@ -256,7 +256,7 @@ public class JobsContactWebSessionBean extends BaseJobsController implements Job
        }
 
        @Override
-       public void afterAdminAddedContactEvent (@Observes final AdminAddedContactEvent event) {
+       public void afterAdminAddedContactEvent (@Observes final ObservableAdminAddedContactEvent event) {
                // The event must be valid
                if (null == event) {
                        // Throw NPE
@@ -283,7 +283,7 @@ public class JobsContactWebSessionBean extends BaseJobsController implements Job
        }
 
        @Override
-       public void afterAdminAddedUserEvent (@Observes final AdminAddedUserEvent event) {
+       public void afterAdminAddedUserEvent (@Observes final ObservableAdminAddedUserEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
@@ -304,7 +304,7 @@ public class JobsContactWebSessionBean extends BaseJobsController implements Job
        }
 
        @Override
-       public void afterAdminDeletedContactEvent (@Observes final AdminDeletedContactEvent event) {
+       public void afterAdminDeletedContactEvent (@Observes final ObservableAdminDeletedContactEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
@@ -329,7 +329,7 @@ public class JobsContactWebSessionBean extends BaseJobsController implements Job
        }
 
        @Override
-       public void afterAdminLinkedUserEvent (@Observes final AdminLinkedUserEvent event) {
+       public void afterAdminLinkedUserEvent (@Observes final ObservableAdminLinkedUserEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
@@ -356,7 +356,7 @@ public class JobsContactWebSessionBean extends BaseJobsController implements Job
        }
 
        @Override
-       public void afterAdminUnlinkedFaxContactDataEvent (@Observes final AdminUnlinkedFaxNumberEvent event) {
+       public void afterAdminUnlinkedFaxContactDataEvent (@Observes final ObservableAdminUnlinkedFaxNumberEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
@@ -380,7 +380,7 @@ public class JobsContactWebSessionBean extends BaseJobsController implements Job
        }
 
        @Override
-       public void afterAdminUnlinkedLandLineContactDataEvent (@Observes final AdminUnlinkedLandLineNumberEvent event) {
+       public void afterAdminUnlinkedLandLineContactDataEvent (@Observes final ObservableAdminUnlinkedLandLineNumberEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
@@ -404,7 +404,7 @@ public class JobsContactWebSessionBean extends BaseJobsController implements Job
        }
 
        @Override
-       public void afterAdminUnlinkedMobileContactDataEvent (@Observes final AdminUnlinkedMobileNumberEvent event) {
+       public void afterAdminUnlinkedMobileContactDataEvent (@Observes final ObservableAdminUnlinkedMobileNumberEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
@@ -428,7 +428,7 @@ public class JobsContactWebSessionBean extends BaseJobsController implements Job
        }
 
        @Override
-       public void afterAdminUpdatedContactDataEvent (@Observes final AdminUpdatedContactEvent event) {
+       public void afterAdminUpdatedContactDataEvent (@Observes final ObservableAdminUpdatedContactEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
@@ -452,7 +452,7 @@ public class JobsContactWebSessionBean extends BaseJobsController implements Job
        }
 
        @Override
-       public void afterUserConfirmedAccountEventEvent (@Observes final UserConfirmedAccountEvent event) {
+       public void afterUserConfirmedAccountEventEvent (@Observes final ObservableUserConfirmedAccountEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
@@ -473,7 +473,7 @@ public class JobsContactWebSessionBean extends BaseJobsController implements Job
        }
 
        @Override
-       public void afterUserLoginEvent (@Observes final UserLoggedInEvent event) {
+       public void afterUserLoginEvent (@Observes final ObservableUserLoggedInEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
@@ -494,7 +494,7 @@ public class JobsContactWebSessionBean extends BaseJobsController implements Job
        }
 
        @Override
-       public void afterUserRegistrationEvent (@Observes final UserRegisteredEvent event) {
+       public void afterUserRegistrationEvent (@Observes final ObservableUserRegisteredEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
index 78b565fc6d2f95fe0260807618e9024afb280022..4257510d1b50770f5d30891c5b3e75198243133d 100644 (file)
@@ -22,21 +22,21 @@ import java.util.List;
 import javax.ejb.Local;
 import org.mxchange.jcontacts.contact.Contact;
 import org.mxchange.jcontacts.contact.gender.Gender;
-import org.mxchange.jcontacts.events.contact.add.AdminAddedContactEvent;
-import org.mxchange.jcontacts.events.contact.deleted.AdminDeletedContactEvent;
-import org.mxchange.jcontacts.events.contact.update.AdminUpdatedContactEvent;
-import org.mxchange.jcontacts.events.fax.unlinked.AdminUnlinkedFaxNumberEvent;
-import org.mxchange.jcontacts.events.landline.unlinked.AdminUnlinkedLandLineNumberEvent;
-import org.mxchange.jcontacts.events.mobile.unlinked.AdminUnlinkedMobileNumberEvent;
 import org.mxchange.jcontacts.exceptions.ContactNotFoundException;
 import org.mxchange.jcountry.data.Country;
 import org.mxchange.jphone.events.mobile.remove.AdminRemoveMobileNumberFromListEvent;
 import org.mxchange.jphone.phonenumbers.mobileprovider.MobileProvider;
-import org.mxchange.jusercore.events.confirmation.UserConfirmedAccountEvent;
-import org.mxchange.jusercore.events.login.UserLoggedInEvent;
-import org.mxchange.jusercore.events.registration.UserRegisteredEvent;
-import org.mxchange.jusercore.events.user.add.AdminAddedUserEvent;
-import org.mxchange.jusercore.events.user.linked.AdminLinkedUserEvent;
+import org.mxchange.jusercore.events.confirmation.ObservableUserConfirmedAccountEvent;
+import org.mxchange.jusercore.events.login.ObservableUserLoggedInEvent;
+import org.mxchange.jusercore.events.registration.ObservableUserRegisteredEvent;
+import org.mxchange.jusercore.events.user.add.ObservableAdminAddedUserEvent;
+import org.mxchange.jusercore.events.user.linked.ObservableAdminLinkedUserEvent;
+import org.mxchange.jcontacts.events.contact.add.ObservableAdminAddedContactEvent;
+import org.mxchange.jcontacts.events.contact.deleted.ObservableAdminDeletedContactEvent;
+import org.mxchange.jcontacts.events.contact.update.ObservableAdminUpdatedContactEvent;
+import org.mxchange.jcontacts.events.fax.unlinked.ObservableAdminUnlinkedFaxNumberEvent;
+import org.mxchange.jcontacts.events.landline.unlinked.ObservableAdminUnlinkedLandLineNumberEvent;
+import org.mxchange.jcontacts.events.mobile.unlinked.ObservableAdminUnlinkedMobileNumberEvent;
 
 /**
  * An interface for user beans
@@ -58,42 +58,42 @@ public interface JobsContactWebSessionController extends Serializable {
         * <p>
         * @param event Event being fired
         */
-       void afterAdminAddedUserEvent (final AdminAddedUserEvent event);
+       void afterAdminAddedUserEvent (final ObservableAdminAddedUserEvent event);
 
        /**
         * Event observer for deleted contact instance by administrator
         * <p>
         * @param event Event being fired
         */
-       void afterAdminDeletedContactEvent (final AdminDeletedContactEvent event);
+       void afterAdminDeletedContactEvent (final ObservableAdminDeletedContactEvent event);
 
        /**
         * Event observer for unlinked fax contact by administrators
         * <p>
         * @param event Unlinked fax contact event
         */
-       void afterAdminUnlinkedFaxContactDataEvent (final AdminUnlinkedFaxNumberEvent event);
+       void afterAdminUnlinkedFaxContactDataEvent (final ObservableAdminUnlinkedFaxNumberEvent event);
 
        /**
         * Event observer for unlinked land-line contact by administrators
         * <p>
         * @param event Unlinked land-line contact event
         */
-       void afterAdminUnlinkedLandLineContactDataEvent (final AdminUnlinkedLandLineNumberEvent event);
+       void afterAdminUnlinkedLandLineContactDataEvent (final ObservableAdminUnlinkedLandLineNumberEvent event);
 
        /**
         * Event observer for unlinked mobile contact by administrators
         * <p>
         * @param event Unlinked mobile contact event
         */
-       void afterAdminUnlinkedMobileContactDataEvent (final AdminUnlinkedMobileNumberEvent event);
+       void afterAdminUnlinkedMobileContactDataEvent (final ObservableAdminUnlinkedMobileNumberEvent event);
 
        /**
         * Event observer when user confirmed account.
         * <p>
         * @param event Event being fired
         */
-       void afterUserConfirmedAccountEventEvent (final UserConfirmedAccountEvent event);
+       void afterUserConfirmedAccountEventEvent (final ObservableUserConfirmedAccountEvent event);
 
        /**
         * Event observer when a list with unused mobile numbers is being created
@@ -126,7 +126,7 @@ public interface JobsContactWebSessionController extends Serializable {
         * <p>
         * @param event User registration event
         */
-       void afterUserRegistrationEvent (final UserRegisteredEvent event);
+       void afterUserRegistrationEvent (final ObservableUserRegisteredEvent event);
 
        /**
         * Observes events being fired when an administrator has added a new
@@ -134,7 +134,7 @@ public interface JobsContactWebSessionController extends Serializable {
         * <p>
         * @param event Event being fired
         */
-       void afterAdminAddedContactEvent (final AdminAddedContactEvent event);
+       void afterAdminAddedContactEvent (final ObservableAdminAddedContactEvent event);
 
        /**
         * Observes events being fired when an administrator has linked a new user
@@ -142,21 +142,21 @@ public interface JobsContactWebSessionController extends Serializable {
         * <p>
         * @param event Event being fired
         */
-       void afterAdminLinkedUserEvent (final AdminLinkedUserEvent event);
+       void afterAdminLinkedUserEvent (final ObservableAdminLinkedUserEvent event);
 
        /**
         * Event observer for updated contact data by administrators
         * <p>
         * @param event Updated contact data event
         */
-       void afterAdminUpdatedContactDataEvent (final AdminUpdatedContactEvent event);
+       void afterAdminUpdatedContactDataEvent (final ObservableAdminUpdatedContactEvent event);
 
        /**
         * Event observer for logged-in user
         * <p>
         * @param event Event instance
         */
-       void afterUserLoginEvent (final UserLoggedInEvent event);
+       void afterUserLoginEvent (final ObservableUserLoggedInEvent event);
 
        /**
         * Creates an instance from all properties
index f693fe9ff263dd24f1e750221403326da6690e7a..b54c6728966fc4584552ee8e1aa477bd908a1624 100644 (file)
@@ -28,19 +28,11 @@ import javax.naming.Context;
 import javax.naming.InitialContext;
 import javax.naming.NamingException;
 import org.mxchange.jcontacts.contact.Contact;
-import org.mxchange.jcontacts.events.contact.add.AdminAddedContactEvent;
-import org.mxchange.jcontacts.events.contact.update.AdminUpdatedContactEvent;
-import org.mxchange.jcontacts.events.fax.linked.AdminFaxNumberLinkedEvent;
 import org.mxchange.jcontacts.events.fax.linked.AdminLinkedFaxNumberEvent;
-import org.mxchange.jcontacts.events.fax.unlinked.AdminFaxNumberUnlinkedEvent;
 import org.mxchange.jcontacts.events.fax.unlinked.AdminUnlinkedFaxNumberEvent;
-import org.mxchange.jcontacts.events.landline.linked.AdminLandLineNumberLinkedEvent;
 import org.mxchange.jcontacts.events.landline.linked.AdminLinkedLandLineNumberEvent;
-import org.mxchange.jcontacts.events.landline.unlinked.AdminLandLineNumberUnlinkedEvent;
 import org.mxchange.jcontacts.events.landline.unlinked.AdminUnlinkedLandLineNumberEvent;
 import org.mxchange.jcontacts.events.mobile.linked.AdminLinkedMobileNumberEvent;
-import org.mxchange.jcontacts.events.mobile.linked.AdminMobileNumberLinkedEvent;
-import org.mxchange.jcontacts.events.mobile.unlinked.AdminMobileNumberUnlinkedEvent;
 import org.mxchange.jcontacts.events.mobile.unlinked.AdminUnlinkedMobileNumberEvent;
 import org.mxchange.jcontacts.phone.AdminContactsPhoneSessionBeanRemote;
 import org.mxchange.jcountry.data.Country;
@@ -56,7 +48,15 @@ import org.mxchange.jphone.phonenumbers.landline.LandLineNumber;
 import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber;
 import org.mxchange.jphone.phonenumbers.mobile.MobileNumber;
 import org.mxchange.jphone.phonenumbers.mobileprovider.MobileProvider;
-import org.mxchange.jusercore.events.user.add.AdminAddedUserEvent;
+import org.mxchange.jusercore.events.user.add.ObservableAdminAddedUserEvent;
+import org.mxchange.jcontacts.events.contact.add.ObservableAdminAddedContactEvent;
+import org.mxchange.jcontacts.events.contact.update.ObservableAdminUpdatedContactEvent;
+import org.mxchange.jcontacts.events.fax.linked.ObservableAdminLinkedFaxNumberEvent;
+import org.mxchange.jcontacts.events.fax.unlinked.ObservableAdminUnlinkedFaxNumberEvent;
+import org.mxchange.jcontacts.events.landline.linked.ObservableAdminLinkedLandLineNumberEvent;
+import org.mxchange.jcontacts.events.landline.unlinked.ObservableAdminUnlinkedLandLineNumberEvent;
+import org.mxchange.jcontacts.events.mobile.linked.ObservableAdminLinkedMobileNumberEvent;
+import org.mxchange.jcontacts.events.mobile.unlinked.ObservableAdminUnlinkedMobileNumberEvent;
 
 /**
  * An administrative contact phone controller (bean)
@@ -82,21 +82,21 @@ public class JobsAdminContactPhoneWebRequestBean extends BaseJobsController impl
         */
        @Inject
        @Any
-       private Event<AdminLinkedFaxNumberEvent> adminLinkedFaxNumberEvent;
+       private Event<ObservableAdminLinkedFaxNumberEvent> adminLinkedFaxNumberEvent;
 
        /**
         * Event being fired when a land-line number has been linked
         */
        @Inject
        @Any
-       private Event<AdminLinkedLandLineNumberEvent> adminLinkedLandLineNumberEvent;
+       private Event<ObservableAdminLinkedLandLineNumberEvent> adminLinkedLandLineNumberEvent;
 
        /**
         * Event being fired when a mobile number has been linked
         */
        @Inject
        @Any
-       private Event<AdminLinkedMobileNumberEvent> adminLinkedMobileNumberEvent;
+       private Event<ObservableAdminLinkedMobileNumberEvent> adminLinkedMobileNumberEvent;
 
        /**
         * Administrative EJB for phone number
@@ -120,21 +120,21 @@ public class JobsAdminContactPhoneWebRequestBean extends BaseJobsController impl
         */
        @Inject
        @Any
-       private Event<AdminUnlinkedFaxNumberEvent> faxNumberUnlinkedEvent;
+       private Event<ObservableAdminUnlinkedFaxNumberEvent> faxNumberUnlinkedEvent;
 
        /**
         * Event being fired when a land-line number has been unlinked
         */
        @Inject
        @Any
-       private Event<AdminUnlinkedLandLineNumberEvent> landLineNumberUnlinkedEvent;
+       private Event<ObservableAdminUnlinkedLandLineNumberEvent> landLineNumberUnlinkedEvent;
 
        /**
         * Event being fired when admin unlinks mobile from contact
         */
        @Inject
        @Any
-       private Event<AdminUnlinkedMobileNumberEvent> mobileNumberUnlinkedEvent;
+       private Event<ObservableAdminUnlinkedMobileNumberEvent> mobileNumberUnlinkedEvent;
 
        /**
         * Default constructor
@@ -157,7 +157,7 @@ public class JobsAdminContactPhoneWebRequestBean extends BaseJobsController impl
        }
 
        @Override
-       public void afterAdminAddedContactEvent (@Observes final AdminAddedContactEvent event) {
+       public void afterAdminAddedContactEvent (@Observes final ObservableAdminAddedContactEvent event) {
                // The event must be valid
                if (null == event) {
                        // Throw NPE
@@ -178,7 +178,7 @@ public class JobsAdminContactPhoneWebRequestBean extends BaseJobsController impl
        }
 
        @Override
-       public void afterAdminAddedUserEvent (@Observes final AdminAddedUserEvent event) {
+       public void afterAdminAddedUserEvent (@Observes final ObservableAdminAddedUserEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
@@ -199,7 +199,7 @@ public class JobsAdminContactPhoneWebRequestBean extends BaseJobsController impl
        }
 
        @Override
-       public void afterAdminUpdatedContactDataEvent (@Observes final AdminUpdatedContactEvent event) {
+       public void afterAdminUpdatedContactDataEvent (@Observes final ObservableAdminUpdatedContactEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
@@ -275,7 +275,7 @@ public class JobsAdminContactPhoneWebRequestBean extends BaseJobsController impl
                }
 
                // Fire event
-               this.adminLinkedFaxNumberEvent.fire(new AdminFaxNumberLinkedEvent(updatedContact, faxNumber));
+               this.adminLinkedFaxNumberEvent.fire(new AdminLinkedFaxNumberEvent(updatedContact, faxNumber));
 
                // Return to contact profile
                return "admin_show_contact"; //NOI18N
@@ -337,7 +337,7 @@ public class JobsAdminContactPhoneWebRequestBean extends BaseJobsController impl
                }
 
                // Fire event
-               this.adminLinkedLandLineNumberEvent.fire(new AdminLandLineNumberLinkedEvent(updatedContact, landLineNumber));
+               this.adminLinkedLandLineNumberEvent.fire(new AdminLinkedLandLineNumberEvent(updatedContact, landLineNumber));
 
                // Return to contact profile
                return "admin_show_contact"; //NOI18N
@@ -395,7 +395,7 @@ public class JobsAdminContactPhoneWebRequestBean extends BaseJobsController impl
                }
 
                // Fire event
-               this.adminLinkedMobileNumberEvent.fire(new AdminMobileNumberLinkedEvent(updatedContact, mobileNumber));
+               this.adminLinkedMobileNumberEvent.fire(new AdminLinkedMobileNumberEvent(updatedContact, mobileNumber));
 
                // Return to contact profile
                return "admin_show_contact"; //NOI18N
@@ -443,7 +443,7 @@ public class JobsAdminContactPhoneWebRequestBean extends BaseJobsController impl
                }
 
                // Fire event
-               this.faxNumberUnlinkedEvent.fire(new AdminFaxNumberUnlinkedEvent(updatedContact, this.beanHelper.getFaxNumber()));
+               this.faxNumberUnlinkedEvent.fire(new AdminUnlinkedFaxNumberEvent(updatedContact, this.beanHelper.getFaxNumber()));
 
                // All fine here
                return "admin_show_contact"; //NOI18N
@@ -491,7 +491,7 @@ public class JobsAdminContactPhoneWebRequestBean extends BaseJobsController impl
                }
 
                // Fire event
-               this.landLineNumberUnlinkedEvent.fire(new AdminLandLineNumberUnlinkedEvent(updatedContact, this.beanHelper.getLandLineNumber()));
+               this.landLineNumberUnlinkedEvent.fire(new AdminUnlinkedLandLineNumberEvent(updatedContact, this.beanHelper.getLandLineNumber()));
 
                // All fine here
                return "admin_show_contact"; //NOI18N
@@ -548,7 +548,7 @@ public class JobsAdminContactPhoneWebRequestBean extends BaseJobsController impl
                }
 
                // Fire event
-               this.mobileNumberUnlinkedEvent.fire(new AdminMobileNumberUnlinkedEvent(updatedContact, this.beanHelper.getMobileNumber()));
+               this.mobileNumberUnlinkedEvent.fire(new AdminUnlinkedMobileNumberEvent(updatedContact, this.beanHelper.getMobileNumber()));
 
                // All fine here
                return "admin_show_contact"; //NOI18N
index a9caa56f91937ab27fb7f399c2cec067a9799c2b..d35718bf8d6927766f6566c9bb74f6c6c5e10f3f 100644 (file)
@@ -20,9 +20,9 @@ package org.mxchange.jjobs.beans.contact.phone;
 import java.io.Serializable;
 import javax.ejb.Local;
 import org.mxchange.jcontacts.contact.Contact;
-import org.mxchange.jcontacts.events.contact.add.AdminAddedContactEvent;
-import org.mxchange.jcontacts.events.contact.update.AdminUpdatedContactEvent;
-import org.mxchange.jusercore.events.user.add.AdminAddedUserEvent;
+import org.mxchange.jusercore.events.user.add.ObservableAdminAddedUserEvent;
+import org.mxchange.jcontacts.events.contact.add.ObservableAdminAddedContactEvent;
+import org.mxchange.jcontacts.events.contact.update.ObservableAdminUpdatedContactEvent;
 
 /**
  * An interface for user beans
@@ -58,7 +58,7 @@ public interface JobsAdminContactPhoneWebRequestController extends Serializable
         * <p>
         * @param event Event being fired
         */
-       void afterAdminAddedUserEvent (final AdminAddedUserEvent event);
+       void afterAdminAddedUserEvent (final ObservableAdminAddedUserEvent event);
 
        /**
         * Observes events being fired when an administrator has added a new
@@ -66,14 +66,14 @@ public interface JobsAdminContactPhoneWebRequestController extends Serializable
         * <p>
         * @param event Event being fired
         */
-       void afterAdminAddedContactEvent (final AdminAddedContactEvent event);
+       void afterAdminAddedContactEvent (final ObservableAdminAddedContactEvent event);
 
        /**
         * Event observer for updated contact data by administrators
         * <p>
         * @param event Updated contact data event
         */
-       void afterAdminUpdatedContactDataEvent (final AdminUpdatedContactEvent event);
+       void afterAdminUpdatedContactDataEvent (final ObservableAdminUpdatedContactEvent event);
 
        /**
         * Links given contact instance with setted fax number or entered data. If
index 6936fd7862c7efa7436fa5e8c7657ac1a088176b..73a316887c6669fd3aece83135a350ff53a6c093 100644 (file)
@@ -27,11 +27,6 @@ import javax.enterprise.event.Observes;
 import javax.inject.Inject;
 import javax.inject.Named;
 import org.mxchange.jcontacts.contact.Contact;
-import org.mxchange.jcontacts.events.contact.add.AdminAddedContactEvent;
-import org.mxchange.jcontacts.events.contact.update.AdminUpdatedContactEvent;
-import org.mxchange.jcontacts.events.fax.unlinked.AdminUnlinkedFaxNumberEvent;
-import org.mxchange.jcontacts.events.landline.unlinked.AdminUnlinkedLandLineNumberEvent;
-import org.mxchange.jcontacts.events.mobile.unlinked.AdminUnlinkedMobileNumberEvent;
 import org.mxchange.jjobs.beans.BaseJobsController;
 import org.mxchange.jjobs.beans.contact.JobsContactWebSessionController;
 import org.mxchange.jjobs.beans.helper.JobsWebViewHelperController;
@@ -39,7 +34,12 @@ import org.mxchange.jphone.phonenumbers.DialableNumber;
 import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
 import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
 import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber;
-import org.mxchange.jusercore.events.user.add.AdminAddedUserEvent;
+import org.mxchange.jusercore.events.user.add.ObservableAdminAddedUserEvent;
+import org.mxchange.jcontacts.events.contact.add.ObservableAdminAddedContactEvent;
+import org.mxchange.jcontacts.events.contact.update.ObservableAdminUpdatedContactEvent;
+import org.mxchange.jcontacts.events.fax.unlinked.ObservableAdminUnlinkedFaxNumberEvent;
+import org.mxchange.jcontacts.events.landline.unlinked.ObservableAdminUnlinkedLandLineNumberEvent;
+import org.mxchange.jcontacts.events.mobile.unlinked.ObservableAdminUnlinkedMobileNumberEvent;
 
 /**
  * An administrative contact phone controller (bean)
@@ -83,7 +83,7 @@ public class JobsContactPhoneWebSessionBean extends BaseJobsController implement
        }
 
        @Override
-       public void afterAdminAddedContactEvent (@Observes final AdminAddedContactEvent event) {
+       public void afterAdminAddedContactEvent (@Observes final ObservableAdminAddedContactEvent event) {
                // The event must be valid
                if (null == event) {
                        // Throw NPE
@@ -104,7 +104,7 @@ public class JobsContactPhoneWebSessionBean extends BaseJobsController implement
        }
 
        @Override
-       public void afterAdminAddedUserEvent (@Observes final AdminAddedUserEvent event) {
+       public void afterAdminAddedUserEvent (@Observes final ObservableAdminAddedUserEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
@@ -125,7 +125,7 @@ public class JobsContactPhoneWebSessionBean extends BaseJobsController implement
        }
 
        @Override
-       public void afterAdminUnlinkedFaxContactDataEvent (@Observes final AdminUnlinkedFaxNumberEvent event) {
+       public void afterAdminUnlinkedFaxContactDataEvent (@Observes final ObservableAdminUnlinkedFaxNumberEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
@@ -149,7 +149,7 @@ public class JobsContactPhoneWebSessionBean extends BaseJobsController implement
        }
 
        @Override
-       public void afterAdminUnlinkedLandLineContactDataEvent (@Observes final AdminUnlinkedLandLineNumberEvent event) {
+       public void afterAdminUnlinkedLandLineContactDataEvent (@Observes final ObservableAdminUnlinkedLandLineNumberEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
@@ -173,7 +173,7 @@ public class JobsContactPhoneWebSessionBean extends BaseJobsController implement
        }
 
        @Override
-       public void afterAdminUnlinkedMobileContactDataEvent (@Observes final AdminUnlinkedMobileNumberEvent event) {
+       public void afterAdminUnlinkedMobileContactDataEvent (@Observes final ObservableAdminUnlinkedMobileNumberEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
@@ -197,7 +197,7 @@ public class JobsContactPhoneWebSessionBean extends BaseJobsController implement
        }
 
        @Override
-       public void afterAdminUpdatedContactDataEvent (@Observes final AdminUpdatedContactEvent event) {
+       public void afterAdminUpdatedContactDataEvent (@Observes final ObservableAdminUpdatedContactEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
index 5bb0d3cda8881ff1b8c38d0284d8112976a8e4ea..85f1d255db44fdde058ef93fbc76f0315e939326 100644 (file)
@@ -20,12 +20,12 @@ import java.io.Serializable;
 import java.util.List;
 import javax.ejb.Local;
 import org.mxchange.jcontacts.contact.Contact;
-import org.mxchange.jcontacts.events.contact.add.AdminAddedContactEvent;
-import org.mxchange.jcontacts.events.contact.update.AdminUpdatedContactEvent;
-import org.mxchange.jcontacts.events.fax.unlinked.AdminUnlinkedFaxNumberEvent;
-import org.mxchange.jcontacts.events.landline.unlinked.AdminUnlinkedLandLineNumberEvent;
-import org.mxchange.jcontacts.events.mobile.unlinked.AdminUnlinkedMobileNumberEvent;
-import org.mxchange.jusercore.events.user.add.AdminAddedUserEvent;
+import org.mxchange.jusercore.events.user.add.ObservableAdminAddedUserEvent;
+import org.mxchange.jcontacts.events.contact.add.ObservableAdminAddedContactEvent;
+import org.mxchange.jcontacts.events.contact.update.ObservableAdminUpdatedContactEvent;
+import org.mxchange.jcontacts.events.fax.unlinked.ObservableAdminUnlinkedFaxNumberEvent;
+import org.mxchange.jcontacts.events.landline.unlinked.ObservableAdminUnlinkedLandLineNumberEvent;
+import org.mxchange.jcontacts.events.mobile.unlinked.ObservableAdminUnlinkedMobileNumberEvent;
 
 /**
  * An interface for user beans
@@ -61,7 +61,7 @@ public interface JobsContactPhoneWebSessionController extends Serializable {
         * <p>
         * @param event Event being fired
         */
-       void afterAdminAddedUserEvent (final AdminAddedUserEvent event);
+       void afterAdminAddedUserEvent (final ObservableAdminAddedUserEvent event);
 
        /**
         * Observes events being fired when an administrator has added a new
@@ -69,34 +69,34 @@ public interface JobsContactPhoneWebSessionController extends Serializable {
         * <p>
         * @param event Event being fired
         */
-       void afterAdminAddedContactEvent (final AdminAddedContactEvent event);
+       void afterAdminAddedContactEvent (final ObservableAdminAddedContactEvent event);
 
        /**
         * Event observer for updated contact data by administrators
         * <p>
         * @param event Updated contact data event
         */
-       void afterAdminUpdatedContactDataEvent (final AdminUpdatedContactEvent event);
+       void afterAdminUpdatedContactDataEvent (final ObservableAdminUpdatedContactEvent event);
 
        /**
         * Event observer for unlinked fax contact by administrators
         * <p>
         * @param event Unlinked fax contact event
         */
-       void afterAdminUnlinkedFaxContactDataEvent (final AdminUnlinkedFaxNumberEvent event);
+       void afterAdminUnlinkedFaxContactDataEvent (final ObservableAdminUnlinkedFaxNumberEvent event);
 
        /**
         * Event observer for unlinked land-line contact by administrators
         * <p>
         * @param event Unlinked land-line contact event
         */
-       void afterAdminUnlinkedLandLineContactDataEvent (final AdminUnlinkedLandLineNumberEvent event);
+       void afterAdminUnlinkedLandLineContactDataEvent (final ObservableAdminUnlinkedLandLineNumberEvent event);
 
        /**
         * Event observer for unlinked mobile contact by administrators
         * <p>
         * @param event Unlinked mobile contact event
         */
-       void afterAdminUnlinkedMobileContactDataEvent (final AdminUnlinkedMobileNumberEvent event);
+       void afterAdminUnlinkedMobileContactDataEvent (final ObservableAdminUnlinkedMobileNumberEvent event);
 
 }
index 8e63c6823677fe7d84ff2a9ed46afe305fdd0f64..5905c9dd47894b818bcff25d836ed400e17380fb 100644 (file)
@@ -32,9 +32,9 @@ import org.mxchange.jcountry.data.Country;
 import org.mxchange.jcountry.data.CountryData;
 import org.mxchange.jcountry.data.CountrySingletonBeanRemote;
 import org.mxchange.jcountry.events.AdminAddedCountryEvent;
-import org.mxchange.jcountry.events.AdminEventCountryAdded;
 import org.mxchange.jcountry.exceptions.CountryAlreadyAddedException;
 import org.mxchange.jjobs.beans.BaseJobsController;
+import org.mxchange.jcountry.events.ObservableAdminAddedCountryEvent;
 
 /**
  * An administrative country bean
@@ -55,7 +55,7 @@ public class JobsAdminCountryWebRequestBean extends BaseJobsController implement
         */
        @Inject
        @Any
-       private Event<AdminAddedCountryEvent> addedCountryEvent;
+       private Event<ObservableAdminAddedCountryEvent> addedCountryEvent;
 
        /**
         * Abroad dial prefix
@@ -146,7 +146,7 @@ public class JobsAdminCountryWebRequestBean extends BaseJobsController implement
                }
 
                // Fire event
-               this.addedCountryEvent.fire(new AdminEventCountryAdded(updatedCountry));
+               this.addedCountryEvent.fire(new AdminAddedCountryEvent(updatedCountry));
 
                // Clear this bean
                this.clear();
index 60519c8aefcbe6c1e30afac2cc2eba3453dfa7ca..b4ba3e294e8a8149a1a3f8dda2c811d67fe0eabc 100644 (file)
@@ -28,8 +28,8 @@ import javax.naming.InitialContext;
 import javax.naming.NamingException;
 import org.mxchange.jcountry.data.Country;
 import org.mxchange.jcountry.data.CountrySingletonBeanRemote;
-import org.mxchange.jcountry.events.AdminAddedCountryEvent;
 import org.mxchange.jjobs.beans.BaseJobsController;
+import org.mxchange.jcountry.events.ObservableAdminAddedCountryEvent;
 
 /**
  * A country bean
@@ -73,7 +73,7 @@ public class JobsCountryWebApplicationBean extends BaseJobsController implements
        }
 
        @Override
-       public void afterAdminAddedCountry (@Observes final AdminAddedCountryEvent event) {
+       public void afterAdminAddedCountry (@Observes final ObservableAdminAddedCountryEvent event) {
                // Is all valid?
                if (null == event) {
                        // Throw NPE
index 42a10db15e141e0c375f46cdd4dcefa169932162..948dd681049042c85dd2a3846484c7531675a50c 100644 (file)
@@ -19,7 +19,7 @@ package org.mxchange.jjobs.beans.country;
 import java.io.Serializable;
 import java.util.List;
 import org.mxchange.jcountry.data.Country;
-import org.mxchange.jcountry.events.AdminAddedCountryEvent;
+import org.mxchange.jcountry.events.ObservableAdminAddedCountryEvent;
 
 /**
  * An interface for country beans
@@ -41,6 +41,6 @@ public interface JobsCountryWebApplicationController extends Serializable {
         * <p>
         * @param event Event instance
         */
-       void afterAdminAddedCountry (final AdminAddedCountryEvent event);
+       void afterAdminAddedCountry (final ObservableAdminAddedCountryEvent event);
 
 }
index 3ecd190cade6a02851a6c88513b5ef7777f5be83..f95bf02a6e05cec00c25cea1e053c5cb0c209633 100644 (file)
@@ -24,8 +24,8 @@ import javax.enterprise.event.Observes;
 import javax.faces.context.FacesContext;
 import javax.inject.Named;
 import org.mxchange.jjobs.beans.BaseJobsController;
-import org.mxchange.jusercore.events.login.UserLoggedInEvent;
-import org.mxchange.jusercore.events.logout.ObserveableUserLogoutEvent;
+import org.mxchange.jusercore.events.login.ObservableUserLoggedInEvent;
+import org.mxchange.jusercore.events.logout.ObservableUserLogoutEvent;
 
 /**
  * A session bean for handling localization/internationalization changes. This
@@ -50,7 +50,7 @@ public class JobsLocalizationSessionBean extends BaseJobsController implements J
        private Locale locale;
 
        @Override
-       public void afterUserLoginEvent (@Observes final UserLoggedInEvent event) {
+       public void afterUserLoginEvent (@Observes final ObservableUserLoggedInEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
@@ -74,7 +74,7 @@ public class JobsLocalizationSessionBean extends BaseJobsController implements J
        }
 
        @Override
-       public void afterUserLogoutEvent (@Observes final ObserveableUserLogoutEvent event) {
+       public void afterUserLogoutEvent (@Observes final ObservableUserLogoutEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
index 02867a6563d3d5ab7dee36c9a8fea01c82ff81d1..6aed0a7a4080cef518cb3350b7fb0f51861cde10 100644 (file)
@@ -18,8 +18,8 @@ package org.mxchange.jjobs.beans.localization;
 
 import java.io.Serializable;
 import java.util.Locale;
-import org.mxchange.jusercore.events.login.UserLoggedInEvent;
-import org.mxchange.jusercore.events.logout.ObserveableUserLogoutEvent;
+import org.mxchange.jusercore.events.login.ObservableUserLoggedInEvent;
+import org.mxchange.jusercore.events.logout.ObservableUserLogoutEvent;
 
 /**
  * An interface for localization change beans
@@ -33,14 +33,14 @@ public interface JobsLocalizationSessionController extends Serializable {
         * <p>
         * @param event Event instance
         */
-       void afterUserLoginEvent (final UserLoggedInEvent event);
+       void afterUserLoginEvent (final ObservableUserLoggedInEvent event);
 
        /**
         * Event observer for logged-out user
         * <p>
         * @param event Event instance
         */
-       void afterUserLogoutEvent (final ObserveableUserLogoutEvent event);
+       void afterUserLogoutEvent (final ObservableUserLogoutEvent event);
 
        /**
         * Getter for locale
index 8195e3e62ab28a559c58dbe8d4aaef790533887c..fe8adc934ed29bc404c787dbef2348514fd47464 100644 (file)
@@ -36,10 +36,7 @@ import org.mxchange.jjobs.beans.user.JobsUserWebSessionController;
 import org.mxchange.jusercore.container.login.LoginContainer;
 import org.mxchange.jusercore.container.login.UserLoginContainer;
 import org.mxchange.jusercore.events.login.UserLoggedInEvent;
-import org.mxchange.jusercore.events.login.UserLoginEvent;
-import org.mxchange.jusercore.events.logout.ObserveableUserLogoutEvent;
 import org.mxchange.jusercore.events.logout.UserLogoutEvent;
-import org.mxchange.jusercore.events.user.password_change.UpdatedUserPasswordEvent;
 import org.mxchange.jusercore.exceptions.UserNotFoundException;
 import org.mxchange.jusercore.exceptions.UserPasswordMismatchException;
 import org.mxchange.jusercore.exceptions.UserStatusLockedException;
@@ -51,6 +48,9 @@ import org.mxchange.jusercore.model.user.password_history.PasswordHistory;
 import org.mxchange.jusercore.model.user.password_history.UserPasswordHistorySessionBeanRemote;
 import org.mxchange.jusercore.model.user.profilemodes.ProfileMode;
 import org.mxchange.jusercore.model.user.status.UserAccountStatus;
+import org.mxchange.jusercore.events.login.ObservableUserLoggedInEvent;
+import org.mxchange.jusercore.events.logout.ObservableUserLogoutEvent;
+import org.mxchange.jusercore.events.user.password_change.ObservableUpdatedUserPasswordEvent;
 
 /**
  * A web bean for user registration
@@ -102,7 +102,7 @@ public class JobsUserLoginWebSessionBean extends BaseJobsController implements J
         */
        @Inject
        @Any
-       private Event<UserLoggedInEvent> loginEvent;
+       private Event<ObservableUserLoggedInEvent> loginEvent;
 
        /**
         * User controller
@@ -120,14 +120,14 @@ public class JobsUserLoginWebSessionBean extends BaseJobsController implements J
         */
        @Inject
        @Any
-       private Event<UserLoggedInEvent> userLoginEvent;
+       private Event<ObservableUserLoggedInEvent> userLoginEvent;
 
        /**
         * Event fired when user has logged out
         */
        @Inject
        @Any
-       private Event<ObserveableUserLogoutEvent> userLogoutEvent;
+       private Event<ObservableUserLogoutEvent> userLogoutEvent;
 
        /**
         * User's password history
@@ -162,7 +162,7 @@ public class JobsUserLoginWebSessionBean extends BaseJobsController implements J
        }
 
        @Override
-       public void afterUserUpdatedPasswordEvent (@Observes final UpdatedUserPasswordEvent event) {
+       public void afterUserUpdatedPasswordEvent (@Observes final ObservableUpdatedUserPasswordEvent event) {
                // Check parameter
                if (null == event) {
                        // Throw NPE
@@ -222,7 +222,7 @@ public class JobsUserLoginWebSessionBean extends BaseJobsController implements J
                        this.setBaseTemplatePathName(USER_BASE_TEMPLATE_NAME); //NOI18N
 
                        // Fire event away. Keep this last before return statement.
-                       this.userLoginEvent.fire(new UserLoginEvent(confirmedUser));
+                       this.userLoginEvent.fire(new UserLoggedInEvent(confirmedUser));
 
                        // Clear this bean
                        this.clear();
index 059a2799d51b9c8fc9f28c34710660ea11f6299f..cc44c9589154221f278a9af930a61f2c86744ffb 100644 (file)
@@ -19,9 +19,9 @@ package org.mxchange.jjobs.beans.login;
 import java.io.Serializable;
 import java.util.List;
 import javax.ejb.Local;
-import org.mxchange.jusercore.events.user.password_change.UpdatedUserPasswordEvent;
 import org.mxchange.jusercore.model.user.User;
 import org.mxchange.jusercore.model.user.password_history.PasswordHistory;
+import org.mxchange.jusercore.events.user.password_change.ObservableUpdatedUserPasswordEvent;
 
 /**
  * An interface for registration web controllers
@@ -37,7 +37,7 @@ public interface JobsUserLoginWebSessionController extends Serializable {
         * <p>
         * @param event Event being observed
         */
-       void afterUserUpdatedPasswordEvent (final UpdatedUserPasswordEvent event);
+       void afterUserUpdatedPasswordEvent (final ObservableUpdatedUserPasswordEvent event);
 
        /**
         * Checks whether given clear-text password is in user's password history.
index 3ddde1884187c9c0ffe00cd0b221fa8384932fd0..258f38261e3ca57770704eec1debe8f18ae162db 100644 (file)
@@ -29,11 +29,6 @@ import javax.naming.Context;
 import javax.naming.InitialContext;
 import javax.naming.NamingException;
 import org.mxchange.jcontacts.contact.Contact;
-import org.mxchange.jcontacts.events.contact.add.AdminAddedContactEvent;
-import org.mxchange.jcontacts.events.contact.update.AdminUpdatedContactEvent;
-import org.mxchange.jcontacts.events.fax.linked.AdminLinkedFaxNumberEvent;
-import org.mxchange.jcontacts.events.landline.linked.AdminLinkedLandLineNumberEvent;
-import org.mxchange.jcontacts.events.mobile.linked.AdminLinkedMobileNumberEvent;
 import org.mxchange.jjobs.beans.BaseJobsController;
 import org.mxchange.jphone.events.fax.deleted.AdminDeletedFaxNumberEvent;
 import org.mxchange.jphone.events.fax.updated.AdminUpdatedFaxNumberEvent;
@@ -45,7 +40,12 @@ import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
 import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
 import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber;
 import org.mxchange.jphone.phonenumbers.phone.PhoneSessionBeanRemote;
-import org.mxchange.jusercore.events.user.add.AdminAddedUserEvent;
+import org.mxchange.jusercore.events.user.add.ObservableAdminAddedUserEvent;
+import org.mxchange.jcontacts.events.contact.add.ObservableAdminAddedContactEvent;
+import org.mxchange.jcontacts.events.contact.update.ObservableAdminUpdatedContactEvent;
+import org.mxchange.jcontacts.events.fax.linked.ObservableAdminLinkedFaxNumberEvent;
+import org.mxchange.jcontacts.events.landline.linked.ObservableAdminLinkedLandLineNumberEvent;
+import org.mxchange.jcontacts.events.mobile.linked.ObservableAdminLinkedMobileNumberEvent;
 
 /**
  * Regular controller (bean) for phone numbers
@@ -104,7 +104,7 @@ public class JobsPhoneWebApplicationBean extends BaseJobsController implements J
        }
 
        @Override
-       public void afterAdminAddedContactEvent (@Observes final AdminAddedContactEvent event) {
+       public void afterAdminAddedContactEvent (@Observes final ObservableAdminAddedContactEvent event) {
                // The event must be valid
                if (null == event) {
                        // Throw NPE
@@ -128,7 +128,7 @@ public class JobsPhoneWebApplicationBean extends BaseJobsController implements J
        }
 
        @Override
-       public void afterAdminAddedUserEvent (@Observes final AdminAddedUserEvent event) {
+       public void afterAdminAddedUserEvent (@Observes final ObservableAdminAddedUserEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
@@ -224,7 +224,7 @@ public class JobsPhoneWebApplicationBean extends BaseJobsController implements J
        }
 
        @Override
-       public void afterAdminLinkedFaxNumberEvent (@Observes final AdminLinkedFaxNumberEvent event) {
+       public void afterAdminLinkedFaxNumberEvent (@Observes final ObservableAdminLinkedFaxNumberEvent event) {
                // Is the event fine?
                if (event == null) {
                        // Throw NPE
@@ -266,7 +266,7 @@ public class JobsPhoneWebApplicationBean extends BaseJobsController implements J
        }
 
        @Override
-       public void afterAdminLinkedLandLineNumberEvent (@Observes final AdminLinkedLandLineNumberEvent event) {
+       public void afterAdminLinkedLandLineNumberEvent (@Observes final ObservableAdminLinkedLandLineNumberEvent event) {
                // Is the event fine?
                if (event == null) {
                        // Throw NPE
@@ -308,7 +308,7 @@ public class JobsPhoneWebApplicationBean extends BaseJobsController implements J
        }
 
        @Override
-       public void afterAdminLinkedMobileNumberEvent (@Observes final AdminLinkedMobileNumberEvent event) {
+       public void afterAdminLinkedMobileNumberEvent (@Observes final ObservableAdminLinkedMobileNumberEvent event) {
                // Is the event fine?
                if (event == null) {
                        // Throw NPE
@@ -350,7 +350,7 @@ public class JobsPhoneWebApplicationBean extends BaseJobsController implements J
        }
 
        @Override
-       public void afterAdminUpdatedContactDataEvent (@Observes final AdminUpdatedContactEvent event) {
+       public void afterAdminUpdatedContactDataEvent (@Observes final ObservableAdminUpdatedContactEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
index 2123b7a1fc91ec37ca72a01d31764c1ccdb2db57..67e9a43bf608344205e7512ac36994330e741547 100644 (file)
@@ -19,11 +19,6 @@ package org.mxchange.jjobs.beans.phone;
 import java.io.Serializable;
 import java.util.List;
 import javax.ejb.Local;
-import org.mxchange.jcontacts.events.contact.add.AdminAddedContactEvent;
-import org.mxchange.jcontacts.events.contact.update.AdminUpdatedContactEvent;
-import org.mxchange.jcontacts.events.fax.linked.AdminLinkedFaxNumberEvent;
-import org.mxchange.jcontacts.events.landline.linked.AdminLinkedLandLineNumberEvent;
-import org.mxchange.jcontacts.events.mobile.linked.AdminLinkedMobileNumberEvent;
 import org.mxchange.jphone.events.fax.deleted.AdminDeletedFaxNumberEvent;
 import org.mxchange.jphone.events.fax.updated.AdminUpdatedFaxNumberEvent;
 import org.mxchange.jphone.events.landline.deleted.AdminDeletedLandLineNumberEvent;
@@ -33,7 +28,12 @@ import org.mxchange.jphone.events.mobile.updated.AdminUpdatedMobileNumberEvent;
 import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
 import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
 import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber;
-import org.mxchange.jusercore.events.user.add.AdminAddedUserEvent;
+import org.mxchange.jusercore.events.user.add.ObservableAdminAddedUserEvent;
+import org.mxchange.jcontacts.events.contact.add.ObservableAdminAddedContactEvent;
+import org.mxchange.jcontacts.events.contact.update.ObservableAdminUpdatedContactEvent;
+import org.mxchange.jcontacts.events.fax.linked.ObservableAdminLinkedFaxNumberEvent;
+import org.mxchange.jcontacts.events.landline.linked.ObservableAdminLinkedLandLineNumberEvent;
+import org.mxchange.jcontacts.events.mobile.linked.ObservableAdminLinkedMobileNumberEvent;
 
 /**
  * An interface for a request web controller (bean) for administrative phone
@@ -49,7 +49,7 @@ public interface JobsPhoneWebApplicationController extends Serializable {
         * <p>
         * @param event Event being fired
         */
-       void afterAdminAddedUserEvent (final AdminAddedUserEvent event);
+       void afterAdminAddedUserEvent (final ObservableAdminAddedUserEvent event);
 
        /**
         * Observes events being fired when an administrator has added a new
@@ -57,7 +57,7 @@ public interface JobsPhoneWebApplicationController extends Serializable {
         * <p>
         * @param event Event being fired
         */
-       void afterAdminAddedContactEvent (final AdminAddedContactEvent event);
+       void afterAdminAddedContactEvent (final ObservableAdminAddedContactEvent event);
 
        /**
         * Observes events being fired when an administrator has deleted a fax
@@ -89,7 +89,7 @@ public interface JobsPhoneWebApplicationController extends Serializable {
         * <p>
         * @param event Event being fired
         */
-       void afterAdminLinkedFaxNumberEvent (final AdminLinkedFaxNumberEvent event);
+       void afterAdminLinkedFaxNumberEvent (final ObservableAdminLinkedFaxNumberEvent event);
 
        /**
         * Observes events being fired when an administrator has a linked a
@@ -97,7 +97,7 @@ public interface JobsPhoneWebApplicationController extends Serializable {
         * <p>
         * @param event Event being fired
         */
-       void afterAdminLinkedLandLineNumberEvent (final AdminLinkedLandLineNumberEvent event);
+       void afterAdminLinkedLandLineNumberEvent (final ObservableAdminLinkedLandLineNumberEvent event);
 
        /**
         * Observes events being fired when an administrator has a linked a mobile
@@ -105,7 +105,7 @@ public interface JobsPhoneWebApplicationController extends Serializable {
         * <p>
         * @param event Event being fired
         */
-       void afterAdminLinkedMobileNumberEvent (final AdminLinkedMobileNumberEvent event);
+       void afterAdminLinkedMobileNumberEvent (final ObservableAdminLinkedMobileNumberEvent event);
 
        /**
         * Observes events being fired when an administrator has updated a fax
@@ -136,7 +136,7 @@ public interface JobsPhoneWebApplicationController extends Serializable {
         * <p>
         * @param event Updated contact data event
         */
-       void afterAdminUpdatedContactDataEvent (final AdminUpdatedContactEvent event);
+       void afterAdminUpdatedContactDataEvent (final ObservableAdminUpdatedContactEvent event);
 
        /**
         * Returns a list of all mobile numbers. For performance reasons, the
index d863c41b599e0f0112e7ee4033746a0a2e0760a1..82e29446825522106e0bb1e9fb3c349de40193c6 100644 (file)
@@ -34,7 +34,6 @@ import org.mxchange.jjobs.beans.contact.JobsContactWebSessionController;
 import org.mxchange.jjobs.beans.features.JobsFeaturesWebApplicationController;
 import org.mxchange.jjobs.beans.user.JobsAdminUserWebRequestController;
 import org.mxchange.jjobs.beans.user.JobsUserWebSessionController;
-import org.mxchange.jusercore.events.registration.RegisteredUserEvent;
 import org.mxchange.jusercore.events.registration.UserRegisteredEvent;
 import org.mxchange.jusercore.exceptions.DataRepeatMismatchException;
 import org.mxchange.jusercore.exceptions.EmailAddressAlreadyRegisteredException;
@@ -43,6 +42,7 @@ import org.mxchange.jusercore.model.register.UserRegistrationSessionBeanRemote;
 import org.mxchange.jusercore.model.user.User;
 import org.mxchange.jusercore.model.user.UserUtils;
 import org.mxchange.jusercore.model.user.status.UserAccountStatus;
+import org.mxchange.jusercore.events.registration.ObservableUserRegisteredEvent;
 
 /**
  * A web bean for user registration
@@ -86,7 +86,7 @@ public class JobsUserRegisterWebSessionBean extends BaseJobsController implement
         */
        @Inject
        @Any
-       private Event<UserRegisteredEvent> registeredEvent;
+       private Event<ObservableUserRegisteredEvent> registeredEvent;
 
        /**
         * User controller
@@ -200,7 +200,7 @@ public class JobsUserRegisterWebSessionBean extends BaseJobsController implement
                        assert (registeredUser.getUserId() instanceof Long) : "registeredUser.userId is null after registerUser() was called."; //NOI18N
 
                        // Fire event
-                       this.registeredEvent.fire(new RegisteredUserEvent(registeredUser));
+                       this.registeredEvent.fire(new UserRegisteredEvent(registeredUser));
 
                        // All fine, redirect to proper page
                        return "user_register_done"; //NOI18N
index d5ac92d387a777561a8a672b55d287f2dcb63077..d06de530ddf9a0a55a3dc23d65bc786f3f7cc24c 100644 (file)
@@ -29,7 +29,6 @@ import org.mxchange.jcoreee.utils.FacesUtils;
 import org.mxchange.jjobs.beans.BaseJobsController;
 import org.mxchange.jjobs.beans.localization.JobsLocalizationSessionController;
 import org.mxchange.jjobs.beans.user.JobsUserWebSessionController;
-import org.mxchange.jusercore.events.resendlink.ResendLinkUserAccountEvent;
 import org.mxchange.jusercore.events.resendlink.UserResendLinkAccountEvent;
 import org.mxchange.jusercore.exceptions.UserEmailAddressNotFoundException;
 import org.mxchange.jusercore.exceptions.UserNotFoundException;
@@ -37,6 +36,7 @@ import org.mxchange.jusercore.exceptions.UserStatusConfirmedException;
 import org.mxchange.jusercore.exceptions.UserStatusLockedException;
 import org.mxchange.jusercore.model.user.User;
 import org.mxchange.jusercore.model.user.status.UserAccountStatus;
+import org.mxchange.jusercore.events.resendlink.ObservableUserResendLinkAccountEvent;
 
 /**
  * A web session bean for resending confirmation link
@@ -79,7 +79,7 @@ public class JobsResendLinkWebSessionBean extends BaseJobsController implements
         */
        @Inject
        @Any
-       private Event<UserResendLinkAccountEvent> userResendLinkEvent;
+       private Event<ObservableUserResendLinkAccountEvent> userResendLinkEvent;
 
        /**
         * Default constructor
@@ -158,7 +158,7 @@ public class JobsResendLinkWebSessionBean extends BaseJobsController implements
                }
 
                // Fire event
-               this.userResendLinkEvent.fire(new ResendLinkUserAccountEvent(user));
+               this.userResendLinkEvent.fire(new UserResendLinkAccountEvent(user));
 
                // Clear this bean
                this.clear();
index 345ff1100f2450e65265d9cd0f85db43681b9c41..99b8fe5f0b327e3e73d001dc681a6e01862e635c 100644 (file)
@@ -37,19 +37,12 @@ import org.mxchange.jjobs.beans.contact.JobsContactWebSessionController;
 import org.mxchange.jjobs.beans.helper.JobsWebViewHelperController;
 import org.mxchange.jjobs.beans.localization.JobsLocalizationSessionController;
 import org.mxchange.jusercore.container.login.UserLoginContainer;
-import org.mxchange.jusercore.events.registration.UserRegisteredEvent;
 import org.mxchange.jusercore.events.user.add.AdminAddedUserEvent;
-import org.mxchange.jusercore.events.user.add.AdminUserAddedEvent;
 import org.mxchange.jusercore.events.user.delete.AdminDeletedUserEvent;
-import org.mxchange.jusercore.events.user.delete.AdminUserDeletedEvent;
 import org.mxchange.jusercore.events.user.linked.AdminLinkedUserEvent;
-import org.mxchange.jusercore.events.user.linked.AdminUserLinkedEvent;
 import org.mxchange.jusercore.events.user.locked.AdminLockedUserEvent;
-import org.mxchange.jusercore.events.user.locked.AdminUserLockedEvent;
 import org.mxchange.jusercore.events.user.unlocked.AdminUnlockedUserEvent;
-import org.mxchange.jusercore.events.user.unlocked.AdminUserUnlockedEvent;
 import org.mxchange.jusercore.events.user.update.AdminUpdatedUserDataEvent;
-import org.mxchange.jusercore.events.user.update.AdminUserDataUpdatedEvent;
 import org.mxchange.jusercore.exceptions.EmailAddressAlreadyRegisteredException;
 import org.mxchange.jusercore.exceptions.UserNameAlreadyRegisteredException;
 import org.mxchange.jusercore.exceptions.UserNotFoundException;
@@ -64,6 +57,13 @@ import org.mxchange.jusercore.model.user.UserSessionBeanRemote;
 import org.mxchange.jusercore.model.user.UserUtils;
 import org.mxchange.jusercore.model.user.profilemodes.ProfileMode;
 import org.mxchange.jusercore.model.user.status.UserAccountStatus;
+import org.mxchange.jusercore.events.registration.ObservableUserRegisteredEvent;
+import org.mxchange.jusercore.events.user.add.ObservableAdminAddedUserEvent;
+import org.mxchange.jusercore.events.user.delete.ObservableAdminDeletedUserEvent;
+import org.mxchange.jusercore.events.user.linked.ObservableAdminLinkedUserEvent;
+import org.mxchange.jusercore.events.user.locked.ObservableAdminLockedUserEvent;
+import org.mxchange.jusercore.events.user.unlocked.ObservableAdminUnlockedUserEvent;
+import org.mxchange.jusercore.events.user.update.ObservableAdminUpdatedUserDataEvent;
 
 /**
  * A user controller (bean)
@@ -84,7 +84,7 @@ public class JobsAdminUserWebRequestBean extends BaseJobsController implements J
         */
        @Inject
        @Any
-       private Event<AdminAddedUserEvent> addedUserEvent;
+       private Event<ObservableAdminAddedUserEvent> addedUserEvent;
 
        /**
         * Regular contact controller
@@ -114,7 +114,7 @@ public class JobsAdminUserWebRequestBean extends BaseJobsController implements J
         */
        @Inject
        @Any
-       private Event<AdminDeletedUserEvent> deleteUserEvent;
+       private Event<ObservableAdminDeletedUserEvent> deleteUserEvent;
 
        /**
         * Localization controller
@@ -127,7 +127,7 @@ public class JobsAdminUserWebRequestBean extends BaseJobsController implements J
         */
        @Inject
        @Any
-       private Event<AdminUpdatedUserDataEvent> updatedUserDataEvent;
+       private Event<ObservableAdminUpdatedUserDataEvent> updatedUserDataEvent;
 
        /**
         * General user EJB
@@ -151,7 +151,7 @@ public class JobsAdminUserWebRequestBean extends BaseJobsController implements J
         */
        @Inject
        @Any
-       private Event<AdminLinkedUserEvent> userLinkedEvent;
+       private Event<ObservableAdminLinkedUserEvent> userLinkedEvent;
 
        /**
         * User lock reason
@@ -163,7 +163,7 @@ public class JobsAdminUserWebRequestBean extends BaseJobsController implements J
         */
        @Inject
        @Any
-       private Event<AdminLockedUserEvent> userLockedEvent;
+       private Event<ObservableAdminLockedUserEvent> userLockedEvent;
 
        /**
         * Flag whether user must change password after login
@@ -190,7 +190,7 @@ public class JobsAdminUserWebRequestBean extends BaseJobsController implements J
         */
        @Inject
        @Any
-       private Event<AdminUnlockedUserEvent> userUnlockedEvent;
+       private Event<ObservableAdminUnlockedUserEvent> userUnlockedEvent;
 
        /**
         * Default constructor
@@ -312,7 +312,7 @@ public class JobsAdminUserWebRequestBean extends BaseJobsController implements J
                                User updatedUser = this.adminUserBean.linkUser(user);
 
                                // Fire event
-                               this.userLinkedEvent.fire(new AdminUserLinkedEvent(updatedUser));
+                               this.userLinkedEvent.fire(new AdminLinkedUserEvent(updatedUser));
 
                                // Remove contact instance
                                this.beanHelper.setContact(null);
@@ -321,7 +321,7 @@ public class JobsAdminUserWebRequestBean extends BaseJobsController implements J
                                User updatedUser = this.adminUserBean.addUser(user);
 
                                // Fire event
-                               this.addedUserEvent.fire(new AdminUserAddedEvent(updatedUser));
+                               this.addedUserEvent.fire(new AdminAddedUserEvent(updatedUser));
                        }
                } catch (final UserNameAlreadyRegisteredException | EmailAddressAlreadyRegisteredException ex) {
                        // Throw again
@@ -339,7 +339,7 @@ public class JobsAdminUserWebRequestBean extends BaseJobsController implements J
        }
 
        @Override
-       public void afterUserRegistrationEvent (@Observes final UserRegisteredEvent event) {
+       public void afterUserRegistrationEvent (@Observes final ObservableUserRegisteredEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
@@ -390,7 +390,7 @@ public class JobsAdminUserWebRequestBean extends BaseJobsController implements J
                }
 
                // Fire event
-               this.deleteUserEvent.fire(new AdminUserDeletedEvent(user, this.getUserDeleteReason()));
+               this.deleteUserEvent.fire(new AdminDeletedUserEvent(user, this.getUserDeleteReason()));
 
                // Redirect
                return "admin_list_user"; //NOI18N
@@ -465,7 +465,7 @@ public class JobsAdminUserWebRequestBean extends BaseJobsController implements J
                User updatedUser = this.userBean.updateUserData(user);
 
                // Fire event
-               this.updatedUserDataEvent.fire(new AdminUserDataUpdatedEvent(updatedUser));
+               this.updatedUserDataEvent.fire(new AdminUpdatedUserDataEvent(updatedUser));
 
                // Return to user list (for now)
                return "admin_list_user"; //NOI18N
@@ -572,7 +572,7 @@ public class JobsAdminUserWebRequestBean extends BaseJobsController implements J
                }
 
                // Fire event
-               this.userLockedEvent.fire(new AdminUserLockedEvent(updatedUser));
+               this.userLockedEvent.fire(new AdminLockedUserEvent(updatedUser));
 
                // Clear bean
                this.clear();
@@ -616,7 +616,7 @@ public class JobsAdminUserWebRequestBean extends BaseJobsController implements J
                }
 
                // Fire event
-               this.userUnlockedEvent.fire(new AdminUserUnlockedEvent(updatedUser));
+               this.userUnlockedEvent.fire(new AdminUnlockedUserEvent(updatedUser));
 
                // Clear bean
                this.clear();
index ac85a7ecad8f63aff9b22cfeb6c2b6446a878d4f..38a3ab941a0a2fcae769cca15c558343778ce36d 100644 (file)
@@ -17,8 +17,8 @@
 package org.mxchange.jjobs.beans.user;
 
 import java.io.Serializable;
-import org.mxchange.jusercore.events.registration.UserRegisteredEvent;
 import org.mxchange.jusercore.model.user.User;
+import org.mxchange.jusercore.events.registration.ObservableUserRegisteredEvent;
 
 /**
  * An interface for user beans
@@ -32,7 +32,7 @@ public interface JobsAdminUserWebRequestController extends Serializable {
         * <p>
         * @param event User registration event
         */
-       void afterUserRegistrationEvent (final UserRegisteredEvent event);
+       void afterUserRegistrationEvent (final ObservableUserRegisteredEvent event);
 
        /**
         * Adds user instance to database by preparing a complete user instance and
index 22c4f2a60f445024c72ee730b92123821fbf6c40..51bbe13c18c91fd1b2400fccfdcfba72427c5555 100644 (file)
@@ -38,18 +38,7 @@ import org.mxchange.jjobs.beans.contact.JobsContactWebSessionController;
 import org.mxchange.jjobs.beans.features.JobsFeaturesWebApplicationController;
 import org.mxchange.jjobs.beans.localization.JobsLocalizationSessionController;
 import org.mxchange.jjobs.beans.login.JobsUserLoginWebSessionController;
-import org.mxchange.jusercore.events.confirmation.UserConfirmedAccountEvent;
-import org.mxchange.jusercore.events.login.UserLoggedInEvent;
-import org.mxchange.jusercore.events.registration.UserRegisteredEvent;
-import org.mxchange.jusercore.events.user.add.AdminAddedUserEvent;
-import org.mxchange.jusercore.events.user.delete.AdminDeletedUserEvent;
-import org.mxchange.jusercore.events.user.linked.AdminLinkedUserEvent;
-import org.mxchange.jusercore.events.user.locked.AdminLockedUserEvent;
-import org.mxchange.jusercore.events.user.password_change.UpdatedUserPasswordEvent;
-import org.mxchange.jusercore.events.user.unlocked.AdminUnlockedUserEvent;
-import org.mxchange.jusercore.events.user.update.AdminUpdatedUserDataEvent;
 import org.mxchange.jusercore.events.user.update.UpdatedUserPersonalDataEvent;
-import org.mxchange.jusercore.events.user.update.UserUpdatedPersonalDataEvent;
 import org.mxchange.jusercore.exceptions.UserEmailAddressNotFoundException;
 import org.mxchange.jusercore.exceptions.UserNotFoundException;
 import org.mxchange.jusercore.exceptions.UserPasswordMismatchException;
@@ -58,6 +47,17 @@ import org.mxchange.jusercore.model.user.User;
 import org.mxchange.jusercore.model.user.UserSessionBeanRemote;
 import org.mxchange.jusercore.model.user.UserUtils;
 import org.mxchange.jusercore.model.user.profilemodes.ProfileMode;
+import org.mxchange.jusercore.events.confirmation.ObservableUserConfirmedAccountEvent;
+import org.mxchange.jusercore.events.login.ObservableUserLoggedInEvent;
+import org.mxchange.jusercore.events.registration.ObservableUserRegisteredEvent;
+import org.mxchange.jusercore.events.user.add.ObservableAdminAddedUserEvent;
+import org.mxchange.jusercore.events.user.delete.ObservableAdminDeletedUserEvent;
+import org.mxchange.jusercore.events.user.linked.ObservableAdminLinkedUserEvent;
+import org.mxchange.jusercore.events.user.locked.ObservableAdminLockedUserEvent;
+import org.mxchange.jusercore.events.user.password_change.ObservableUpdatedUserPasswordEvent;
+import org.mxchange.jusercore.events.user.unlocked.ObservableAdminUnlockedUserEvent;
+import org.mxchange.jusercore.events.user.update.ObservableAdminUpdatedUserDataEvent;
+import org.mxchange.jusercore.events.user.update.ObservableUpdatedUserPersonalDataEvent;
 
 /**
  * A user controller (bean)
@@ -96,7 +96,7 @@ public class JobsUserWebSessionBean extends BaseJobsController implements JobsUs
         */
        @Inject
        @Any
-       private Event<UpdatedUserPersonalDataEvent> updatedPersonalDataEvent;
+       private Event<ObservableUpdatedUserPersonalDataEvent> updatedPersonalDataEvent;
 
        /**
         * Remote user bean
@@ -170,7 +170,7 @@ public class JobsUserWebSessionBean extends BaseJobsController implements JobsUs
        }
 
        @Override
-       public void afterAdminAddedUserEvent (@Observes final AdminAddedUserEvent event) {
+       public void afterAdminAddedUserEvent (@Observes final ObservableAdminAddedUserEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
@@ -197,7 +197,7 @@ public class JobsUserWebSessionBean extends BaseJobsController implements JobsUs
        }
 
        @Override
-       public void afterAdminDeletedUserEvent (final AdminDeletedUserEvent event) {
+       public void afterAdminDeletedUserEvent (final ObservableAdminDeletedUserEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
@@ -221,7 +221,7 @@ public class JobsUserWebSessionBean extends BaseJobsController implements JobsUs
        }
 
        @Override
-       public void afterAdminLinkedUserEvent (@Observes final AdminLinkedUserEvent event) {
+       public void afterAdminLinkedUserEvent (@Observes final ObservableAdminLinkedUserEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
@@ -248,7 +248,7 @@ public class JobsUserWebSessionBean extends BaseJobsController implements JobsUs
        }
 
        @Override
-       public void afterAdminLockedUserEvent (@Observes final AdminLockedUserEvent event) {
+       public void afterAdminLockedUserEvent (@Observes final ObservableAdminLockedUserEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
@@ -269,7 +269,7 @@ public class JobsUserWebSessionBean extends BaseJobsController implements JobsUs
        }
 
        @Override
-       public void afterAdminUnlockedUserEvent (@Observes final AdminUnlockedUserEvent event) {
+       public void afterAdminUnlockedUserEvent (@Observes final ObservableAdminUnlockedUserEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
@@ -290,7 +290,7 @@ public class JobsUserWebSessionBean extends BaseJobsController implements JobsUs
        }
 
        @Override
-       public void afterAdminUpdatedUserDataEvent (@Observes final AdminUpdatedUserDataEvent event) {
+       public void afterAdminUpdatedUserDataEvent (@Observes final ObservableAdminUpdatedUserDataEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
@@ -314,7 +314,7 @@ public class JobsUserWebSessionBean extends BaseJobsController implements JobsUs
        }
 
        @Override
-       public void afterUserConfirmedAccountEvent (@Observes final UserConfirmedAccountEvent event) {
+       public void afterUserConfirmedAccountEvent (@Observes final ObservableUserConfirmedAccountEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
@@ -335,7 +335,7 @@ public class JobsUserWebSessionBean extends BaseJobsController implements JobsUs
        }
 
        @Override
-       public void afterUserLoginEvent (@Observes final UserLoggedInEvent event) {
+       public void afterUserLoginEvent (@Observes final ObservableUserLoggedInEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
@@ -365,7 +365,7 @@ public class JobsUserWebSessionBean extends BaseJobsController implements JobsUs
        }
 
        @Override
-       public void afterUserRegistrationEvent (@Observes final UserRegisteredEvent event) {
+       public void afterUserRegistrationEvent (@Observes final ObservableUserRegisteredEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
@@ -407,7 +407,7 @@ public class JobsUserWebSessionBean extends BaseJobsController implements JobsUs
        }
 
        @Override
-       public void afterUserUpdatedPasswordEvent (@Observes final UpdatedUserPasswordEvent event) {
+       public void afterUserUpdatedPasswordEvent (@Observes final ObservableUpdatedUserPasswordEvent event) {
                // Check parameter
                if (null == event) {
                        // Throw NPE
@@ -428,7 +428,7 @@ public class JobsUserWebSessionBean extends BaseJobsController implements JobsUs
        }
 
        @Override
-       public void afterUserUpdatedPersonalDataEvent (@Observes final UpdatedUserPersonalDataEvent event) {
+       public void afterUserUpdatedPersonalDataEvent (@Observes final ObservableUpdatedUserPersonalDataEvent event) {
                // Check parameter
                if (null == event) {
                        // Throw NPE
@@ -564,7 +564,7 @@ public class JobsUserWebSessionBean extends BaseJobsController implements JobsUs
                User updatedUser = this.userBean.updateUserPersonalData(user);
 
                // Fire event
-               this.updatedPersonalDataEvent.fire(new UserUpdatedPersonalDataEvent(updatedUser));
+               this.updatedPersonalDataEvent.fire(new UpdatedUserPersonalDataEvent(updatedUser));
 
                // All fine
                return "user_contact_data_saved"; //NOI18N
index 9bf777bb08958a2ba0603fdb64815456a5391bde..cfa5baaf0f4e4bf96fdf55f67c8f4a31776a13d6 100644 (file)
@@ -19,21 +19,21 @@ package org.mxchange.jjobs.beans.user;
 import java.io.Serializable;
 import java.util.List;
 import org.mxchange.jcontacts.contact.Contact;
-import org.mxchange.jusercore.events.confirmation.UserConfirmedAccountEvent;
-import org.mxchange.jusercore.events.login.UserLoggedInEvent;
-import org.mxchange.jusercore.events.registration.UserRegisteredEvent;
-import org.mxchange.jusercore.events.user.add.AdminAddedUserEvent;
-import org.mxchange.jusercore.events.user.delete.AdminDeletedUserEvent;
-import org.mxchange.jusercore.events.user.linked.AdminLinkedUserEvent;
-import org.mxchange.jusercore.events.user.locked.AdminLockedUserEvent;
-import org.mxchange.jusercore.events.user.password_change.UpdatedUserPasswordEvent;
-import org.mxchange.jusercore.events.user.unlocked.AdminUnlockedUserEvent;
-import org.mxchange.jusercore.events.user.update.AdminUpdatedUserDataEvent;
-import org.mxchange.jusercore.events.user.update.UpdatedUserPersonalDataEvent;
 import org.mxchange.jusercore.exceptions.UserEmailAddressNotFoundException;
 import org.mxchange.jusercore.exceptions.UserNotFoundException;
 import org.mxchange.jusercore.model.user.User;
 import org.mxchange.jusercore.model.user.profilemodes.ProfileMode;
+import org.mxchange.jusercore.events.confirmation.ObservableUserConfirmedAccountEvent;
+import org.mxchange.jusercore.events.login.ObservableUserLoggedInEvent;
+import org.mxchange.jusercore.events.registration.ObservableUserRegisteredEvent;
+import org.mxchange.jusercore.events.user.add.ObservableAdminAddedUserEvent;
+import org.mxchange.jusercore.events.user.delete.ObservableAdminDeletedUserEvent;
+import org.mxchange.jusercore.events.user.linked.ObservableAdminLinkedUserEvent;
+import org.mxchange.jusercore.events.user.locked.ObservableAdminLockedUserEvent;
+import org.mxchange.jusercore.events.user.password_change.ObservableUpdatedUserPasswordEvent;
+import org.mxchange.jusercore.events.user.unlocked.ObservableAdminUnlockedUserEvent;
+import org.mxchange.jusercore.events.user.update.ObservableAdminUpdatedUserDataEvent;
+import org.mxchange.jusercore.events.user.update.ObservableUpdatedUserPersonalDataEvent;
 
 /**
  * An interface for user beans
@@ -52,49 +52,49 @@ public interface JobsUserWebSessionController extends Serializable {
         * <p>
         * @param event Event being fired
         */
-       void afterAdminAddedUserEvent (final AdminAddedUserEvent event);
+       void afterAdminAddedUserEvent (final ObservableAdminAddedUserEvent event);
 
        /**
         * Event observer for deleted user accounts (by administrator)
         * <p>
         * @param event Event being fired
         */
-       void afterAdminDeletedUserEvent (final AdminDeletedUserEvent event);
+       void afterAdminDeletedUserEvent (final ObservableAdminDeletedUserEvent event);
 
        /**
         * Event observer for linked users with existing contact data
         * <p>
         * @param event Event being fired
         */
-       void afterAdminLinkedUserEvent (final AdminLinkedUserEvent event);
+       void afterAdminLinkedUserEvent (final ObservableAdminLinkedUserEvent event);
 
        /**
         * Event observer for locked users
         * <p>
         * @param event Event being fired
         */
-       void afterAdminLockedUserEvent (final AdminLockedUserEvent event);
+       void afterAdminLockedUserEvent (final ObservableAdminLockedUserEvent event);
 
        /**
         * Event observer for unlocked users
         * <p>
         * @param event Event being fired
         */
-       void afterAdminUnlockedUserEvent (final AdminUnlockedUserEvent event);
+       void afterAdminUnlockedUserEvent (final ObservableAdminUnlockedUserEvent event);
 
        /**
         * Event observer for updated user data by administrator
         * <p>
         * @param event Event being updated
         */
-       void afterAdminUpdatedUserDataEvent (final AdminUpdatedUserDataEvent event);
+       void afterAdminUpdatedUserDataEvent (final ObservableAdminUpdatedUserDataEvent event);
 
        /**
         * Event observer when user confirmed account.
         * <p>
         * @param event Event being fired
         */
-       void afterUserConfirmedAccountEvent (final UserConfirmedAccountEvent event);
+       void afterUserConfirmedAccountEvent (final ObservableUserConfirmedAccountEvent event);
 
        /**
         * Method being call after user's password has been updated (and history
@@ -102,28 +102,28 @@ public interface JobsUserWebSessionController extends Serializable {
         * <p>
         * @param event Event being observed
         */
-       void afterUserUpdatedPasswordEvent (final UpdatedUserPasswordEvent event);
+       void afterUserUpdatedPasswordEvent (final ObservableUpdatedUserPasswordEvent event);
 
        /**
         * Listens to fired event when user updated personal data
         * <p>
         * @param event Event being fired
         */
-       void afterUserUpdatedPersonalDataEvent (final UpdatedUserPersonalDataEvent event);
+       void afterUserUpdatedPersonalDataEvent (final ObservableUpdatedUserPersonalDataEvent event);
 
        /**
         * Event observer for new user registrations
         * <p>
         * @param event User registration event
         */
-       void afterUserRegistrationEvent (final UserRegisteredEvent event);
+       void afterUserRegistrationEvent (final ObservableUserRegisteredEvent event);
 
        /**
         * Event observer for logged-in user
         * <p>
         * @param event Event instance
         */
-       void afterUserLoginEvent (final UserLoggedInEvent event);
+       void afterUserLoginEvent (final ObservableUserLoggedInEvent event);
 
        /**
         * All users
index 8f9e66f728fd2a362a25db7616c91573ebb72d5d..0ff70e1031a83105576ff2d7c4d036a688b28db6 100644 (file)
@@ -34,24 +34,24 @@ import javax.naming.InitialContext;
 import javax.naming.NamingException;
 import org.mxchange.jjobs.beans.BaseJobsController;
 import org.mxchange.jjobs.beans.helper.JobsWebViewHelperController;
-import org.mxchange.jusercore.events.confirmation.UserConfirmedAccountEvent;
-import org.mxchange.jusercore.events.login.UserLoggedInEvent;
-import org.mxchange.jusercore.events.logout.ObserveableUserLogoutEvent;
-import org.mxchange.jusercore.events.registration.UserRegisteredEvent;
-import org.mxchange.jusercore.events.resendlink.UserResendLinkAccountEvent;
-import org.mxchange.jusercore.events.user.add.AdminAddedUserEvent;
-import org.mxchange.jusercore.events.user.delete.AdminDeletedUserEvent;
-import org.mxchange.jusercore.events.user.linked.AdminLinkedUserEvent;
-import org.mxchange.jusercore.events.user.locked.AdminLockedUserEvent;
-import org.mxchange.jusercore.events.user.password_change.UpdatedUserPasswordEvent;
-import org.mxchange.jusercore.events.user.unlocked.AdminUnlockedUserEvent;
-import org.mxchange.jusercore.events.user.update.AdminUpdatedUserDataEvent;
-import org.mxchange.jusercore.events.user.update.UpdatedUserPersonalDataEvent;
 import org.mxchange.jusercore.model.user.User;
 import org.mxchange.jusercore.model.user.activity.LogableUserActivity;
 import org.mxchange.jusercore.model.user.activity.UserActivityLog;
 import org.mxchange.jusercore.model.user.activity.UserActivityLogSessionBeanRemote;
 import org.mxchange.jusercore.model.user.activity.comparator.UserActivityLogTimestampComparator;
+import org.mxchange.jusercore.events.confirmation.ObservableUserConfirmedAccountEvent;
+import org.mxchange.jusercore.events.login.ObservableUserLoggedInEvent;
+import org.mxchange.jusercore.events.registration.ObservableUserRegisteredEvent;
+import org.mxchange.jusercore.events.resendlink.ObservableUserResendLinkAccountEvent;
+import org.mxchange.jusercore.events.user.add.ObservableAdminAddedUserEvent;
+import org.mxchange.jusercore.events.logout.ObservableUserLogoutEvent;
+import org.mxchange.jusercore.events.user.delete.ObservableAdminDeletedUserEvent;
+import org.mxchange.jusercore.events.user.linked.ObservableAdminLinkedUserEvent;
+import org.mxchange.jusercore.events.user.locked.ObservableAdminLockedUserEvent;
+import org.mxchange.jusercore.events.user.password_change.ObservableUpdatedUserPasswordEvent;
+import org.mxchange.jusercore.events.user.unlocked.ObservableAdminUnlockedUserEvent;
+import org.mxchange.jusercore.events.user.update.ObservableAdminUpdatedUserDataEvent;
+import org.mxchange.jusercore.events.user.update.ObservableUpdatedUserPersonalDataEvent;
 
 /**
  * A controller (bean) for user activity log
@@ -171,7 +171,7 @@ public class JobsUserActivityWebApplicationBean extends BaseJobsController imple
        }
 
        @Override
-       public void afterAdminAddedUserEvent (@Observes final AdminAddedUserEvent event) {
+       public void afterAdminAddedUserEvent (@Observes final ObservableAdminAddedUserEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
@@ -192,7 +192,7 @@ public class JobsUserActivityWebApplicationBean extends BaseJobsController imple
        }
 
        @Override
-       public void afterAdminDeletedUserEvent (@Observes final AdminDeletedUserEvent event) {
+       public void afterAdminDeletedUserEvent (@Observes final ObservableAdminDeletedUserEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
@@ -213,7 +213,7 @@ public class JobsUserActivityWebApplicationBean extends BaseJobsController imple
        }
 
        @Override
-       public void afterAdminLinkedUserEvent (@Observes final AdminLinkedUserEvent event) {
+       public void afterAdminLinkedUserEvent (@Observes final ObservableAdminLinkedUserEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
@@ -234,7 +234,7 @@ public class JobsUserActivityWebApplicationBean extends BaseJobsController imple
        }
 
        @Override
-       public void afterAdminLockedUserEvent (@Observes final AdminLockedUserEvent event) {
+       public void afterAdminLockedUserEvent (@Observes final ObservableAdminLockedUserEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
@@ -255,7 +255,7 @@ public class JobsUserActivityWebApplicationBean extends BaseJobsController imple
        }
 
        @Override
-       public void afterAdminUnlockedUserEvent (@Observes final AdminUnlockedUserEvent event) {
+       public void afterAdminUnlockedUserEvent (@Observes final ObservableAdminUnlockedUserEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
@@ -276,7 +276,7 @@ public class JobsUserActivityWebApplicationBean extends BaseJobsController imple
        }
 
        @Override
-       public void afterAdminUpdatedUserDataEvent (@Observes final AdminUpdatedUserDataEvent event) {
+       public void afterAdminUpdatedUserDataEvent (@Observes final ObservableAdminUpdatedUserDataEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
@@ -297,7 +297,7 @@ public class JobsUserActivityWebApplicationBean extends BaseJobsController imple
        }
 
        @Override
-       public void afterUserConfirmedAccountEvent (@Observes final UserConfirmedAccountEvent event) {
+       public void afterUserConfirmedAccountEvent (@Observes final ObservableUserConfirmedAccountEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
@@ -318,7 +318,7 @@ public class JobsUserActivityWebApplicationBean extends BaseJobsController imple
        }
 
        @Override
-       public void afterUserLoginEvent (@Observes final UserLoggedInEvent event) {
+       public void afterUserLoginEvent (@Observes final ObservableUserLoggedInEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
@@ -339,7 +339,7 @@ public class JobsUserActivityWebApplicationBean extends BaseJobsController imple
        }
 
        @Override
-       public void afterUserLogoutEvent (@Observes final ObserveableUserLogoutEvent event) {
+       public void afterUserLogoutEvent (@Observes final ObservableUserLogoutEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
@@ -360,7 +360,7 @@ public class JobsUserActivityWebApplicationBean extends BaseJobsController imple
        }
 
        @Override
-       public void afterUserRegistrationEvent (@Observes final UserRegisteredEvent event) {
+       public void afterUserRegistrationEvent (@Observes final ObservableUserRegisteredEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
@@ -381,7 +381,7 @@ public class JobsUserActivityWebApplicationBean extends BaseJobsController imple
        }
 
        @Override
-       public void afterUserResendConfirmationLinkEvent (@Observes final UserResendLinkAccountEvent event) {
+       public void afterUserResendConfirmationLinkEvent (@Observes final ObservableUserResendLinkAccountEvent event) {
                // event should not be null
                if (null == event) {
                        // Throw NPE
@@ -402,7 +402,7 @@ public class JobsUserActivityWebApplicationBean extends BaseJobsController imple
        }
 
        @Override
-       public void afterUserUpdatedPasswordEvent (@Observes final UpdatedUserPasswordEvent event) {
+       public void afterUserUpdatedPasswordEvent (@Observes final ObservableUpdatedUserPasswordEvent event) {
                // Check parameter
                if (null == event) {
                        // Throw NPE
@@ -423,7 +423,7 @@ public class JobsUserActivityWebApplicationBean extends BaseJobsController imple
        }
 
        @Override
-       public void afterUserUpdatedPersonalDataEvent (@Observes final UpdatedUserPersonalDataEvent event) {
+       public void afterUserUpdatedPersonalDataEvent (@Observes final ObservableUpdatedUserPersonalDataEvent event) {
                // Check parameter
                if (null == event) {
                        // Throw NPE
index bdb7a650cce038044023eb5628d4a95063b2632c..831d92cfba770eacfe51a02e74dd1494e89f40e4 100644 (file)
@@ -19,21 +19,21 @@ package org.mxchange.jjobs.beans.user.activity;
 import java.io.Serializable;
 import java.util.List;
 import javax.ejb.Local;
-import org.mxchange.jusercore.events.confirmation.UserConfirmedAccountEvent;
-import org.mxchange.jusercore.events.login.UserLoggedInEvent;
-import org.mxchange.jusercore.events.logout.ObserveableUserLogoutEvent;
-import org.mxchange.jusercore.events.registration.UserRegisteredEvent;
-import org.mxchange.jusercore.events.resendlink.UserResendLinkAccountEvent;
-import org.mxchange.jusercore.events.user.add.AdminAddedUserEvent;
-import org.mxchange.jusercore.events.user.delete.AdminDeletedUserEvent;
-import org.mxchange.jusercore.events.user.linked.AdminLinkedUserEvent;
-import org.mxchange.jusercore.events.user.locked.AdminLockedUserEvent;
-import org.mxchange.jusercore.events.user.password_change.UpdatedUserPasswordEvent;
-import org.mxchange.jusercore.events.user.unlocked.AdminUnlockedUserEvent;
-import org.mxchange.jusercore.events.user.update.AdminUpdatedUserDataEvent;
-import org.mxchange.jusercore.events.user.update.UpdatedUserPersonalDataEvent;
 import org.mxchange.jusercore.model.user.User;
 import org.mxchange.jusercore.model.user.activity.LogableUserActivity;
+import org.mxchange.jusercore.events.confirmation.ObservableUserConfirmedAccountEvent;
+import org.mxchange.jusercore.events.login.ObservableUserLoggedInEvent;
+import org.mxchange.jusercore.events.registration.ObservableUserRegisteredEvent;
+import org.mxchange.jusercore.events.resendlink.ObservableUserResendLinkAccountEvent;
+import org.mxchange.jusercore.events.user.add.ObservableAdminAddedUserEvent;
+import org.mxchange.jusercore.events.logout.ObservableUserLogoutEvent;
+import org.mxchange.jusercore.events.user.delete.ObservableAdminDeletedUserEvent;
+import org.mxchange.jusercore.events.user.linked.ObservableAdminLinkedUserEvent;
+import org.mxchange.jusercore.events.user.locked.ObservableAdminLockedUserEvent;
+import org.mxchange.jusercore.events.user.password_change.ObservableUpdatedUserPasswordEvent;
+import org.mxchange.jusercore.events.user.unlocked.ObservableAdminUnlockedUserEvent;
+import org.mxchange.jusercore.events.user.update.ObservableAdminUpdatedUserDataEvent;
+import org.mxchange.jusercore.events.user.update.ObservableUpdatedUserPersonalDataEvent;
 
 /**
  * A controller (bean) interface for user activity log
@@ -48,56 +48,56 @@ public interface JobsUserActivityWebApplicationController extends Serializable {
         * <p>
         * @param event Event being fired
         */
-       void afterAdminAddedUserEvent (final AdminAddedUserEvent event);
+       void afterAdminAddedUserEvent (final ObservableAdminAddedUserEvent event);
 
        /**
         * Event observer for deleted user accounts (by administrator)
         * <p>
         * @param event Event being fired
         */
-       void afterAdminDeletedUserEvent (final AdminDeletedUserEvent event);
+       void afterAdminDeletedUserEvent (final ObservableAdminDeletedUserEvent event);
 
        /**
         * Event observer for linked users with existing contact data
         * <p>
         * @param event Event being fired
         */
-       void afterAdminLinkedUserEvent (final AdminLinkedUserEvent event);
+       void afterAdminLinkedUserEvent (final ObservableAdminLinkedUserEvent event);
 
        /**
         * Event observer for locked users
         * <p>
         * @param event Event being fired
         */
-       void afterAdminLockedUserEvent (final AdminLockedUserEvent event);
+       void afterAdminLockedUserEvent (final ObservableAdminLockedUserEvent event);
 
        /**
         * Event observer for unlocked users
         * <p>
         * @param event Event being fired
         */
-       void afterAdminUnlockedUserEvent (final AdminUnlockedUserEvent event);
+       void afterAdminUnlockedUserEvent (final ObservableAdminUnlockedUserEvent event);
 
        /**
         * Event observer for updated user data by administrator
         * <p>
         * @param event Event being updated
         */
-       void afterAdminUpdatedUserDataEvent (final AdminUpdatedUserDataEvent event);
+       void afterAdminUpdatedUserDataEvent (final ObservableAdminUpdatedUserDataEvent event);
 
        /**
         * Event observer when user confirmed account.
         * <p>
         * @param event Event being fired
         */
-       void afterUserConfirmedAccountEvent (final UserConfirmedAccountEvent event);
+       void afterUserConfirmedAccountEvent (final ObservableUserConfirmedAccountEvent event);
 
        /**
         * Event observer for logged-out user
         * <p>
         * @param event Event instance
         */
-       void afterUserLogoutEvent (final ObserveableUserLogoutEvent event);
+       void afterUserLogoutEvent (final ObservableUserLogoutEvent event);
 
        /**
         * Method being call after user's password has been updated (and history
@@ -105,35 +105,35 @@ public interface JobsUserActivityWebApplicationController extends Serializable {
         * <p>
         * @param event Event being observed
         */
-       void afterUserUpdatedPasswordEvent (final UpdatedUserPasswordEvent event);
+       void afterUserUpdatedPasswordEvent (final ObservableUpdatedUserPasswordEvent event);
 
        /**
         * Listens to fired event when user updated personal data
         * <p>
         * @param event Event being fired
         */
-       void afterUserUpdatedPersonalDataEvent (final UpdatedUserPersonalDataEvent event);
+       void afterUserUpdatedPersonalDataEvent (final ObservableUpdatedUserPersonalDataEvent event);
 
        /**
         * Event observer for new user registrations
         * <p>
         * @param event Event being fired
         */
-       void afterUserRegistrationEvent (final UserRegisteredEvent event);
+       void afterUserRegistrationEvent (final ObservableUserRegisteredEvent event);
 
        /**
         * Event observer for logged-in user
         * <p>
         * @param event Event being fired
         */
-       void afterUserLoginEvent (final UserLoggedInEvent event);
+       void afterUserLoginEvent (final ObservableUserLoggedInEvent event);
 
        /**
         * Event observer for users resending their confirmation link
         * <p>
         * @param event Event being fired
         */
-       void afterUserResendConfirmationLinkEvent (final UserResendLinkAccountEvent event);
+       void afterUserResendConfirmationLinkEvent (final ObservableUserResendLinkAccountEvent event);
 
        /**
         * Adds user activity entry with given type
index e9a4ba4512fa2d5cd0cf5fafd8961760184def82..b82eb125a43e8e90352961c1ce6af11dc5203ff7 100644 (file)
@@ -31,7 +31,6 @@ import org.mxchange.jjobs.beans.BaseJobsController;
 import org.mxchange.jjobs.beans.features.JobsFeaturesWebApplicationController;
 import org.mxchange.jjobs.beans.login.JobsUserLoginWebSessionController;
 import org.mxchange.jusercore.events.user.password_change.UpdatedUserPasswordEvent;
-import org.mxchange.jusercore.events.user.password_change.UserUpdatedPasswordEvent;
 import org.mxchange.jusercore.exceptions.UserNotFoundException;
 import org.mxchange.jusercore.exceptions.UserStatusLockedException;
 import org.mxchange.jusercore.exceptions.UserStatusUnconfirmedException;
@@ -39,6 +38,7 @@ import org.mxchange.jusercore.model.user.User;
 import org.mxchange.jusercore.model.user.UserSessionBeanRemote;
 import org.mxchange.jusercore.model.user.UserUtils;
 import org.mxchange.jusercore.model.user.password_history.PasswordHistory;
+import org.mxchange.jusercore.events.user.password_change.ObservableUpdatedUserPasswordEvent;
 
 /**
  * A user password (change) controller (bean)
@@ -86,7 +86,7 @@ public class JobsUserPasswordWebRequestBean extends BaseJobsController implement
         */
        @Any
        @Inject
-       private Event<UpdatedUserPasswordEvent> userUpdatedPasswordEvent;
+       private Event<ObservableUpdatedUserPasswordEvent> userUpdatedPasswordEvent;
 
        /**
         * Default constructor
@@ -187,7 +187,7 @@ public class JobsUserPasswordWebRequestBean extends BaseJobsController implement
                        PasswordHistory passwordHistory = this.userBean.updateUserPassword(user, baseUrl);
 
                        // Fire event
-                       this.userUpdatedPasswordEvent.fire(new UserUpdatedPasswordEvent(passwordHistory));
+                       this.userUpdatedPasswordEvent.fire(new UpdatedUserPasswordEvent(passwordHistory));
                } catch (final UserNotFoundException | UserStatusUnconfirmedException | UserStatusLockedException ex) {
                        // Clear bean
                        this.userLoginController.setUserCurrentPassword(null);
index 1ee29c43e69d415a58cf46931116e38a7636f193..9f059bf81536b5a298af62ee5a29a9371c2ea2e4 100644 (file)
@@ -32,9 +32,9 @@ import javax.naming.NamingException;
 import org.mxchange.jcoreee.validator.number.BaseLongValidator;
 import org.mxchange.jcoreeelogger.beans.local.logger.Log;
 import org.mxchange.jcoreeelogger.beans.local.logger.LoggerBeanLocal;
-import org.mxchange.jusercore.events.registration.UserRegisteredEvent;
 import org.mxchange.jusercore.model.user.User;
 import org.mxchange.jusercore.model.user.UserSessionBeanRemote;
+import org.mxchange.jusercore.events.registration.ObservableUserRegisteredEvent;
 
 /**
  * A validator for user ids
@@ -90,7 +90,7 @@ public class JobsUserIdValidator extends BaseLongValidator implements Validator
         * <p>
         * @param event User registration event
         */
-       public void afterUserRegistrationEvent (@Observes final UserRegisteredEvent event) {
+       public void afterUserRegistrationEvent (@Observes final ObservableUserRegisteredEvent event) {
                // Trace message
                this.loggerBeanLocal.logTrace(MessageFormat.format("UserIdValidator:afterUserRegistrationEvent: event={0} - CALLED!", event)); //NOI18N