package org.sakaiproject.tool.tasklist.jsf;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.sakaiproject.tool.tasklist.api.TaskListService;
public class TaskListBean {
// use commons logger
private final Log log = LogFactory.getLog(this.getClass());
private TaskListService taskListService;
private String currentUserDisplayName;
// Constructor
public TaskListBean() {
log.debug("Constructor");
}
// IoC
public void setTaskListService(TaskListService taskListService) {
log.debug("setTaskListService");
this.taskListService = taskListService;
currentUserDisplayName = taskListService.getCurrentUserDisplayName();
}
public String getCurrentUserDisplayName() {
return currentUserDisplayName;
}
public void setCurrentUserDisplayName(String currentUserDisplayName) {
this.currentUserDisplayName = currentUserDisplayName;
}
}