DbSessionManager
Utility methods used to manage user session. For example, to get the token of the super user system.
Methods
Section titled “Methods”getSystemToken
Section titled “getSystemToken”Description:
| Method | Return values | Description |
|---|---|---|
| getSystemToken() | String | Return the token of the super user system. |
Example:
package com.openkm;
import java.io.File;import com.openkm.module.db.stuff.DbSessionManager;
public class Test { public static void main(String[] args) { try { System.out.println(DbSessionManager.getInstance().getSystemToken()); } catch (Exception e) { e.printStackTrace(); } }}