***SPAM*** [opencms-dev] how to publish files by using API
Ruben Malchow
ruben at khm.de
Fri Aug 18 10:15:36 CEST 2006
hi srinivas,
i think you need to look at CmsObject.publishResource():
public CmsUUID publishResource(
java.lang.String resourcename,
boolean publishSiblings,
I_CmsReport report) throws java.lang.Exception
Publishes a single resource.
Parameters:
resourcename - the name of the resource to be published
publishSiblings - if true, all siblings of the resource are
also published
report - the report to write the progress information to
Returns:
the publish history id of the published project
Throws:
java.lang.Exception - if something goes wrong
vasu dodda schrieb:
> Hi Everybody,
>
> Does anyone know how to publish files using API. I want to store the file which is of xml type let's say I created a file in sameway that OpenCms creates using its editor.
>
> I want to store the my xml file in opencms database(for this I do not want to use publish button, I should able to do using API), next time when I open OpenCms browser I would able to see my file in my project folder.
>
> It is a great help, if some one can take this credit off.
>
> Thanks in Advance
> Srinivas
>
>
>
>
>
> _________________________________________________________________
> Try Live.com: where your online world comes together - with news, sports, weather, and much more.
> http://www.live.com/getstarted
>
>
> ------------------------------------------------------------------------
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
More information about the opencms-dev
mailing list