Hi,

below you can find a portion of code that implements the feed of a container list:

container_list = jData.containers().getAbsoluteContainerList( "container_list",1);
while (hasData)
{
JahiaContainer test_container = new 
JahiaContainer(0,jParams.getJahiaID(),1,container_list.getID(),0,container_list.getAclID(),container_list.getctndefid(),0,2);
ServicesRegistry.getInstance().getJahiaContainersService().saveContainerInfo(test_container,container_list.getID(),
 container_list.getAclID(),jParams);
test_container.setLanguageCode("EN");
test_container.fieldsStructureCheck(jParams);
test_container.getField("field").setValue("data");
listener.notifyChange(test_container.getField("field").getID());
container_list.addContainer(test_container);
ServicesRegistry.getInstance().getJahiaContainersService().saveContainer(test_container,container_list.getID(),jParams);
}//end while

---------- Debut du message initial -----------

De     : "S�bastien LANDEAU" [EMAIL PROTECTED]
A      : [EMAIL PROTECTED]
Copies :
Date   : Wed, 25 Aug 2004 15:47:41 +0200
Objet  : Writing container data insertion module

> Hello,
>
>
> I'd like to know how to write a Java Module to process batch insert of data in a 
> container.
>
> For example, I have a page based on the "Directory People" template. For a specific 
> context, I have to import data in the directory people container from an external 
> database... Any advice or "cookbook" for that task  ?
>
> Thank's a lot ;-)
>
>
> 

Acc�dez au courrier �lectronique de La Poste : www.laposte.net ; 
3615 LAPOSTENET (0,34�/mn) ; t�l : 08 92 68 13 50 (0,34�/mn)



Reply via email to