Ir al contenido
Otras versiones

Cargando…

OKMUserConfig

Esta página aún no está disponible en tu idioma.

On all methods you’ll see parameter named “token”. When accessing application across SOAP the login process returns a token, what is used to identify the user on all the exposed methods. From default application execution context you must use “null” value what indicates to the application must use the “user session”.

Description:

Method Return values Description
setHome(String token, String path) void Sets the user home.

Example:

package com.openkm;
import com.openkm.api.OKMUserConfig;
public class Test {
public static void main(String[] args) {
try {
OKMUserConfig.getInstance().setHome(null,"/okm:root/test");
} catch (Exception e) {
e.printStackTrace();
}
}
}

Description:

Method Return values Description
getConfig(String token) UserConfig Return the user configuration.
  • Returned values are:

Example:

package com.openkm;
import com.openkm.api.OKMUserConfig;
import com.openkm.dao.bean.UserConfig;
public class Test {
public static void main(String[] args) {
try {
UserConfig uc = OKMUserConfig.getInstance().getConfig(null);
System.out.println(uc);
} catch (Exception e) {
e.printStackTrace();
}
}
}