GeneralUtils

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

Methods

uiNotify

Description:

MethodReturn valuesDescription

uiNotify(String msg)

void

Notify to current authenticated user.

msg: A text with the message of notify.

The user must be logged 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 ]