edu.jhu.cs.oose.group13.egtd.server.viewtask
Class ViewTask

java.lang.Object
  extended by edu.jhu.cs.oose.group13.egtd.server.viewtask.ViewTask
Direct Known Subclasses:
ViewAllTask, ViewDueTask, ViewFutureTask, ViewTodayTask

public abstract class ViewTask
extends java.lang.Object

To view task, we have use Template Design Pattern

Author:
zhihao

Constructor Summary
ViewTask()
           
 
Method Summary
protected abstract  void pickAppropriateTask(java.util.List<Task> correctTasks, java.util.List<Task> tasks)
          Abstract method to compare dates of Task
 java.util.List<Task> viewTask(java.lang.String Token, java.lang.Integer idUser, java.lang.Integer idProject)
          Use to view Task
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewTask

public ViewTask()
Method Detail

viewTask

public final java.util.List<Task> viewTask(java.lang.String Token,
                                           java.lang.Integer idUser,
                                           java.lang.Integer idProject)
                                    throws java.sql.SQLException,
                                           ErrorMessageException
Use to view Task

Parameters:
Token -
idUser -
idProject -
Returns:
List of Task
Throws:
java.sql.SQLException
ErrorMessageException

pickAppropriateTask

protected abstract void pickAppropriateTask(java.util.List<Task> correctTasks,
                                            java.util.List<Task> tasks)
Abstract method to compare dates of Task

Parameters:
correctTasks -
tasks -