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