You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by Greg Kable <gr...@jspwiki.arbler.com> on 2009/04/30 12:39:48 UTC
What is the replacement for WikiEngine.getAttachmentManager()?
It's deprecated but there is no comment saying why or what should be
used in its place.
Thanks,
Greg
Re: What is the replacement for WikiEngine.getAttachmentManager()?
Posted by Janne Jalkanen <ja...@ecyrd.com>.
Actually, simple refactoring is still fine, because that helps us when
we're getting rid of deprecated classes. Wouldn't spend too much time
on them though; just fix what is obvious.
/Janne
On 1 May 2009, at 02:20, Greg Kable wrote:
> Thanks. I was asking because I came across calls to the deprecated
> APIs and I would have fixed them has I been able to. Since I don't
> know enough about what's happening here, I'll just leave them for
> later.
>
> Greg
>
> Janne Jalkanen wrote:
>> To explain a bit more (now that I've got a bit more time):
>> Attachments are becoming just regular WikiPages, with the
>> difference that they 1) always have a wikipage as a parent, and 2)
>> they've got an non-jspwiki MIME type. This also means that the
>> main class for handling them should be ContentManager, though it's
>> possible that AttachmentManager will become a helper class for
>> managing only the attachments. But the basic CRUD operations
>> should be done through ContentManager.
>> /Janne
Re: What is the replacement for WikiEngine.getAttachmentManager()?
Posted by Greg Kable <gr...@serapsys.com>.
Thanks. I was asking because I came across calls to the deprecated APIs
and I would have fixed them has I been able to. Since I don't know
enough about what's happening here, I'll just leave them for later.
Greg
Janne Jalkanen wrote:
>
> To explain a bit more (now that I've got a bit more time): Attachments
> are becoming just regular WikiPages, with the difference that they 1)
> always have a wikipage as a parent, and 2) they've got an non-jspwiki
> MIME type. This also means that the main class for handling them should
> be ContentManager, though it's possible that AttachmentManager will
> become a helper class for managing only the attachments. But the basic
> CRUD operations should be done through ContentManager.
>
> /Janne
Re: What is the replacement for WikiEngine.getAttachmentManager()?
Posted by Janne Jalkanen <ja...@ecyrd.com>.
To explain a bit more (now that I've got a bit more time): Attachments
are becoming just regular WikiPages, with the difference that they 1)
always have a wikipage as a parent, and 2) they've got an non-jspwiki
MIME type. This also means that the main class for handling them
should be ContentManager, though it's possible that AttachmentManager
will become a helper class for managing only the attachments. But the
basic CRUD operations should be done through ContentManager.
/Janne
On 30 Apr 2009, at 17:22, Janne Jalkanen wrote:
>
> All attachments are handled through ContentManager().
>
> /Janne
>
> On 30 Apr 2009, at 13:39, Greg Kable wrote:
>
>> It's deprecated but there is no comment saying why or what should
>> be used in its place.
>>
>> Thanks,
>> Greg
Re: What is the replacement for WikiEngine.getAttachmentManager()?
Posted by Janne Jalkanen <ja...@ecyrd.com>.
All attachments are handled through ContentManager().
/Janne
On 30 Apr 2009, at 13:39, Greg Kable wrote:
> It's deprecated but there is no comment saying why or what should be
> used in its place.
>
> Thanks,
> Greg