View Javadoc

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