1 package com.panogenesis.dao;
2
3 import java.util.List;
4 import java.util.Set;
5
6 import com.panogenesis.model.Issue;
7 import com.panogenesis.model.Project;
8 import com.panogenesis.model.User;
9
10 public interface IssueDAO extends DAO {
11
12 /***
13 * Retrieves all of the issues
14 */
15 public List getIssues(Issue issue);
16
17 /***
18 * Retrieves all of the issues
19 */
20 public List getCreatedIssuesByUsername(String username);
21
22 /***
23 * Retrieves all of the issues
24 */
25 public List getOwnedIssuesByUsername(String username);
26
27
28 /***
29 * Gets issue's information based on id. An
30 * ObjectRetrievalFailureException Runtime Exception is thrown if
31 * nothing is found.
32 *
33 * @param id the issue's id
34 * @return issue populated issue object
35 */
36 public Issue getIssue(final Integer id);
37
38 /***
39 * Saves a issue's information
40 * @param issue the object to be saved
41 * @return Issue the persisted issue object
42 */
43 public void saveIssue(Issue issue);
44
45 /***
46 * Removes a issue from the database by id
47 * @param id the issue's id
48 */
49 public void removeIssue(final Integer id);
50
51 }
52