Page 1 of 1

Use OKM SDK to activate Property Group Configuration

PostPosted:Tue Jul 08, 2014 10:53 am
by Catscratch
Hi,

is it possible to activate (or update) property groups configuration by using the SDK or another API?

Regards.

Re: Use OKM SDK to activate Property Group Configuration

PostPosted:Wed Jul 09, 2014 7:38 am
by jllort
You're talking about property group definition what is shown in administration ?

Re: Use OKM SDK to activate Property Group Configuration

PostPosted:Wed Jul 09, 2014 11:30 am
by Catscratch
Yes.

My current way would be to create a JAVA non ui HTTP client so log into openkm and call the url SERVER/OpenKM/admin/PropertyGroups?action=register. But I thought there must be a better way.

Thanks!

Re: Use OKM SDK to activate Property Group Configuration

PostPosted:Fri Jul 11, 2014 9:34 am
by jllort
You could extend RepositoryService to get actual value and upload newer. But for it is needed doing a change in source code it's quite easy and if you got java skill you get it in few minutes.

Re: Use OKM SDK to activate Property Group Configuration

PostPosted:Fri Jul 11, 2014 10:55 am
by Catscratch
Yeah, that's right. But than I got a problem if you deliver an update for the community version. Than I have to start merging the sources.

Maybe it is a good feature request to integrate some kind of plugin mechanism in openkm in the future. ;-)

Re: Use OKM SDK to activate Property Group Configuration

PostPosted:Sat Jul 12, 2014 5:36 pm
by jllort
In this case should be extended the API ( core ) and also REST Full webservices. We've done some testing with OSGI, but we're not sure about performance of it, that's why only at the present we consider as a test. We got some plugin to load dinamically classes ( that's used for example with Automation Actions and Validations ). If you got something we do not know for REST or API based on plugins do not hesitate to tell us, and if you provide some sample for community is always wellcome.

Finally, if you extends this methods for community, provide us, and consider are right we will include by default in source code.

Re: Use OKM SDK to activate Property Group Configuration

PostPosted:Mon Jul 14, 2014 7:10 am
by Catscratch
Investigating the code I realized, that OKMPropertyGroup [1] already got a function for registering definition (registerDefinition(string, string)). That seems to be my solution.

I'm using the SDK 1.0. Unfortunately the SDK doesn't contain a method for calling the registration. Can I find the sources of the SDK somewhere? Then I can extend the regarding classes? I only got the SDK as class files.

[1] http://sourceforge.net/p/openkm/code/HE ... Group.java

Re: Use OKM SDK to activate Property Group Configuration

PostPosted:Wed Jul 16, 2014 6:19 am
by jllort
At the moment the sdk java classes will not be released are as is. You can extend rest api but should access from there outside SDK. The life cycle of SDK and rest webservices will not be shared with community, is not possible, must be closed and stable under the actual and future versions of 6.3.X