[opencms-dev] touch all and publish

Alexander Kandzior alex at opencms.org
Mon Mar 28 16:49:26 CEST 2005


You could also have a look at the test cases, which certainly cover your use
case. 

For example in the files:

/opencms/test/org/opencms/file/TestTouch.java
/opencms/test/org/opencms/file/TestPublishing.java

Links to the CVS:

http://www.opencms.org/cvs/viewcvs.cgi/opencms/test/org/opencms/file/TestTou
ch.java?rev=HEAD&content-type=text/vnd.viewcvs-markup

http://www.opencms.org/cvs/viewcvs.cgi/opencms/test/org/opencms/file/TestPub
lishing.java?rev=HEAD&content-type=text/vnd.viewcvs-markup

Best Regards,
Alex.

Alexander Kandzior
Alkacon Software - The OpenCms Experts
http://www.alkacon.com

 

> -----Original Message-----
> From: opencms-dev-bounces at opencms.org 
> [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Frans Postma
> Sent: Monday, March 28, 2005 4:39 PM
> To: 'The OpenCms mailing list'
> Subject: RE: [opencms-dev] touch all and publish
> 
> 
> Sounds like making 'Publish Directly' available via jsp, you 
> don't need to touch the content for that (besides which, 
> publishing something again which hasn't changed doesn't sound 
> very usefull?). 
> 
> Look through 
> opencms\src\org\opencms\workplace\commons\CmsPublishProject.ja
> va on how opencms handles it's publish actions. You would 
> want to feed it a list from a 
> actionElement.getNavigation().getNavigationForFolder() or such.
> 
> Of course a user would need to be authorized properly in 
> order to be able to publish pages, i.e. logged in with 
> sufficient rights.
> 
> Frans
> 
> > -----Original Message-----
> > From: opencms-dev-bounces at opencms.org 
> > [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Tim
> > Sent: maandag 28 maart 2005 14:14
> > To: The OpenCms mailing list
> > Subject: [opencms-dev] touch all and publish
> > 
> > hi all,
> > 
> > i would like to build a jsp (or servlet) that does the following:
> > 
> > - touch all resources of the specified folder
> > - publish the content of specified folder
> > 
> > someone has an example to achieve this?
> > 
> > regards,
> > 
> > tim
> > 
> > (opencms v6b3)
> > 
> > 
> > _______________________________________________
> > This mail is send to you from the opencms-dev mailing list 
> To change 
> > your list options, or to unsubscribe from the list, please visit 
> > http://mail.opencms.org/mailman/listinfo/opencms-dev
> > 
> 
> 
> 
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, 
> please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
> 
> 




More information about the opencms-dev mailing list