I am writing some back-end code for our confluence plug-in that requires PageManager and AttachmentManager objects (we are adding attachments to pages). My code does not live in a page, nor is it associated with a page. So, how can I go about getting these objects from outside of a page?
Community moderators have prevented the ability to post new answers.
I found the answer:
PageManager pageManager = (PageManager) ContainerManager.getComponent("pageManager");
I have no prior experience with Spring, so this was throwing me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.