src/main/kotlin/de/uapcore/lightpit/dao/DataAccessObject.kt

changeset 284
671c1c8fbf1c
parent 268
ca5501d851fa
child 292
703591e739f4
equal deleted inserted replaced
283:ea6181255423 284:671c1c8fbf1c
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)
99 102
100 /** 103 /**
101 * Lists the issue comment history of the project with [projectId] for the past [days]. 104 * Lists the issue comment history of the project with [projectId] for the past [days].
102 */ 105 */
103 fun listIssueCommentHistory(projectId: Int, days: Int): List<IssueCommentHistoryEntry> 106 fun listIssueCommentHistory(projectId: Int, days: Int): List<IssueCommentHistoryEntry>
107 fun listCommitRefs(issue: Issue): List<CommitRef>
104 } 108 }

mercurial