cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to send notification (Success) after an object is created in BackOffice

chun18
Explorer
0 Kudos
469

I have a custom button on wizard, I want to use NavigationService to notify user when an object is created successfully in BackOffice. However, this class is deprecated. It suggests to use com.hybris.cockpitng.util.notifications.Navigation, but the implementation DefaultNavigationService doesn't have any method. Does anyone have any suggestion how to do it?

Accepted Solutions (1)

Accepted Solutions (1)

andyfletcher
Active Contributor

They're just telling you not to use that deprecated interface in your code. Use the one from the `com.hybris.cockpitng` package instead. The cockpitng implementation extends the deprecated backoffice one so the methods are available to you use.

At some point in the future they'll remove the interface and implementation from the `com.hybris.backoffice` package and copy the methods to the new interface instead and because you've already switched over it'll all happen seamlessly🤞. If you don't change the use of the deprecated interface now then when it is removed you'll get compilation failures and have to switch to the interface in the updated package then instead.

chun18
Explorer
0 Kudos
oh interesting. Thank you! I thought they have a new way to do it, and it doesn't use NotificationService anymore since I didn't see any method in the new package `com.hybris.cockpitng`. Thank you so much!

Answers (0)