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);