Package de.arago.rike.commons.data

Examples of de.arago.rike.commons.data.ActivityLog


    private ActivityLogHelper() {
        //not called
    }

    public static void log(String content, String icon, String user, IDataWrapper data, Map objectState) {
        final ActivityLog log = new ActivityLog();

        log.setContent(content);
        log.setUser(user);
        log.setCreated(new Date());
        log.setIcon(icon);

        objectState.put("log_content", content);
        objectState.put("log_user", user);
        objectState.put("log_time", log.getCreated().getTime() + "");
        log.setJsonData(JSONValue.toJSONString(objectState));

        new DataHelperRike<ActivityLog>(ActivityLog.class).save(log);

        runPostHook(log);
View Full Code Here

TOP

Related Classes of de.arago.rike.commons.data.ActivityLog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.