[Yanel-dev] Adding a node to the sitetree

Michael Wechner michael.wechner at wyona.com
Tue Jul 1 16:40:30 CEST 2008


simon litwan wrote:

> Michael Wechner schrieb:
>
>> Hi
>>
>> It's not clear to me which component is responsible to add new 
>> resources to the sitetree/topicmap of a realm.
>>
>> Is it the resource itself or the adapter using the interfaces of the 
>> resource.
>>
>> The adapter would be convenient, because one doesn't have to 
>> implement it then for each resource, whereas I could imagine that 
>> some resources don't want to be added to the sitetree/topicmap.
>
> After thinking a bit i would say the adapter should be responsible. 
> this way one can implement another adapter if  some/no resource should 
> be added to the sitetree.


this is how it is currently done

src/contributions/resources/resource-creator/src/java/org/wyona/yanel/impl/resources/ResourceCreatorResource.java

(see addToSitetree method)

Cheers

Michi

>
> simon
>
>>
>> WDYT?
>>
>> Thanks
>>
>> Michi
>>
>
> _______________________________________________
> Yanel-development mailing list
> Yanel-development at wyona.com
> http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development



-- 
Michael Wechner
Wyona      -   Open Source Content Management - Yanel, Yulup
http://www.wyona.com
michael.wechner at wyona.com, michi at apache.org
+41 44 272 91 61



More information about the Yanel-development mailing list