On Wed, Mar 24, 2010 at 19:21, Thomas Mortagne <[email protected]> wrote:
On Wed, Mar 24, 2010 at 19:08, Vincent Massol <[email protected]> wrote:
On Mar 24, 2010, at 7:02 PM, Thomas Mortagne wrote:
Hi devs,
Currently it's not really possible to know that a wiki as been deleted (there is possible hack based on wiki descriptor but it's not more than a hack).
The direct issue with that is that anyone having a document based cache can't update it. One good example is Lucene, if you delete a wiki you will still have the related page in the Lucene index. It also means in a cluster that other instances will not know a wiki has been deleted and you can still find pages of this wiki in the documents cache of the other instances.
I propose to create a WikiCreatedEvent (to be consistent, and we could use that to do some wiki initialization tasks) and WikiDeletedEvent events.
WDYT ?
Here is my +1.
It makes sense to me if we consider that the notion of Wikis is part of the model. Right now it's not really part of the model but in the future it will be (at least I've put it in the new model).
Well there is no Wiki object in the model but the wiki do exists even empty, it's not the same as space.
So +1 from me.
Thanks -Vincent
PS: Same for Spaces creation/deletion/updates in the future.
Note that the code i have right now is: WikiDeletedEvent extends AbstractWikiEvent extends AbstractEntityEvent
The related jira issue is http://jira.xwiki.org/jira/browse/XWIKI-3966
-- Thomas Mortagne
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
-- Thomas Mortagne