[opencms-dev] RE: CmsObject inside I_CmsEventListener

Francisco Fernandez Velasco frfv76 at yahoo.es
Wed Jul 6 15:53:43 CEST 2005


Finally I have used

cmsObject = OpenCms.initCmsObject(new
CmsDefaultUsers().getUserGuest());		
				cmsObject.loginUser("Admin", "admin");
//4=OFFLINE PROJECT
				cmsObject.getRequestContext().setCurrentProject(
cmsObject.readProject( 4 ) );

and works fine.

Then I have used CmsFile cmsFile = CmsFile.upgrade(
newResource, cmsObject ) for getting a CmsFile from
CmsResource

Thanks



		
______________________________________________ 
Renovamos el Correo Yahoo! 
Nuevos servicios, más seguridad 
http://correo.yahoo.es



More information about the opencms-dev mailing list