You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by chengj <ch...@msn.com> on 2006/08/25 08:37:25 UTC
Slide server Api sample
Hi all,
I want to use SLIDE to store files. By the Architecture of SLIDE I
think I only need to invoke Server API of SLIDE, and don't need to use
WebDAV Servlet.
who can show me a sample of using Server API of SLIDE.
Thanks a lot.
chengj
2006/8/25
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Slide server Api sample
Posted by chengj <ch...@msn.com>.
Hi all,
I want to use SLIDE to store files. By the Architecture of SLIDE I
think I only need to invoke Server API of SLIDE, and don't need to use
WebDAV Servlet.
who can show me a sample of using Server API of SLIDE.
Thanks a lot.
chengj
2006/8/25
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org
Re: Slide server Api sample
Posted by chengj <ch...@msn.com>.
Thanks!
Do you have more samples for "save file" OR "set privilege" ....
chengj
2006/8/28
----- Original Message -----
From: "Rakesh Saha" <ra...@oracle.com>
To: "Slide Users Mailing List" <sl...@jakarta.apache.org>
Sent: Monday, August 28, 2006 2:54 AM
Subject: Re: Slide server Api sample
> Sample API to read file :
>
> NodeRevisionDescriptors revisionDescriptors =
> content.retrieve(slideToken, <file resourcePath>);
>
> if (revisionDescriptors.hasRevisions()) {
>
> // Retrieve latest revision descriptor
> NodeRevisionDescriptor revisionDescriptor =
> content.retrieve(slideToken, revisionDescriptors);
>
> if (revisionDescriptor != null) {
> InputStream slideStream = null;
> slideStream = content.retrieve(slideToken, revisionDescriptors,
> revisionDescriptor).streamContent();
> }
> }
>
> HTH.
>
> Thanks,
> Rakesh
>
> chengj wrote:
>>
>>
>> Hi all,
>> I want to use SLIDE to store files. By the Architecture of
>> SLIDE I think I only need to invoke Server API of SLIDE, and don't
>> need to use WebDAV Servlet.
>> who can show me a sample of using Server API of SLIDE.
>> Thanks a lot.
>>
>>
>>
>> chengj
>> 2006/8/25
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Re: Slide server Api sample
Posted by Rakesh Saha <ra...@oracle.com>.
Sample API to read file :
NodeRevisionDescriptors revisionDescriptors =
content.retrieve(slideToken, <file resourcePath>);
if (revisionDescriptors.hasRevisions()) {
// Retrieve latest revision descriptor
NodeRevisionDescriptor revisionDescriptor =
content.retrieve(slideToken, revisionDescriptors);
if (revisionDescriptor != null) {
InputStream slideStream = null;
slideStream = content.retrieve(slideToken, revisionDescriptors,
revisionDescriptor).streamContent();
}
}
HTH.
Thanks,
Rakesh
chengj wrote:
>
>
> Hi all,
> I want to use SLIDE to store files. By the Architecture of
> SLIDE I think I only need to invoke Server API of SLIDE, and don't
> need to use WebDAV Servlet.
> who can show me a sample of using Server API of SLIDE.
> Thanks a lot.
>
>
>
> chengj
> 2006/8/25
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Slide server Api sample
Posted by chengj <ch...@msn.com>.
Hi all,
I want to use SLIDE to store files. By the Architecture of SLIDE I
think I only need to invoke Server API of SLIDE, and don't need to use
WebDAV Servlet.
who can show me a sample of using Server API of SLIDE.
Thanks a lot.
chengj
2006/8/25
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org