universe@62: /* universe@62: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. universe@62: * universe@62: * Copyright 2018 Mike Becker. All rights reserved. universe@62: * universe@62: * Redistribution and use in source and binary forms, with or without universe@62: * modification, are permitted provided that the following conditions are met: universe@62: * universe@62: * 1. Redistributions of source code must retain the above copyright universe@62: * notice, this list of conditions and the following disclaimer. universe@62: * universe@62: * 2. Redistributions in binary form must reproduce the above copyright universe@62: * notice, this list of conditions and the following disclaimer in the universe@62: * documentation and/or other materials provided with the distribution. universe@62: * universe@62: * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" universe@62: * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE universe@62: * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE universe@62: * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE universe@62: * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR universe@62: * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF universe@62: * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS universe@62: * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN universe@62: * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) universe@62: * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE universe@62: * POSSIBILITY OF SUCH DAMAGE. universe@62: * universe@62: */ universe@62: package de.uapcore.lightpit.entities; universe@62: universe@62: public enum IssueStatus { universe@80: InSpecification(0), universe@80: ToDo(0), universe@89: Scheduled(0), universe@80: InProgress(1), universe@80: InReview(1), universe@80: Done(2), universe@80: Rejected(2), universe@80: Withdrawn(2), universe@80: Duplicate(2); universe@80: universe@81: public static final int PHASE_OPEN = 0; universe@81: public static final int PHASE_WIP = 1; universe@81: public static final int PHASE_DONE = 2; universe@81: universe@80: private int phase; universe@80: universe@80: IssueStatus(int phase) { universe@80: this.phase = phase; universe@80: } universe@80: universe@80: public int getPhase() { universe@80: return phase; universe@80: } universe@80: universe@80: public static int phaseCount() { universe@80: return 3; universe@80: } universe@62: }