Sun, 21 Jun 2020 11:43:08 +0200
fix: issue status Scheduled belongs to phase 0
universe@62 | 1 | /* |
universe@62 | 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
universe@62 | 3 | * |
universe@62 | 4 | * Copyright 2018 Mike Becker. All rights reserved. |
universe@62 | 5 | * |
universe@62 | 6 | * Redistribution and use in source and binary forms, with or without |
universe@62 | 7 | * modification, are permitted provided that the following conditions are met: |
universe@62 | 8 | * |
universe@62 | 9 | * 1. Redistributions of source code must retain the above copyright |
universe@62 | 10 | * notice, this list of conditions and the following disclaimer. |
universe@62 | 11 | * |
universe@62 | 12 | * 2. Redistributions in binary form must reproduce the above copyright |
universe@62 | 13 | * notice, this list of conditions and the following disclaimer in the |
universe@62 | 14 | * documentation and/or other materials provided with the distribution. |
universe@62 | 15 | * |
universe@62 | 16 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
universe@62 | 17 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
universe@62 | 18 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
universe@62 | 19 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE |
universe@62 | 20 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
universe@62 | 21 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
universe@62 | 22 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
universe@62 | 23 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
universe@62 | 24 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
universe@62 | 25 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
universe@62 | 26 | * POSSIBILITY OF SUCH DAMAGE. |
universe@62 | 27 | * |
universe@62 | 28 | */ |
universe@62 | 29 | package de.uapcore.lightpit.entities; |
universe@62 | 30 | |
universe@62 | 31 | public enum IssueStatus { |
universe@80 | 32 | InSpecification(0), |
universe@80 | 33 | ToDo(0), |
universe@89 | 34 | Scheduled(0), |
universe@80 | 35 | InProgress(1), |
universe@80 | 36 | InReview(1), |
universe@80 | 37 | Done(2), |
universe@80 | 38 | Rejected(2), |
universe@80 | 39 | Withdrawn(2), |
universe@80 | 40 | Duplicate(2); |
universe@80 | 41 | |
universe@81 | 42 | public static final int PHASE_OPEN = 0; |
universe@81 | 43 | public static final int PHASE_WIP = 1; |
universe@81 | 44 | public static final int PHASE_DONE = 2; |
universe@81 | 45 | |
universe@80 | 46 | private int phase; |
universe@80 | 47 | |
universe@80 | 48 | IssueStatus(int phase) { |
universe@80 | 49 | this.phase = phase; |
universe@80 | 50 | } |
universe@80 | 51 | |
universe@80 | 52 | public int getPhase() { |
universe@80 | 53 | return phase; |
universe@80 | 54 | } |
universe@80 | 55 | |
universe@80 | 56 | public static int phaseCount() { |
universe@80 | 57 | return 3; |
universe@80 | 58 | } |
universe@62 | 59 | } |