Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Custom AttachmentManagement?

Rudolpho Gugliotta
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 13, 2011

Hi,

i need to connect confluence to a jackrabbit jcr. all attachments should be uploaded in there. things like the confluence search should work as ussual.. i got a webservice running which provides interface to up / download and all the things i need to store and read data.

the main problem is, how to tell confluence to use this as its standard repository. i looked into the core sources, does somebody have experience with overloading the attachmentmanager? how would you start on this problem?

regards

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Colin Goudie
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 13, 2011

I've done this (and still in the middle of it in some ways) so happy to discuss with you. Confluence doesn't support this out of the box so you will need to modify a spring configuration file (attachmentSubsystemContext.xml) and supply some custom classes that will reside in WEB-INF/lib

One thing to think about is whether you are happy to have the attachment metadata still stored in Confluence or not. This means that only the actual data is stored elsewhere.

This can make it easier as less to implement I found. It involves then just providing a custom AttachmentDataDao (in our case, NonTransactionalAttachmentDataDao) implementor that will go off to your other repository to fetch/modify/delete the data. As Confluence doesn't know this, then all indexing/metadata access works as before.

Of course, you will need to consider the cases where the remote repository isn't available etc..

Sort of quick answer here, but happy to elaborate

TAGS
AUG Leaders

Atlassian Community Events