Page 1 of 1

OpenKM 6.2 - getSystemToken()

PostPosted:Tue Nov 13, 2012 10:14 am
by Rudolf21
Is there a new way to get the token/session in OpenKM 6.2?

Executing:
Code: Select all
import com.openkm.module.*;
String token = JcrSessionManager.getInstance().getSystemToken();
session session = JcrSessionManager.getInstance().get(token);
Error:
Code: Select all
Sourced file: inline evaluation of: ``import com.openkm.module.*; String tokenNew = JcrSessionManager.getInstance . . . '' : Typed variable declaration : Attempt to resolve method: getInstance() on undefined variable or class name: JcrSessionManager : at Line: 4 : in file: inline evaluation of: ``import com.openkm.module.*; String tokenNew = JcrSessionManager.getInstance . . . '' : JcrSessionManager .getInstance ( ) 
Thanks in advance.

Re: OpenKM 6.2 - getSystemToken()

PostPosted:Wed Nov 14, 2012 7:45 pm
by jllort
This method is deprecated at 5.x now you should you this other class http://doxygen.openkm.com/6.2.x/d4/dab/ ... nager.html