The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
DPKJ
Community Champion
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 Champion
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.

TAGS
AUG Leaders

Atlassian Community Events