Dear all,
I am currently trying to integrate OpenKM into my Grails application. I already set up the openKM instance on our server and binded the openKM lib into the Grails lib. Now I want to implement some sample to understand how he openKM API works. After I uploaded some files, I tried to search them. That works:
Is this expected behaviour?
If yes, how do I extract the path and/or UUID of the files that have been found in the search?
Of no, any idea whats going wrong?
Regards,
holgrich
I am currently trying to integrate OpenKM into my Grails application. I already set up the openKM instance on our server and binded the openKM lib into the Grails lib. Now I want to implement some sample to understand how he openKM API works. After I uploaded some files, I tried to search them. That works:
Code: Select all
The variable xs is an Arraylist that contains three elements (QueryResults). Each element has five attributes (attachement, document, excerpt, folder, mail) that are null and the score. def okmSample(){
OKMAuth okmAuth = new OKMAuth_Service().getOKMAuthPort();
OKMSearch okmSearch = new OKMSearch_Service().getOKMSearchPort()
OKMDocument okmDocument = new OKMDocument_Service().getOKMDocumentPort();
// Login
String token = okmAuth.login("hdiedrich", "password");
Console.println("Token: " + token );
// Search
def xs = okmSearch.findByName(token, "Setup");
// Logout
okmAuth.logout(token)
}
Is this expected behaviour?
If yes, how do I extract the path and/or UUID of the files that have been found in the search?
Of no, any idea whats going wrong?
Regards,
holgrich