Package de.arago.rike.commons.data

Examples of de.arago.rike.commons.data.Task.toMap()


                HashMap<String, Object> notificationParam = new HashMap<String, Object>();

                notificationParam.put("id", task.getId().toString());
                data.setEvent("TaskUpdateNotification", notificationParam);

                ActivityLogHelper.log(" started Task #" + task.getId() + " <a href=\"/web/guest/rike/-/show/task/" + task.getId() + "\">" + StringEscapeUtils.escapeHtml(task.getTitle()) + "</a> ", task.getStatus(), user, data, task.toMap());
            }
        }
    }
}
View Full Code Here


                notificationParam.put("id", data.getRequestAttribute("id"));
                data.setEvent("TaskUpdateNotification", notificationParam);

                data.removeSessionAttribute("targetView");

                ActivityLogHelper.log(" rated Task #" + task.getId() + " <a href=\"/web/guest/rike/-/show/task/" + task.getId() + "\">" + StringEscapeUtils.escapeHtml(task.getTitle()) + "</a> ", task.getStatus(), SecurityHelper.getUserEmail(data.getUser()), data, task.toMap());
            }
        }
    }
}
View Full Code Here

        notificationParam.put("id", task.getId().toString());
        data.setEvent("TaskUpdateNotification", notificationParam);
        data.setEvent("TaskSelectNotification", notificationParam);

        ActivityLogHelper.log(" created Task #" + task.getId() + " <a href=\"/web/guest/rike/-/show/task/" + task.getId() + "\">" + StringEscapeUtils.escapeHtml(task.getTitle()) + "</a>", task.getStatus(), user, data, task.toMap());
    }
}
View Full Code Here

                notificationParam.put("id", data.getRequestAttribute("id"));
                data.setEvent("TaskUpdateNotification", notificationParam);

                ActivityLogHelper.log(" completed Task #" + task.getId() +
                                      " <a href=\"/web/guest/rike/-/show/task/" + task.getId() + "\">" +
                                      StringEscapeUtils.escapeHtml(task.getTitle()) + "</a> ", task.getStatus(), user, data, task.toMap());


                Milestone milestone = task.getMilestone();
                if (MilestoneHelper.isMilestoneDone(milestone)) {
                    ActivityLogHelper.log(" finished Milestone #" + milestone.getId() + " <a href=\"/web/guest/rike/-/show/milestone/" + milestone.getId() + "\">" + StringEscapeUtils.escapeHtml(milestone.getTitle()) + "</a>", "done", user, data, milestone.toMap());
View Full Code Here

    } catch(Exception ignored) {}

    TaskHelper.save(task);
    StatisticHelper.update();

    ActivityLogHelper.log(" created Task #" + task.getId() + " <a href=\"/web/guest/rike/-/show/task/" + task.getId() + "\">" + StringEscapeUtils.escapeHtml(task.getTitle()) + "</a>", task.getStatus(), email, null, task.toMap());
   
    return task;
  }

  private void rate(Task task, User user)
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.