From 3379d749bd0e0962f91a7e3408316592669a820d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 22 Jan 2023 07:34:57 +0100 Subject: [PATCH] Please cherry-pick: - updated references as with observable events, their interface should be prefixed "Observable" to indicate an interface --- .../FinancialsAdminMobileWebRequestBean.java | 12 ++++---- .../list/FinancialsMobileListWebViewBean.java | 8 +++--- ...ialsAdminMobileProviderWebRequestBean.java | 4 +-- ...nancialsMobileProviderListWebViewBean.java | 4 +-- .../FinancialsAdminPhoneWebRequestBean.java | 28 +++++++++---------- .../list/FinancialsPhoneListWebViewBean.java | 16 +++++------ 6 files changed, 36 insertions(+), 36 deletions(-) diff --git a/src/java/org/mxchange/jfinancials/beans/mobile/FinancialsAdminMobileWebRequestBean.java b/src/java/org/mxchange/jfinancials/beans/mobile/FinancialsAdminMobileWebRequestBean.java index 0a9c7d18..535dd957 100644 --- a/src/java/org/mxchange/jfinancials/beans/mobile/FinancialsAdminMobileWebRequestBean.java +++ b/src/java/org/mxchange/jfinancials/beans/mobile/FinancialsAdminMobileWebRequestBean.java @@ -31,12 +31,12 @@ import javax.inject.Named; import org.mxchange.jfinancials.beans.BaseFinancialsBean; import org.mxchange.jfinancials.beans.mobile.list.FinancialsMobileListWebViewController; import org.mxchange.jphone.events.mobile.created.ObservableCreatedMobileNumberEvent; -import org.mxchange.jphone.events.mobile.deleted.AdminDeletedMobileNumberEvent; import org.mxchange.jphone.events.mobile.deleted.AdminMobileNumberDeletedEvent; +import org.mxchange.jphone.events.mobile.deleted.ObservableAdminMobileNumberDeletedEvent; import org.mxchange.jphone.events.mobile.remove.AdminMobileNumberRemovedFromListEvent; -import org.mxchange.jphone.events.mobile.remove.AdminRemoveMobileNumberFromListEvent; +import org.mxchange.jphone.events.mobile.remove.ObservableAdminMobileNumberRemovedFromListEvent; import org.mxchange.jphone.events.mobile.updated.AdminMobileNumberUpdatedEvent; -import org.mxchange.jphone.events.mobile.updated.AdminUpdatedMobileNumberEvent; +import org.mxchange.jphone.events.mobile.updated.ObservableAdminMobileNumberUpdatedEvent; import org.mxchange.jphone.model.phonenumbers.mobile.AdminMobileSessionBeanRemote; import org.mxchange.jphone.model.phonenumbers.mobile.DialableMobileNumber; import org.mxchange.jphone.model.phonenumbers.mobile.MobileNumber; @@ -93,14 +93,14 @@ public class FinancialsAdminMobileWebRequestBean extends BaseFinancialsBean impl */ @Inject @Any - private Event mobileNumberDeletedEvent; + private Event mobileNumberDeletedEvent; /** * Event being fired when an administrator has updated land-line number */ @Inject @Any - private Event mobileNumberUpdatedEvent; + private Event mobileNumberUpdatedEvent; /** * Mobile provider @@ -113,7 +113,7 @@ public class FinancialsAdminMobileWebRequestBean extends BaseFinancialsBean impl */ @Inject @Any - private Event removeLinkedMobileNumbersEvent; + private Event removeLinkedMobileNumbersEvent; /** * Chosen mobile number diff --git a/src/java/org/mxchange/jfinancials/beans/mobile/list/FinancialsMobileListWebViewBean.java b/src/java/org/mxchange/jfinancials/beans/mobile/list/FinancialsMobileListWebViewBean.java index 3fbbd59f..87da192f 100644 --- a/src/java/org/mxchange/jfinancials/beans/mobile/list/FinancialsMobileListWebViewBean.java +++ b/src/java/org/mxchange/jfinancials/beans/mobile/list/FinancialsMobileListWebViewBean.java @@ -35,8 +35,8 @@ import org.mxchange.jcontacts.events.contact.update.ObservableUpdatedContactEven import org.mxchange.jcontacts.events.mobile.linked.ObservableAdminLinkedMobileNumberEvent; import org.mxchange.jcontacts.model.contact.Contact; import org.mxchange.jfinancials.beans.BaseFinancialsBean; -import org.mxchange.jphone.events.mobile.deleted.AdminDeletedMobileNumberEvent; -import org.mxchange.jphone.events.mobile.updated.AdminUpdatedMobileNumberEvent; +import org.mxchange.jphone.events.mobile.deleted.ObservableAdminMobileNumberDeletedEvent; +import org.mxchange.jphone.events.mobile.updated.ObservableAdminMobileNumberUpdatedEvent; import org.mxchange.jphone.exceptions.mobile.MobileEntityNotFoundException; import org.mxchange.jphone.model.phonenumbers.mobile.DialableMobileNumber; import org.mxchange.jphone.model.phonenumbers.mobile.MobileSessionBeanRemote; @@ -153,7 +153,7 @@ public class FinancialsMobileListWebViewBean extends BaseFinancialsBean implemen *

* @param event Event being fired */ - public void afterAdminDeletedMobileNumberEvent (@Observes final AdminDeletedMobileNumberEvent event) { + public void afterAdminDeletedMobileNumberEvent (@Observes final ObservableAdminMobileNumberDeletedEvent event) { // Event and contained entity instance should not be null if (null == event) { // Throw NPE @@ -252,7 +252,7 @@ public class FinancialsMobileListWebViewBean extends BaseFinancialsBean implemen *

* @param event Event being fired */ - public void afterAdminUpdatedMobileNumberEvent (@Observes final AdminUpdatedMobileNumberEvent event) { + public void afterAdminUpdatedMobileNumberEvent (@Observes final ObservableAdminMobileNumberUpdatedEvent event) { // Event and contained entity instance should not be null if (null == event) { // Throw NPE diff --git a/src/java/org/mxchange/jfinancials/beans/mobileprovider/FinancialsAdminMobileProviderWebRequestBean.java b/src/java/org/mxchange/jfinancials/beans/mobileprovider/FinancialsAdminMobileProviderWebRequestBean.java index 241cf412..c48edac9 100644 --- a/src/java/org/mxchange/jfinancials/beans/mobileprovider/FinancialsAdminMobileProviderWebRequestBean.java +++ b/src/java/org/mxchange/jfinancials/beans/mobileprovider/FinancialsAdminMobileProviderWebRequestBean.java @@ -28,8 +28,8 @@ import javax.inject.Named; import org.mxchange.jcountry.model.data.Country; import org.mxchange.jfinancials.beans.BaseFinancialsBean; import org.mxchange.jfinancials.beans.mobileprovider.list.FinancialsMobileProviderListWebViewController; -import org.mxchange.jphone.events.mobileprovider.added.AdminAddedMobileProviderEvent; import org.mxchange.jphone.events.mobileprovider.added.AdminMobileProviderAddedEvent; +import org.mxchange.jphone.events.mobileprovider.added.ObservableAdminMobileProviderAddedEvent; import org.mxchange.jphone.exceptions.mobileprovider.MobileProviderAlreadyAddedException; import org.mxchange.jphone.model.phonenumbers.mobileprovider.AdminMobileProviderSessionBeanRemote; import org.mxchange.jphone.model.phonenumbers.mobileprovider.CellphoneProvider; @@ -66,7 +66,7 @@ public class FinancialsAdminMobileProviderWebRequestBean extends BaseFinancialsB */ @Inject @Any - private Event providerAddedEvent; + private Event providerAddedEvent; /** * Country instance ('s dial data) diff --git a/src/java/org/mxchange/jfinancials/beans/mobileprovider/list/FinancialsMobileProviderListWebViewBean.java b/src/java/org/mxchange/jfinancials/beans/mobileprovider/list/FinancialsMobileProviderListWebViewBean.java index 4b3b054b..7f29a723 100644 --- a/src/java/org/mxchange/jfinancials/beans/mobileprovider/list/FinancialsMobileProviderListWebViewBean.java +++ b/src/java/org/mxchange/jfinancials/beans/mobileprovider/list/FinancialsMobileProviderListWebViewBean.java @@ -29,7 +29,7 @@ import javax.faces.view.ViewScoped; import javax.inject.Inject; import javax.inject.Named; import org.mxchange.jfinancials.beans.BaseFinancialsBean; -import org.mxchange.jphone.events.mobileprovider.added.AdminAddedMobileProviderEvent; +import org.mxchange.jphone.events.mobileprovider.added.ObservableAdminMobileProviderAddedEvent; import org.mxchange.jphone.exceptions.mobileprovider.MobileProviderNotFoundException; import org.mxchange.jphone.model.phonenumbers.mobileprovider.MobileProvider; import org.mxchange.jphone.model.phonenumbers.mobileprovider.MobileProviderSingletonBeanRemote; @@ -93,7 +93,7 @@ public class FinancialsMobileProviderListWebViewBean extends BaseFinancialsBean *

* @param event Event being fired */ - public void afterAdminAddedMobileProviderEvent (@Observes final AdminAddedMobileProviderEvent event) { + public void afterAdminAddedMobileProviderEvent (@Observes final ObservableAdminMobileProviderAddedEvent event) { // Is all valid? if (null == event) { // Throw NPE diff --git a/src/java/org/mxchange/jfinancials/beans/phone/FinancialsAdminPhoneWebRequestBean.java b/src/java/org/mxchange/jfinancials/beans/phone/FinancialsAdminPhoneWebRequestBean.java index 94e0232f..588d1c6d 100644 --- a/src/java/org/mxchange/jfinancials/beans/phone/FinancialsAdminPhoneWebRequestBean.java +++ b/src/java/org/mxchange/jfinancials/beans/phone/FinancialsAdminPhoneWebRequestBean.java @@ -32,20 +32,20 @@ import org.mxchange.jcountry.model.data.Country; import org.mxchange.jfinancials.beans.BaseFinancialsBean; import org.mxchange.jfinancials.beans.phone.list.FinancialsPhoneListWebViewController; import org.mxchange.jphone.events.fax.created.ObservableCreatedFaxNumberEvent; -import org.mxchange.jphone.events.fax.deleted.AdminDeletedFaxNumberEvent; import org.mxchange.jphone.events.fax.deleted.AdminFaxNumberDeletedEvent; +import org.mxchange.jphone.events.fax.deleted.ObservableAdminFaxNumberDeletedEvent; import org.mxchange.jphone.events.fax.removed.AdminFaxNumberRemovedFromListEvent; -import org.mxchange.jphone.events.fax.removed.AdminRemoveFaxNumberFromListEvent; +import org.mxchange.jphone.events.fax.removed.ObservableAdminFaxNumberRemovedFromListEvent; import org.mxchange.jphone.events.fax.updated.AdminFaxNumberUpdatedEvent; -import org.mxchange.jphone.events.fax.updated.AdminUpdatedFaxNumberEvent; +import org.mxchange.jphone.events.fax.updated.ObservableAdminFaxNumberUpdatedEvent; import org.mxchange.jphone.events.landline.created.ObservableCreatedLandLineNumberEvent; -import org.mxchange.jphone.events.landline.deleted.AdminDeletedLandLineNumberEvent; import org.mxchange.jphone.events.landline.deleted.AdminLandLineNumberDeletedEvent; +import org.mxchange.jphone.events.landline.deleted.ObservableAdminLandLineNumberDeletedEvent; import org.mxchange.jphone.events.landline.removed.AdminLandLineNumberRemovedFromListEvent; -import org.mxchange.jphone.events.landline.removed.AdminRemoveLandLineNumberFromListEvent; +import org.mxchange.jphone.events.landline.removed.ObservableAdminLandLineNumberRemovedFromListEvent; import org.mxchange.jphone.events.landline.updated.AdminLandLineNumberUpdatedEvent; -import org.mxchange.jphone.events.landline.updated.AdminUpdatedLandLineNumberEvent; -import org.mxchange.jphone.events.mobile.remove.AdminRemoveMobileNumberFromListEvent; +import org.mxchange.jphone.events.landline.updated.ObservableAdminLandLineNumberUpdatedEvent; +import org.mxchange.jphone.events.mobile.remove.ObservableAdminMobileNumberRemovedFromListEvent; import org.mxchange.jphone.model.phonenumbers.fax.DialableFaxNumber; import org.mxchange.jphone.model.phonenumbers.fax.FaxNumber; import org.mxchange.jphone.model.phonenumbers.landline.DialableLandLineNumber; @@ -83,14 +83,14 @@ public class FinancialsAdminPhoneWebRequestBean extends BaseFinancialsBean imple */ @Inject @Any - private Event faxNumberDeletedEvent; + private Event faxNumberDeletedEvent; /** * Event being fired when an administrator has updated fax number */ @Inject @Any - private Event faxNumberUpdatedEvent; + private Event faxNumberUpdatedEvent; /** * land-line number @@ -102,14 +102,14 @@ public class FinancialsAdminPhoneWebRequestBean extends BaseFinancialsBean imple */ @Inject @Any - private Event landLineNumberDeletedEvent; + private Event landLineNumberDeletedEvent; /** * Event being fired when an administrator has updated fax number */ @Inject @Any - private Event landLineNumberUpdatedEvent; + private Event landLineNumberUpdatedEvent; /** * Mobile provider instance @@ -157,7 +157,7 @@ public class FinancialsAdminPhoneWebRequestBean extends BaseFinancialsBean imple */ @Inject @Any - private Event removeLinkedFaxNumbersEvent; + private Event removeLinkedFaxNumbersEvent; /** * Event being fired when a list of all unsed land-line numbers is being @@ -165,7 +165,7 @@ public class FinancialsAdminPhoneWebRequestBean extends BaseFinancialsBean imple */ @Inject @Any - private Event removeLinkedLandLineNumbersEvent; + private Event removeLinkedLandLineNumbersEvent; /** * Event being fired when a list of all unsed mobile numbers is being @@ -173,7 +173,7 @@ public class FinancialsAdminPhoneWebRequestBean extends BaseFinancialsBean imple */ @Inject @Any - private Event removeLinkedMobileNumbersEvent; + private Event removeLinkedMobileNumbersEvent; /** * Default constructor diff --git a/src/java/org/mxchange/jfinancials/beans/phone/list/FinancialsPhoneListWebViewBean.java b/src/java/org/mxchange/jfinancials/beans/phone/list/FinancialsPhoneListWebViewBean.java index 23160e93..b7c8a70e 100644 --- a/src/java/org/mxchange/jfinancials/beans/phone/list/FinancialsPhoneListWebViewBean.java +++ b/src/java/org/mxchange/jfinancials/beans/phone/list/FinancialsPhoneListWebViewBean.java @@ -36,10 +36,10 @@ import org.mxchange.jcontacts.events.fax.linked.ObservableAdminLinkedFaxNumberEv import org.mxchange.jcontacts.events.landline.linked.ObservableAdminLinkedLandLineNumberEvent; import org.mxchange.jcontacts.model.contact.Contact; import org.mxchange.jfinancials.beans.BaseFinancialsBean; -import org.mxchange.jphone.events.fax.deleted.AdminDeletedFaxNumberEvent; -import org.mxchange.jphone.events.fax.updated.AdminUpdatedFaxNumberEvent; -import org.mxchange.jphone.events.landline.deleted.AdminDeletedLandLineNumberEvent; -import org.mxchange.jphone.events.landline.updated.AdminUpdatedLandLineNumberEvent; +import org.mxchange.jphone.events.fax.deleted.ObservableAdminFaxNumberDeletedEvent; +import org.mxchange.jphone.events.fax.updated.ObservableAdminFaxNumberUpdatedEvent; +import org.mxchange.jphone.events.landline.deleted.ObservableAdminLandLineNumberDeletedEvent; +import org.mxchange.jphone.events.landline.updated.ObservableAdminLandLineNumberUpdatedEvent; import org.mxchange.jphone.exceptions.phone.PhoneEntityNotFoundException; import org.mxchange.jphone.model.phonenumbers.fax.DialableFaxNumber; import org.mxchange.jphone.model.phonenumbers.landline.DialableLandLineNumber; @@ -146,7 +146,7 @@ public class FinancialsPhoneListWebViewBean extends BaseFinancialsBean implement *

* @param event Event being fired */ - public void afterAdminDeletedFaxNumberEvent (@Observes final AdminDeletedFaxNumberEvent event) { + public void afterAdminDeletedFaxNumberEvent (@Observes final ObservableAdminFaxNumberDeletedEvent event) { // Event and contained entity instance should not be null if (null == event) { // Throw NPE @@ -175,7 +175,7 @@ public class FinancialsPhoneListWebViewBean extends BaseFinancialsBean implement *

* @param event Event being fired */ - public void afterAdminDeletedLandLineNumberEvent (@Observes final AdminDeletedLandLineNumberEvent event) { + public void afterAdminDeletedLandLineNumberEvent (@Observes final ObservableAdminLandLineNumberDeletedEvent event) { // Event and contained entity instance should not be null if (null == event) { // Throw NPE @@ -315,7 +315,7 @@ public class FinancialsPhoneListWebViewBean extends BaseFinancialsBean implement *

* @param event Event being fired */ - public void afterAdminUpdatedFaxNumberEvent (@Observes final AdminUpdatedFaxNumberEvent event) { + public void afterAdminUpdatedFaxNumberEvent (@Observes final ObservableAdminFaxNumberUpdatedEvent event) { // Event and contained entity instance should not be null if (null == event) { // Throw NPE @@ -344,7 +344,7 @@ public class FinancialsPhoneListWebViewBean extends BaseFinancialsBean implement *

* @param event Event being fired */ - public void afterAdminUpdatedLandLineNumberEvent (@Observes final AdminUpdatedLandLineNumberEvent event) { + public void afterAdminUpdatedLandLineNumberEvent (@Observes final ObservableAdminLandLineNumberUpdatedEvent event) { // Event and contained entity instance should not be null if (null == event) { // Throw NPE -- 2.39.5