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