Re: best way to implement searching

2004-08-26 Thread Juan Andrés Bentancour
http-client and searchmethod it is the easiest way,  you only need to create
an XML query (DASL www.webdav.org/dasl) and send it to Slide. But I had many
problems when trying to search for Date or Integer metadata values.

Regards,

 - Original Message - 
From: Stefan Burkard [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 26, 2004 10:26 AM
Subject: best way to implement searching


 hello slide-users

 i'm using slide as a document-repository - 'til now i implemented a
 small java-app to import and manage documents in the repository. i've
 done this with the webdav-client-api of slide and this works fine.

 second part is to provide a search-engine on a website (runs on the same
 box).

 1. visitors enter a search term in a html-form
 2. get a list of all matching documents in the repository (the search
 term has to match in one of about three fields of metadata)
 3. a click on a document-link downloads the file out of the repository

 what's the best way to do something like this? should i use a
 http-client and searchmethod? or is it easier to use the slide-api
 serverside? i even see there is something named projector that
 provides web-access to the repository?

 thanks and greetings
 stefan


 -
 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]



Searching problem.

2004-08-17 Thread Juan Andrés Bentancour
For days, I have been trying to understand how to do a search based on an integer 
value. I have some questions:
Slide always perform string comparisons?
Is it Dav:typed-literal element supported ? 
http://greenbytes.de/tech/webdav/draft-reschke-webdav-search-latest.html#rfc.section.5.11


This query must retrieves the displayname for all resources located under the server's 
slide/archivos/Destinos/formularios URI namespace whose length exceeds 9 bytes. The 
result was empty, however, there were 2 resources with more than 1,000,000 bytes.
I´ve been doing more test and I realize that Slide always perform string comparisons 
for getcontentlength property.

D:searchRequest xmlns:D=DAV:
D:basicSearch
D:select
D:prop
D:displayname /
/D:prop
/D:select
D:from
D:scope
D:href/slide/archivos/Destinos/formularios/D:href
D:depthinfinity/D:depth
/D:scope
/D:from
D:where
D:gt
D:prop
D:getcontentlength /
/D:prop
D:literal9/D:literal
/D:gt
/D:where
/D:basicSearch
/D:searchRequest

I´m using Slide 2.1b1 from CVS, TxFileContentStore and PostgresSQL.

Please help me !!

Regards,

--
Juan Andrés Bentancour


Search responses %20 character

2004-07-05 Thread Juan Andrés Bentancour
Hi all,

When I do a search request, all response who has a blank character on
server,  appear with %20 character

PUT Method server log:
13:45:25,800 INFO [STDOUT] Thread-48, 05-jul-2004 13:45:25, nico, PUT, 201
Created, 344 ms, /archivos/Destinos/home/nico/To the base provided by HTTP
and WebDAV.doc


my Search method log:

setClient();
SearchMethod sm = new SearchMethod(httpURL.getEscapedPath(), consultaXML);
super.client.executeMethod(sm);
Enumeration responsesUrls = sm.getAllResponseURLs();

return:
/slide/archivos/Destinos/home/nico/To%20the%20base%20provided%20by%20HTTP%20
and%20WebDAV.doc

XML query:
D:searchRequest xmlns:D=DAV:
D:basicSearch
D:select
D:allprop /
/D:select
D:from
D:scope
D:href/slide/archivos/Destinos/home/nico/D:href
D:depthinfinity/D:depth
/D:scope
/D:from
/D:basicSearch
/D:searchRequest

Is it posible to fix that ? or may be it is OK

I have problems with encodings, I need to use ISO-8859-1 for characters
like:  á é í ó ú ñ
# URL Encoding
# Default: platform default encoding=ISO-8859-1

This is server log when I put Integración de Slide a  Jboss.doc file.

14:01:16,466 INFO [STDOUT] 05 Jul 2004 14:01:16 -
org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter - INFO -
/archivos/Destinos/home/nico/Integraci�n de Slide a Jboss.doc1.0
14:01:16,512 INFO [STDOUT] 05 Jul 2004 14:01:16 -
org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter - INFO -
/archivos/Destinos/home/nico/Integraci�n de Slide a Jboss.doc1.0
14:01:16,528 INFO [STDOUT] Thread-7, 05-jul-2004 14:01:16, nico, PUT, 201
Created, 281 ms, /archivos/Destinos/home/nico/Integraci�n de Slide a
Jboss.doc

In table URI ( Postgres DB ):
/archivos/Destinos/home/nico/Integraci�n de Slide a  Jboss.doc

Any Help would be appreciated !!!

thanks,

Juan Andrés.






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



Re: Updating properties

2004-07-02 Thread Juan Andrés Bentancour

try setting namespace and depth parameter in propFind and propPatch.


- Original Message - 
From: r d [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 02, 2004 10:04 AM
Subject: Updating properties


 Hi,

 I was trying to set client (dead) properties.
 I could set property by proppatch method bu when I do a propfind, I do not
get the value back as expected.
 ===
 res.proppatchMethod(appstatus,new,true)
 e=res.propfindMethod(appstatus);
 

 I could see the property set from commandline propgetall.
 I could not get the property when I did a command line prop get.
 What is the issue here?

 Thanks,
 rd.





 -
 Do you Yahoo!?
 New and Improved Yahoo! Mail - Send 10MB messages!


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



Re: password in Domain.xml

2004-05-03 Thread Juan Andrés Bentancour

- Original Message -
From: Olivier CAUSSE [EMAIL PROTECTED]
To: 'Slide Users Mailing List' [EMAIL PROTECTED]
Sent: Monday, May 03, 2004 6:05 AM
Subject: RE: password in Domain.xml


Hi,

Thanks to Oliver Zeigermann, on my install (XP, Tomcat 5.0.19), the solution
was :
A) to update Domain.xml like this :
objectnode classname=org.apache.slide.structure.SubjectNode
uri=/users/root
revision
property namespace=http://jakarta.apache.org/slide/;
name=passwordany_password_you_want/property
/revision
/objectnode

B)To stop Tomcat, and remove the directory %CATALINA_HOME%\bin\store
as Oliver Zeigermann suggested.

BTW : After I posted my question to this list, I found this info  written
somewhere in the documentation, but I can't remember where... ;-)

PS :
ps - in Oliver's reply, uri=/conf/users/root is incorrect. Should be
ps uri=/users/root.

you can use any URI, but, you must set at Domain.xml,

!-- Paths configuration --
userspath/conf/users/userspath
rolespath/conf/roles/rolespath
actionspath/conf/actions/actionspath
filespath/archivos/filespath

Regards,

Juan Andrés.


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



Re: SlideRealm - how to set a password in Domain.xml ?

2004-04-29 Thread Juan Andrés Bentancour

- Original Message -
From: Olivier CAUSSE [EMAIL PROTECTED]
To: 'Slide Users Mailing List' [EMAIL PROTECTED]
Sent: Wednesday, April 28, 2004 9:54 AM
Subject: SlideRealm - how to set a password in Domain.xml ?


 I could install SlideRealm for Tomcat 5. I wonder now how to define new
 users/passwords.
 The standard sample Domain.xml contains the following settings for the
root
 user.

 objectnode
 classname=org.apache.slide.structure.SubjectNode uri=/users/root
 revision
 property
 namespace=http://jakarta.apache.org/slide/; name=password/
 /revision
 /objectnode

 The root user has no password value.

 I tried to add a password value this way :
   property namespace=http://jakarta.apache.org/slide/;
 name=passwordpassroot/property
 as it is mentionned in
 http://www.mail-archive.com/[EMAIL PROTECTED]/msg04727.html
but
 it doesn't work.

 What is the correct syntax ?


 objectnode classname=org.apache.slide.structure.SubjectNode
uri=/conf/users/root
  revision
   property namespace=http://jakarta.apache.org/slide/;
name=password
![CDATA[passroot]]
   /property
  /revision
/objectnode

Regards,

Juan Andrés.


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



Re: Simple Slide commands

2004-03-30 Thread Juan Andrés Bentancour

- Original Message -
From: Tore Lading [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, March 27, 2004 1:21 PM
Subject: Simple Slide commands


 I am currently looking at the SLIDE implementation, and the code,
 considering using it for content management, and would like to develop it
 further.

 One simple thing i can't get to work is to do a simple OPEN from the
 CommandLine WebDav Client. Not much doc here i guess.

 I try a simple

 open localhost/slide  -- and the commandline breaks down with an exeption,
 faster than you can do a CTRL + C.

connect http://localhost:8080/slide
8080 Tomcat port number

Regards,
--
Juan Andres Bentancour



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



Re: Exceptions when I try to setup a mysql JDBC store

2004-03-29 Thread Juan Andrés Bentancour
El lun, 29-03-2004 a las 22:21, Ryan Rhodes escribió:
 I am trying to setup a JDBC store for the first time using mysql.  I copied 
 the domain.xml from a copy a found online, but I get Exceptions when I start 
 the server.  It looks like it is failing to create the initial tables in the 
 database.
 
 Can anyone help out with this problem?
 
 Can anyone confirm for me that slide creates it's own tables and that I 
 don't need to create them manually?

you need to create manually, there is a sql script at:
/src/conf/schema/MySqlSchema.sql
or cvs:
http://cvs.apache.org/viewcvs.cgi/jakarta-slide/src/conf/schema/MySqlSchema.sql 
bye!

-- 
Juan Andrés Bentancour [EMAIL PROTECTED]


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



Re: Search DAV:like

2004-03-25 Thread Juan Andrés Bentancour
El jue, 25-03-2004 a las 18:27, Julian Reschke escribió:
 Juan Andr?s Bentancour wrote:
  ...
  (from http://www.webdav.org/dasl/protocol/draft-dasl-protocol-00.html
  ...
 
 Hi,
 
 I'm not familiar with Slide, so I can't answer that question. The query 
 itself looks fine.
 
:(

 Also note that the current draft for DASL is here:
 
 http://greenbytes.de/tech/webdav/draft-reschke-webdav-search-latest.html

...
5.5.2  Handling Optional operators 
If a query contains an operator that is not supported by the server,
then the server MUST respond with a 422 (Unprocessable Entity) status
code. 


DASL defines LIKE operator, but we dont have an implementation (LIKE is
an optional operator). I have no idea where to start.   any help would be
appreciated !

Regards,


-- 
Juan Andrés Bentancour [EMAIL PROTECTED]


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



RE: Did anybody successfully authentiate with Slide beta 2

2004-03-09 Thread Juan Andrés Bentancour
 working resources.
 * auto-version (mandatory=no, default=checkout-checkin):
 Controls the DeltaV auto-version behaviour.
 * auto-version-control (mandatory=no, default=false):
 Indicates if a resource just created by a PUT should be set under
 version-control.
* versioncontrol-exclude (mandatory=no, default=):
Specifies a Slide path which determines resources which are excluded from 
 version-control.
The default value  makes no path being excluded.
 * checkout-fork (mandatory=no, default=forbidden):
 Controls the DeltaV check-out behaviour when a version is already
 checked-out or has a successor.
 * checkin-fork (mandatory=no, default=forbidden):
 Controls the DeltaV check-out behaviour when a version has already a
 successor.
 * standardLivePropertiesClass (mandatory=no,
 default=org.apache.slide.webdav.util.resourcekind.AbstractResourceKind):
 Determines the agent knowing about what the standard live properties are.
 It should be a loadable class containing the following static methods:
 - boolean isLiveProperty(String propName)
 - boolean isProtectedProperty(String propName)
 - boolean isComputedProperty(String propName)
 - Set getAllLiveProperties()
 - Set getAllProtectedProperties()
 - Set getAllComputedProperties()
 * uriRedirectorClass (mandatory=no,
 default=org.apache.slide.webdav.util.DeltavUriRedirector):
 Determines the URI redirector class. The DeltaV URI redirector is in
 charge of the following redirections:
 - version URI to history URI, e.g. /history/2/1.4 to /history/2
 - latest revision number for history resource to 0.0
 - latest revision number for version resource to last URI token,
 e.g. /history/2/1.4 to 1.4
 It should be a loadable class containing the following static methods:
 - String redirectUri(String uri)
 - NodeRevisionNumber redirectLatestRevisionNumber(String uri)
 --
 parameter name=historypath/history/parameter
 parameter name=workspacepath/workspace/parameter
 parameter name=workingresourcepath/workingresource/parameter
 parameter name=auto-versioncheckout-checkin/parameter
 parameter name=auto-version-controlfalse/parameter
 parameter name=versioncontrol-exclude/
 parameter name=checkout-forkforbidden/parameter
 parameter name=checkin-forkforbidden/parameter
 /slide
 
  
 
 
 -
 Do you Yahoo!?
 Yahoo! Search - Find what youre looking for faster.
-- 
Juan Andrés Bentancour [EMAIL PROTECTED]


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



Webdav or Slide API (was RE: versionning )

2004-02-23 Thread Juan Andrés Bentancour
Hi Peter,

 What is the reason, you don't want to use WebDAV?

good question !  I wish I could use it.

I need to develop a content management system basically with:
 - file versioning support.
 - custom meta information for differents content types.
 - searching support.
but this new system must be integrated with an existing J2EE web app:
 Presentation layer ( jsp  struts ) TOMCAT
 Logic ( entities  session beans ) JBOSS
 Database: MySQL

I'm thinking in an architecture like that:
 -JSPs for navigate directories, upload files, search files, etc. ( user
interface )
 -a session bean in JBOSS, which use native Slide API to reply requests from
JSPs.

I think I can´t use the webdav servlet for my new system, but I´m not sure.
what do you think ?  Does anyone do something like that ?

thanks you !

Regards,

--
Juan Andrés Bentancour.




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