GeneralUtils

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

Methods

uiNotify

Description:

MethodReturn valuesDescription

uiNotify(String msg)

void

Notify the currently authenticated user.

msg: A text with the notification message.

The user must be logged in before executing the methods.

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();
        }
    }
}
Table of contents [ Hide Show ]