taskmanager.java

来自「Java的框架」· Java 代码 · 共 67 行

JAVA
67
字号
package mcaps.apps.prrm.task.service;

import java.util.List;

import org.springframework.dao.DataAccessException;

import mcaps.apps.prrm.task.dao.TaskDAO;
import mcaps.apps.prrm.task.model.Task;

/**
 * Business Service Interface for implementation that provides 
 * task management service.
 * 
 * @author jov
 * @date Dec 7, 2005
 * @version 1.0.1.0
 */
public interface TaskManager {

	/**
	 * Set the TaskDAO
	 * @param dao the TaskDAO
	 */
	void setTaskDAO (TaskDAO dao);

	/**
	 * Retrieve task by task id
	 * @param id task id
	 * @return Task object
	 */
	Task getTask(Integer taskID);

	/**
	 * Search for tasks that matches the task
	 * object.
	 * @param task
	 * @return
	 */
	List getTasks(Task task);

	/**
	 * Retrieve a list of task.
	 * @return
	 */
	List getAllTasks();
	
	/**
	 * Saves the task
	 * @param task the task object to save
	 * @return the id of the task saved
	 */
	void saveTask(Task task);
	
	/**
	 * Deletes a task that macthes the id parameter
	 * @param id the id of the task
	 */
	void removeTask(Task task);

	/**
	 * Change task status
	 * @param task
	 * @throws DataAccessException
	 */
	void changeStatus(Task task) throws Exception;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?