org.juniverse.jorganizer.todos
Interface IToDoManager

All Known Implementing Classes:
ToDoManager

public interface IToDoManager

Interface for the ToDoManager

Author:
alexander ilg

Method Summary
 void delete(ToDo todo)
          This method delete's the passed in ToDo object.
 java.util.Vector getToDoByDate(java.util.Date date)
          Returns an Vector of ToDo objects with all ToDo's from a special date.
 java.util.Vector getToDos()
          This method returns an Vector of ToDo objects with all ToDo's that are stored in the system.
 java.util.Vector getToDosByFrom(int userid)
          Returns an Vector of ToDo objects with all ToDo's for a single user, that is specified in the userid attribute.
 void save(ToDo todo)
          This method saves the passed in ToDo object if it is new.
 

Method Detail

getToDos

public java.util.Vector getToDos()
This method returns an Vector of ToDo objects with all ToDo's that are stored in the system.

Returns:
all ToDo's in a Vector

getToDosByFrom

public java.util.Vector getToDosByFrom(int userid)
Returns an Vector of ToDo objects with all ToDo's for a single user, that is specified in the userid attribute.

Parameters:
userid - a valid userid of an JOrganizer user
Returns:
an Vector of ToDo's

getToDoByDate

public java.util.Vector getToDoByDate(java.util.Date date)
Returns an Vector of ToDo objects with all ToDo's from a special date.

Parameters:
date - a java.util.date object
Returns:
an Vector of ToDo's

save

public void save(ToDo todo)
This method saves the passed in ToDo object if it is new. If it already exists, it will be updated

Parameters:
todo - a ToDo object

delete

public void delete(ToDo todo)
This method delete's the passed in ToDo object.

Parameters:
todo - a ToDo object