access to custom property groups by web svc

Do you want to create a native client or integrate with third party applications: webservices are the solution.
Forum rules
Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
Post Reply
yongzhi1983
Fresh Boarder
Fresh Boarder
Posts: 9
Joined: Wed Apr 23, 2008 6:03 am

access to custom property groups by web svc

Post by yongzhi1983 » Fri May 09, 2008 7:50 am

Hi,

1) May I know if the web services provide a way to add custom property groups to nodes?

2) If so, can we set the properties in the custom property groups through the setProperty method?

3) Can we search for documents using custom property groups via web service?

Thanks in advance! :laugh:

pavila
Moderator
Moderator
Posts: 3086
Joined: Tue Dec 11, 2007 6:02 pm
Location: Alicante, Spain
Contact:

Re:access to custom property groups by web svc

Post by pavila » Fri May 09, 2008 8:06 am

1.- Actually, property group API is not exposed in webservices. This is a feature included in our Professional edition.

2.- The setProperty method can only change a few document properties, like the \"keyword\" property. Perhaps is a dirty-and-quick workaround.

3.- Yes, you should.
OpenKM Team ( Be open, my friend! )

yongzhi1983
Fresh Boarder
Fresh Boarder
Posts: 9
Joined: Wed Apr 23, 2008 6:03 am

Re:access to custom property groups by web svc

Post by yongzhi1983 » Mon May 12, 2008 2:50 am

pavila wrote:1.- Actually, property group API is not exposed in webservices. This is a feature included in our Professional edition.

2.- The setProperty method can only change a few document properties, like the "keyword" property. Perhaps is a dirty-and-quick workaround.

3.- Yes, you should.
Hi Pavila,

Thanks for the prompt reply.

1. Do you mean in the professional edition, we can create and assign custom property groups to documents?

2. In the professional edition, can the set property change custom properties in custom property groups? Or are there additional web service methods to do it?

3. You mean I can search for documents using properties in the custom property groups if I have the professional edition?

pavila
Moderator
Moderator
Posts: 3086
Joined: Tue Dec 11, 2007 6:02 pm
Location: Alicante, Spain
Contact:

Re:access to custom property groups by web svc

Post by pavila » Mon May 12, 2008 8:16 am

1&2. You can create and assign custom property groups in Community and Professional edition, but this WebServices API is only exposed in Professional edition.

3. Both on Community and Professional you can make search using XPath queries using the findByStatement() method. The XPath query should be like this

Code: Select all

/jcr:root/okm:root//element(*,okm:document)[@okp:prop.nom=\'option1\']
OpenKM Team ( Be open, my friend! )

Furgas
Fresh Boarder
Fresh Boarder
Posts: 12
Joined: Wed Jun 30, 2010 7:22 pm

Re: Re:access to custom property groups by web svc

Post by Furgas » Thu Jul 01, 2010 11:54 am

pavila wrote:1.- Actually, property group API is not exposed in webservices. This is a feature included in our Professional edition.
I'm also interested in accessing (and setting) custom properties via WebService.
What differences are there between Community and Professional edition of OpenKM?

jllort
Moderator
Moderator
Posts: 10876
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: access to custom property groups by web svc

Post by jllort » Thu Jul 01, 2010 9:03 pm

There's no code diference.

Furgas
Fresh Boarder
Fresh Boarder
Posts: 12
Joined: Wed Jun 30, 2010 7:22 pm

Re: access to custom property groups by web svc

Post by Furgas » Thu Jul 01, 2010 10:53 pm

So, can I get and set custom properties of documents using WebServices? If not, is this feature planned for OpenKM 5.0?

jllort
Moderator
Moderator
Posts: 10876
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: access to custom property groups by web svc

Post by jllort » Fri Jul 02, 2010 6:36 pm

Yes it can be done.

Furgas
Fresh Boarder
Fresh Boarder
Posts: 12
Joined: Wed Jun 30, 2010 7:22 pm

Re: access to custom property groups by web svc

Post by Furgas » Tue Jul 06, 2010 8:05 am

Could you point me to WebService method which returns and sets custom properties of document?
Methods getProperties and setProperties from OKMDocumentService don't seem to support it according to WSDL.

jllort
Moderator
Moderator
Posts: 10876
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: access to custom property groups by web svc

Post by jllort » Tue Jul 06, 2010 4:44 pm

OKMPropertyGroupService

chris-compton
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: Wed Aug 25, 2010 6:49 pm

Re: access to custom property groups by web svc

Post by chris-compton » Wed Aug 25, 2010 6:58 pm

Is there any OKMPropertyGroupService documentation or an argument list for using the setProperties web service method to associate property group property values and property group(s) to a document?

jllort
Moderator
Moderator
Posts: 10876
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: access to custom property groups by web svc

Post by jllort » Thu Aug 26, 2010 8:38 am

all documentation available now is on wiki, nothing else ( http://wiki.openkm.com/index.php/Webservices_Guide )

As a part of OpenKM program we offering supporting for developing but restricted to our clients.

Post Reply