[opencms-dev] How to publish deleted resource with the API
Olli Aro
olli_aro at yahoo.co.uk
Mon Oct 11 10:42:31 CEST 2004
Thanks Thomas,
I assume this is for version 6 API, since cannot find
cmsObject.deleteResource(userFolder,
I_CmsConstants.C_DELETE_OPTION_DELETE_SIBLINGS ) in version 5 javaDoc.
Would you know how to do this in version 5?
Regards,
Olli
-----Original Message-----
From: Thomas Mdrz [mailto:thomasmaerz at gmx.de]
Sent: 11 October 2004 09:21
To: olli_aro at yahoo.co.uk
Cc: The OpenCms mailing list
Subject: Re: [opencms-dev] How to publish deleted resource with the API
"Olli Aro" <olli_aro at yahoo.co.uk> writes:
> Would anyone be able to tell me what the correct procedure is?
| cmsObject.lockResource( userFolder );
| cmsObject.deleteResource( userFolder,
I_CmsConstants.C_DELETE_OPTION_DELETE_SIBLINGS );
| cmsObject.unlockResource( userFolder );
| cmsObject.publishResource( userFolder );
Works for me.
HTH,
Thomas
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.772 / Virus Database: 519 - Release Date: 01/10/2004
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.772 / Virus Database: 519 - Release Date: 01/10/2004
More information about the opencms-dev
mailing list