Line data Source code
1 : // Copyright (C) 2014 The Android Open Source Project 2 : // 3 : // Licensed under the Apache License, Version 2.0 (the "License"); 4 : // you may not use this file except in compliance with the License. 5 : // You may obtain a copy of the License at 6 : // 7 : // http://www.apache.org/licenses/LICENSE-2.0 8 : // 9 : // Unless required by applicable law or agreed to in writing, software 10 : // distributed under the License is distributed on an "AS IS" BASIS, 11 : // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 : // See the License for the specific language governing permissions and 13 : // limitations under the License. 14 : 15 : package com.google.gerrit.extensions.client; 16 : 17 : /* Current state within the basic workflow of the change **/ 18 153 : public enum ChangeStatus { 19 : 20 : /** 21 : * Change is open and pending review, or review is in progress. 22 : * 23 : * <p>This is the default state assigned to a change when it is first created in the database. A 24 : * change stays in the NEW state throughout its review cycle, until the change is submitted or 25 : * abandoned. 26 : * 27 : * <p>Changes in the NEW state can be moved to: 28 : * 29 : * <ul> 30 : * <li>{@link #MERGED} - when the Submit Patch Set action is used; 31 : * <li>{@link #ABANDONED} - when the Abandon action is used. 32 : * </ul> 33 : */ 34 153 : NEW, 35 : 36 : /** 37 : * Change is closed, and submitted to its destination branch. 38 : * 39 : * <p>Once a change has been merged, it cannot be further modified by adding a replacement patch 40 : * set. Draft comments however may be published, supporting a post-submit review. 41 : */ 42 153 : MERGED, 43 : 44 : /** 45 : * Change is closed, but was not submitted to its destination branch. 46 : * 47 : * <p>Once a change has been abandoned, it cannot be further modified by adding a replacement 48 : * patch set, and it cannot be merged. Draft comments however may be published, permitting 49 : * reviewers to send constructive feedback. 50 : * 51 : * <p>Changes in the ABANDONED state can be moved to: 52 : * 53 : * <ul> 54 : * <li>{@link #NEW} - when the Restore action is used. 55 : * </ul> 56 : */ 57 153 : ABANDONED 58 : }