[opencms-dev] publish list

monguz monguz at gmail.com
Fri Nov 10 17:23:28 CET 2006


Hello there
I want to retrieve a list of resources that need to be published and
then publish them.

I tried to use CmsObject.getPublishList(), unsuccessfully.
I have some new/changed resources, but the following code...
<pre><%
	org.opencms.frontend.templateone.CmsTemplateBean cms = new
org.opencms.frontend.templateone.CmsTemplateBean(pageContext, request,
response);
	
	org.opencms.file.CmsObject o = cms.getCmsObject();
	org.opencms.db.CmsPublishList pl = o.getPublishList();
	
	out.println(pl);
	out.println(pl.getDeletedFolderList() 		);
	out.println(pl.getDirectPublishResources()	);
	out.println(pl.getFileList()			);
	out.println(pl.getFolderList() 			);
%></pre>
... prints...
[
publish of project: 4
publish history ID: 29d81997-70d3-11db-a2cd-a9c05597dbf8
resources: []
folders: []
]

[]
null
[]
[]


Should i fill the PublishList with
CmsDriverManager.fillPublishList(CmsDbContext, CmsPublishList) ?

I got lost in trying to construct a CmsDriverManager.
Someone could help?


I suppose that if I got the PublishList I can easily obtain CmsResources.
Is it a method to publish a resource ?


Thanks
ciao

Marco



More information about the opencms-dev mailing list