Page 1 of 1

Property groups SOAP API?

PostPosted:Fri Feb 15, 2008 3:57 pm
by mmanley
Are there any plans to expose the PropertyGroups API through the web services API? Being able to let other applications search content through the custom properties we set up would really make PropertyGroups very useful to me.

Thanks.

MSM

Re:Property groups SOAP API?

PostPosted:Fri Feb 15, 2008 11:12 pm
by mmanley
Never mind on the \"search\" part of this request. I understand now that I can search on property groups using the findByStatement() call.

But being able to specify property group values from outside applications is still very appealing.

Re:Property groups SOAP API?

PostPosted:Sat Feb 16, 2008 9:48 am
by pavila
Yes, you can search by property groups using WS (in theory almost!) The property groups API it not fully exposed by WS. I\'ll study if we can inluse this improvement in the next release.

Re:Property groups SOAP API?

PostPosted:Tue Feb 19, 2008 3:22 pm
by mmanley
I figured out how to search the custom property groups. If I pass the following Xpath query to Search.findByStatement() I get what I want:

//*[jcr:contains(@okp:mypropertygroup.myproperty, \'myvalue\')]

Granted, that query will also return items in the Trash that contain the searched property, but I think I can add a clause to the Xpath to suppress that.

Re:Property groups SOAP API?

PostPosted:Tue Feb 19, 2008 3:47 pm
by pavila
This query will search only for documents in the main repository path (okm:root).
Code: Select all
/jcr:root/okm:root//element(*,okm:document)[jcr:contains(@okp:mypropertygroup.myproperty, \'myvalue\')]