DbSessionManager

Utility methods used to manage user session. For example, to get the token of the super user system.

Methods

getSystemToken

Description:

MethodReturn valuesDescription

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().getInstance());
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}