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