RE: WebdavResource putMethod InputStream as parameter

2006-04-13 Thread Miguel Figueiredo

Hello Jimi,

 Here is a code snippet, which I'm using with success, which uses a put
method relying on an input stream:

WebdavResource source = WebdavUtils.setupWebdavConnection(sourceLocation);
WebdavResource target = WebdavUtils.setupWebdavConnection(targetLocation);

InputStream is = source.getMethodData();
sucess = target.putMethod(is);

is.close();
source.close();
target.close();


The setupWebdavConnection is just a helper method that sets up the web proxy
and username/password information on a WebdavResource instance.

Hope this helps,
Miguel Figueiredo

-Original Message-
From: Jimi Dawlton [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 12 de Abril de 2006 21:45
To: slide-user@jakarta.apache.org
Subject: WebdavResource putMethod InputStream as parameter

hi,

i was wondering if anyone has successfully managed to upload a file using 
the putMethod with the InputStream as the parameter, (of the client)?

i have been trying to use:

putMethod(java.lang.String path, java.io.InputStream is)

but when i pass an inputstream, e.g:

N.B. (i've only shown an extract):

String filename = test.txt;
File f = new File(C:/ + filename);
InputStream inputStream = new FileInputStream(f);
webdavResource.putMethod(serverPath, inputStream);


i get the exception:

java.net.SocketException: Software caused connection abort: recv failed

am i using the method incorrectly or do i need to setup some sort of 
bufferedReader of file bufferedReader???


dawlton.


Disclaimer: My advice comes as is, without any guarantee. Use it at your 
discretion. I cannot be held responsible for your actions.

_
Are you using the latest version of MSN Messenger? Download MSN Messenger 
7.5 today! http://join.msn.com/messenger/overview


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Integrating Slide with a Java Desktop Client

2006-04-13 Thread Vijesh A.V.

Hi all,

Please note that I am new to CMS.

Right now doing RD for finding out a good Java based open source CMS
solution, hence I came across Apache Slide.

Our Desktop client is done is Java Swing which is using a J2EE server
and Oracle database.

Can I integrate Slide with our Swing client? Where in the published
documents should get displayed in the client application window (or a
child frame).

By integration, what I meant is: the ability to bypass login to reach
published content, editing them, implementing permissions from the ACL
exists in the main application (using our security details), having the
view/edit functionality in the same interface based on the permissions,
search functionality etc.

Hope I was clear enough.


Regards,
Vijesh







RE: Integrating Slide with a Java Desktop Client

2006-04-13 Thread Sven Pfeiffer
Hi,

Can I integrate Slide with our Swing client? Where in the published
documents should get displayed in the client application window (or a
child frame).

You can integrate access to Slide into (almost) any java client, so yes.

Myself I have developed a webbased and a swing-based client in which users
can upload, download and remove documents (part of the documents are
version-controlled others are not),create and delete folders, edit text
documents and assign ACLs to the documents and to the folders (of course if
they have permissions).

The slide server is integrated in a server application which also controls
the authentication, authorisation is left to slides acls.

So I guess the short answer to what I understand you want to is YES, it is
possible.

I can't say much about searching in slide, because I am not using it, but
this is possible using DASL.

hth

SVen

-Original Message-
From: Vijesh A.V. [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 13, 2006 5:01 PM
To: slide-user@jakarta.apache.org
Subject: Integrating Slide with a Java Desktop Client


Hi all,

Please note that I am new to CMS.

Right now doing RD for finding out a good Java based open source CMS
solution, hence I came across Apache Slide.

Our Desktop client is done is Java Swing which is using a J2EE server
and Oracle database.

Can I integrate Slide with our Swing client? Where in the published
documents should get displayed in the client application window (or a
child frame).

By integration, what I meant is: the ability to bypass login to reach
published content, editing them, implementing permissions from the ACL
exists in the main application (using our security details), having the
view/edit functionality in the same interface based on the permissions,
search functionality etc.

Hope I was clear enough.


Regards,
Vijesh








-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Integrating Slide with a Java Desktop Client

2006-04-13 Thread Vijesh A.V.

Thanks Sven,

Yes, you understood my requirement correctly. And I am glad to know that
it is possible to do so in Slide.

Like your application, ours also has both web based and swing-based
clients (the main one is swing).

What we are going to implement is a Customer Information System for our
business, where in we do have Instructions and Guidelines for our
various business processes. So evidently it is just small part of our
application. 

Can you give me some guidance for integrating slide with my swing-based
client. i.e. the specific APIs you have used. Any documentation
available in this regard.

I haven't started installing the Slide distribution. I wanted to make
sure whether it is suitable or not.

Any input which would help me get started will be highly appreciated.

Thank you very much

-Original Message-
From: Sven Pfeiffer [mailto:[EMAIL PROTECTED] 
Sent: 13 April 2006 19:24
To: 'Slide Users Mailing List'
Subject: RE: Integrating Slide with a Java Desktop Client

Hi,

Can I integrate Slide with our Swing client? Where in the published 
documents should get displayed in the client application window (or a 
child frame).

You can integrate access to Slide into (almost) any java client, so yes.

Myself I have developed a webbased and a swing-based client in which
users can upload, download and remove documents (part of the documents
are version-controlled others are not),create and delete folders, edit
text documents and assign ACLs to the documents and to the folders (of
course if they have permissions).

The slide server is integrated in a server application which also
controls the authentication, authorisation is left to slides acls.

So I guess the short answer to what I understand you want to is YES, it
is possible.

I can't say much about searching in slide, because I am not using it,
but this is possible using DASL.

hth

SVen

-Original Message-
From: Vijesh A.V. [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 13, 2006 5:01 PM
To: slide-user@jakarta.apache.org
Subject: Integrating Slide with a Java Desktop Client


Hi all,

Please note that I am new to CMS.

Right now doing RD for finding out a good Java based open source CMS 
solution, hence I came across Apache Slide.

Our Desktop client is done is Java Swing which is using a J2EE server 
and Oracle database.

Can I integrate Slide with our Swing client? Where in the published 
documents should get displayed in the client application window (or a 
child frame).

By integration, what I meant is: the ability to bypass login to reach 
published content, editing them, implementing permissions from the ACL 
exists in the main application (using our security details), having the

view/edit functionality in the same interface based on the permissions,

search functionality etc.

Hope I was clear enough.


Regards,
Vijesh








-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



versioning

2006-04-13 Thread Mridu Rajkhowa
  
hi

i have implemented Versioning in slide from java application programe.That is i 
can put a file under version control during saving the part.But when i want to 
print the status of the file that is whether the file is under version control 
or not what method should i use.

thanx in advance.
mridu


RE: WebdavResource putMethod InputStream as parameter

2006-04-13 Thread Jimi Dawlton

thanks for the reply Miguel,

i managed to upload the file in the end by passing a File object in the 
parameter instead, like so:


String filename = test.txt;
File file = new File(C:/ + filename);
webdavResource.putMethod(serverPath, file);

this has worked successfully, and i'm not sure why the other way didn't 
work, since both methods are quite similar.


i'll keep in mind your method if i need to use it in the future though,

thanks,

dawlton.




From: Miguel Figueiredo [EMAIL PROTECTED]
Reply-To: Slide Users Mailing List slide-user@jakarta.apache.org
To: 'Slide Users Mailing List' slide-user@jakarta.apache.org
Subject: RE: WebdavResource putMethod InputStream as parameter
Date: Thu, 13 Apr 2006 10:10:57 +0100


Hello Jimi,

 Here is a code snippet, which I'm using with success, which uses a put
method relying on an input stream:

WebdavResource source = WebdavUtils.setupWebdavConnection(sourceLocation);
WebdavResource target = WebdavUtils.setupWebdavConnection(targetLocation);

InputStream is = source.getMethodData();
sucess = target.putMethod(is);

is.close();
source.close();
target.close();


The setupWebdavConnection is just a helper method that sets up the web 
proxy

and username/password information on a WebdavResource instance.

Hope this helps,
Miguel Figueiredo

-Original Message-
From: Jimi Dawlton [mailto:[EMAIL PROTECTED]
Sent: quarta-feira, 12 de Abril de 2006 21:45
To: slide-user@jakarta.apache.org
Subject: WebdavResource putMethod InputStream as parameter

hi,

i was wondering if anyone has successfully managed to upload a file using
the putMethod with the InputStream as the parameter, (of the client)?

i have been trying to use:

putMethod(java.lang.String path, java.io.InputStream is)

but when i pass an inputstream, e.g:

N.B. (i've only shown an extract):

String filename = test.txt;
File f = new File(C:/ + filename);
InputStream inputStream = new FileInputStream(f);
webdavResource.putMethod(serverPath, inputStream);


i get the exception:

java.net.SocketException: Software caused connection abort: recv failed

am i using the method incorrectly or do i need to setup some sort of
bufferedReader of file bufferedReader???


dawlton.


Disclaimer: My advice comes as is, without any guarantee. Use it at your
discretion. I cannot be held responsible for your actions.


_
Are you using the latest version of MSN Messenger? Download MSN Messenger 
7.5 today! http://join.msn.com/messenger/overview



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



problems with integrating slide inside a webapp

2006-04-13 Thread Zhen Mingde
I have a web application that I want to integrate with WCK+Slide. I have 
modified the Domain.xml and web.xml files accordingly. I am using frames; in 
one frame, I provide links to open WebDav folders in another frame. The 
frame approach works insofar as I can see the folder contents, however, when 
I attempt to drag files into, rename, or delete files, I get a message 
saying the operation could not be completed. I have Tomcat 5.0.28 running in 
console mode, and I also have a debugger set; however, anytime I try to 
move, put, or delete, I noticed the WebdavFileStore is never called. I am 
wondering what I am doing wrong?


Is Slide meant to run only as a separate weapp or can it be integrated 
inside an existing webapp? If it can run inside an existing webapp, is 
anyone willing to provide some examples (i.e. Domain.xml and web.xml).


Thanks.

_
On the road to retirement? Check out MSN Life Events for advice on how to 
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]