getNotificationManager deprecated

Jimmy Quinn January 9, 2020

getNotificationManager has been deprecated and is annotated as such in the java code but no alternative is offered. Is there an alternative or can the code that calls getNotificationManager be deleted?

1 answer

1 accepted

0 votes
Answer accepted
DPKJ
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 9, 2020

@Jimmy Quinn  Welcome to the community!

Can you please add some more details, like where you are trying to access this interface, and in what class/interface method named 'getNotificationManger' has been deprecated.

Jimmy Quinn January 10, 2020

It is used in a few places but is defined within PageManager.java. Here at Fujitsu, we control the access to pages for creation, amendment and deletion. We use plugins to control page manipulation. I have searched all the Atlassian code and it is deprecated everywhere it is used.

Like Lenin Raj likes this
DPKJ
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 10, 2020

Have you tried accessing it via ContainerManager (com.atlassian.spring.container.ContainerManager),

NotificationManager notificationManager = (NotificationManager) ContainerManager.getComponent("notificationManager");

Like Jimmy Quinn likes this
Jimmy Quinn January 10, 2020

I will try this.

Thank you very much.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events