public void setExpirationDate(String containerId, Number taskId, String datePayload, String marshallingType) { containerId = context.getContainerId(containerId, new ByTaskIdContainerLocator(taskId.longValue())); logger.debug("About to unmarshal task priority from payload: '{}'", datePayload); Date expirationDate = marshallerHelper.unmarshal(containerId, datePayload, marshallingType, Date.class); logger.debug("About to set expiration date for a task with id '{}' with value '{}'", taskId, expirationDate); userTaskService.setExpirationDate(containerId, taskId.longValue(), expirationDate); }
@Override public void updateTask(long taskId, int priority, List<String> taskDescription, Date dueDate) { taskService.setPriority(taskId, priority); if(taskDescription != null){ taskService.setDescription(taskId, taskDescription.get(0)); } if(dueDate != null){ taskService.setExpirationDate(taskId, dueDate); } }