Sun, 24 May 2020 15:30:43 +0200
adds project overview page
universe@38 | 1 | /* |
universe@38 | 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
universe@38 | 3 | * |
universe@38 | 4 | * Copyright 2018 Mike Becker. All rights reserved. |
universe@38 | 5 | * |
universe@38 | 6 | * Redistribution and use in source and binary forms, with or without |
universe@38 | 7 | * modification, are permitted provided that the following conditions are met: |
universe@38 | 8 | * |
universe@38 | 9 | * 1. Redistributions of source code must retain the above copyright |
universe@38 | 10 | * notice, this list of conditions and the following disclaimer. |
universe@38 | 11 | * |
universe@38 | 12 | * 2. Redistributions in binary form must reproduce the above copyright |
universe@38 | 13 | * notice, this list of conditions and the following disclaimer in the |
universe@38 | 14 | * documentation and/or other materials provided with the distribution. |
universe@38 | 15 | * |
universe@38 | 16 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
universe@38 | 17 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
universe@38 | 18 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
universe@38 | 19 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE |
universe@38 | 20 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
universe@38 | 21 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
universe@38 | 22 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
universe@38 | 23 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
universe@38 | 24 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
universe@38 | 25 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
universe@38 | 26 | * POSSIBILITY OF SUCH DAMAGE. |
universe@38 | 27 | * |
universe@38 | 28 | */ |
universe@38 | 29 | package de.uapcore.lightpit.dao; |
universe@38 | 30 | |
universe@38 | 31 | import de.uapcore.lightpit.entities.Project; |
universe@59 | 32 | import de.uapcore.lightpit.entities.Version; |
universe@80 | 33 | import de.uapcore.lightpit.entities.VersionStatistics; |
universe@38 | 34 | |
universe@59 | 35 | import java.sql.SQLException; |
universe@59 | 36 | import java.util.List; |
universe@59 | 37 | |
universe@62 | 38 | public interface VersionDao extends GenericDao<Version> { |
universe@59 | 39 | |
universe@59 | 40 | /** |
universe@59 | 41 | * Lists all versions for the specified project. |
universe@72 | 42 | * |
universe@59 | 43 | * @param project the project |
universe@59 | 44 | * @return a list of versions |
universe@59 | 45 | * @throws SQLException on any kind of SQL error |
universe@59 | 46 | */ |
universe@59 | 47 | List<Version> list(Project project) throws SQLException; |
universe@80 | 48 | |
universe@80 | 49 | /** |
universe@80 | 50 | * Retrieves statistics about issues that arose in a version. |
universe@80 | 51 | * |
universe@80 | 52 | * @param version the version |
universe@80 | 53 | * @return version statistics |
universe@80 | 54 | * @throws SQLException on any kind of SQL error |
universe@80 | 55 | */ |
universe@80 | 56 | VersionStatistics statsOpenedIssues(Version version) throws SQLException; |
universe@80 | 57 | |
universe@80 | 58 | /** |
universe@80 | 59 | * Retrieves statistics about issues that are scheduled for a version. |
universe@80 | 60 | * |
universe@80 | 61 | * @param version the version |
universe@80 | 62 | * @return version statistics |
universe@80 | 63 | * @throws SQLException on any kind of SQL error |
universe@80 | 64 | */ |
universe@80 | 65 | VersionStatistics statsScheduledIssues(Version version) throws SQLException; |
universe@80 | 66 | |
universe@80 | 67 | /** |
universe@80 | 68 | * Retrieves statistics about issues that are resolved in a version. |
universe@80 | 69 | * |
universe@80 | 70 | * @param version the version |
universe@80 | 71 | * @return version statistics |
universe@80 | 72 | * @throws SQLException on any kind of SQL error |
universe@80 | 73 | */ |
universe@80 | 74 | VersionStatistics statsResolvedIssues(Version version) throws SQLException; |
universe@38 | 75 | } |