diff -r bbf4eb9a71f8 -r bf67e0ff7131 src/main/kotlin/de/uapcore/lightpit/dao/DataAccessObject.kt --- a/src/main/kotlin/de/uapcore/lightpit/dao/DataAccessObject.kt Mon Aug 05 17:41:56 2024 +0200 +++ b/src/main/kotlin/de/uapcore/lightpit/dao/DataAccessObject.kt Mon Aug 05 18:40:47 2024 +0200 @@ -73,7 +73,25 @@ fun mergeCommitRefs(refs: List) + /** + * Lists all issues. + * The result will only [includeDone] issues, if requested. + */ + fun listIssues(includeDone: Boolean): List + + /** + * Lists issues for the specified [project]. + * The result will only [includeDone] issues, if requested. + */ fun listIssues(project: Project, includeDone: Boolean): List + + /** + * Lists all issues for the specified [project]. + * The result will only [includeDone] issues, if requested. + * When a [specificVersion] or a [specificComponent] is requested, + * the result is filtered for [version] or [component] respectively. + * In both cases null means that only issues without version or component shall be returned. + */ fun listIssues( project: Project, includeDone: Boolean, @@ -97,19 +115,20 @@ fun insertIssueRelation(rel: IssueRelation) fun deleteIssueRelation(rel: IssueRelation) fun listIssueRelations(issue: Issue): List + fun getIssueRelationMap(includeDone: Boolean): IssueRelationMap fun getIssueRelationMap(project: Project, includeDone: Boolean): IssueRelationMap fun insertHistoryEvent(issue: Issue, newId: Int = 0) fun insertHistoryEvent(issue: Issue, issueComment: IssueComment, newId: Int = 0) /** - * Lists the issue history of the project with [projectId] for the past [days]. + * Lists the issue history, optionally restricted to [project], for the past [days]. */ - fun listIssueHistory(projectId: Int, days: Int): List + fun listIssueHistory(project: Project?, days: Int): List /** - * Lists the issue comment history of the project with [projectId] for the past [days]. + * Lists the issue comment history, optionally restricted to [project], for the past [days]. */ - fun listIssueCommentHistory(projectId: Int, days: Int): List + fun listIssueCommentHistory(project: Project?, days: Int): List fun listCommitRefs(issue: Issue): List }