24 */ |
24 */ |
25 |
25 |
26 package de.uapcore.lightpit.dao |
26 package de.uapcore.lightpit.dao |
27 |
27 |
28 import de.uapcore.lightpit.entities.* |
28 import de.uapcore.lightpit.entities.* |
|
29 import de.uapcore.lightpit.types.CommitRef |
29 import de.uapcore.lightpit.viewmodel.ComponentSummary |
30 import de.uapcore.lightpit.viewmodel.ComponentSummary |
30 import de.uapcore.lightpit.viewmodel.IssueSummary |
31 import de.uapcore.lightpit.viewmodel.IssueSummary |
31 import de.uapcore.lightpit.viewmodel.VersionSummary |
32 import de.uapcore.lightpit.viewmodel.VersionSummary |
32 |
33 |
33 interface DataAccessObject { |
34 interface DataAccessObject { |
68 fun updateProject(project: Project) |
69 fun updateProject(project: Project) |
69 |
70 |
70 fun collectIssueSummary(project: Project): IssueSummary |
71 fun collectIssueSummary(project: Project): IssueSummary |
71 fun collectIssueSummary(assignee: User): IssueSummary |
72 fun collectIssueSummary(assignee: User): IssueSummary |
72 |
73 |
|
74 fun mergeCommitRefs(refs: List<CommitRef>) |
|
75 |
73 fun listIssues(project: Project, includeDone: Boolean): List<Issue> |
76 fun listIssues(project: Project, includeDone: Boolean): List<Issue> |
74 fun listIssues(project: Project, includeDone: Boolean, version: Version?, component: Component?): List<Issue> |
77 fun listIssues(project: Project, includeDone: Boolean, version: Version?, component: Component?): List<Issue> |
75 fun findIssue(id: Int): Issue? |
78 fun findIssue(id: Int): Issue? |
76 fun insertIssue(issue: Issue): Int |
79 fun insertIssue(issue: Issue): Int |
77 fun updateIssue(issue: Issue) |
80 fun updateIssue(issue: Issue) |