1 package com.panogenesis.service;
2
3 import java.util.List;
4
5 import com.panogenesis.model.ProjectStatus;
6 import com.panogenesis.dao.ProjectStatusDAO;
7
8 public interface ProjectStatusManager extends Manager {
9
10 /***
11 * Setter for DAO, convenient for unit testing
12 */
13 public void setProjectStatusDAO(ProjectStatusDAO projectStatusDAO);
14
15 /***
16 * Retrieves all of the projectStatuses
17 */
18 public List getProjectStatuses(ProjectStatus projectStatus);
19
20 /***
21 * Gets projectStatus's information based on id.
22 * @param id the projectStatus's id
23 * @return projectStatus populated projectStatus object
24 */
25 public ProjectStatus getProjectStatus(final String id);
26
27 /***
28 * Saves a projectStatus's information
29 * @param projectStatus the object to be saved
30 */
31 public void saveProjectStatus(ProjectStatus projectStatus);
32
33 /***
34 * Removes a projectStatus from the database by id
35 * @param id the projectStatus's id
36 */
37 public void removeProjectStatus(final String id);
38 }
39