Skip to content
Other versions

Loading…

GeneralUtils

Generic utility methods. For example, to notify something to a user. 

Description:

Method Return values Description
uiNotify(String msg) void Notify the currently authenticated user.

Example:

package com.openkm;
import com.openkm.util.ContextWrapper;
import com.openkm.util.GeneralUtils;
public class Test {
public static void main(String[] args) {
try {
GeneralUtils generalUtils = ContextWrapper.getContext().getBean(GeneralUtils.class);
generalUtils.uiNotify("Message test!");
} catch (Exception e) {
e.printStackTrace();
}
}
}