Page 1 of 1

access to custom property groups by web svc

PostPosted:Fri May 09, 2008 7:50 am
by yongzhi1983
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:

Re:access to custom property groups by web svc

PostPosted:Fri May 09, 2008 8:06 am
by pavila
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.

Re:access to custom property groups by web svc

PostPosted:Mon May 12, 2008 2:50 am
by yongzhi1983
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?

Re:access to custom property groups by web svc

PostPosted:Mon May 12, 2008 8:16 am
by pavila
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\']

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

PostPosted:Thu Jul 01, 2010 11:54 am
by Furgas
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?

Re: access to custom property groups by web svc

PostPosted:Thu Jul 01, 2010 9:03 pm
by jllort
There's no code diference.

Re: access to custom property groups by web svc

PostPosted:Thu Jul 01, 2010 10:53 pm
by Furgas
So, can I get and set custom properties of documents using WebServices? If not, is this feature planned for OpenKM 5.0?

Re: access to custom property groups by web svc

PostPosted:Fri Jul 02, 2010 6:36 pm
by jllort
Yes it can be done.

Re: access to custom property groups by web svc

PostPosted:Tue Jul 06, 2010 8:05 am
by Furgas
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.

Re: access to custom property groups by web svc

PostPosted:Tue Jul 06, 2010 4:44 pm
by jllort
OKMPropertyGroupService

Re: access to custom property groups by web svc

PostPosted:Wed Aug 25, 2010 6:58 pm
by chris-compton
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?

Re: access to custom property groups by web svc

PostPosted:Thu Aug 26, 2010 8:38 am
by jllort
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.