Line data Source code
1 : // Copyright (C) 2010 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.server.data; 16 : 17 : import com.google.gerrit.entities.Change; 18 : import com.google.gerrit.extensions.common.PluginDefinedInfo; 19 : import com.google.gson.annotations.SerializedName; 20 : import java.util.List; 21 : 22 : /** 23 : * A selection of change properties used in events. Suitable for serialization to JSON. 24 : * 25 : * @see com.google.gerrit.server.events.EventFactory 26 : */ 27 11 : public class ChangeAttribute { 28 : public String project; 29 : public String branch; 30 : public String topic; 31 : public String id; 32 : public int number; 33 : public String subject; 34 : public AccountAttribute owner; 35 : public AccountAttribute assignee; 36 : public String url; 37 : public String commitMessage; 38 : public List<String> hashtags; 39 : public Integer cherryPickOfChange; 40 : public Integer cherryPickOfPatchSet; 41 : 42 : public Long createdOn; 43 : public Long lastUpdated; 44 : public Boolean open; 45 : public Change.Status status; 46 : public List<MessageAttribute> comments; 47 : public Boolean wip; 48 : 49 : @SerializedName("private") 50 : public Boolean isPrivate; 51 : 52 : public List<TrackingIdAttribute> trackingIds; 53 : public PatchSetAttribute currentPatchSet; 54 : public List<PatchSetAttribute> patchSets; 55 : 56 : public List<DependencyAttribute> dependsOn; 57 : public List<DependencyAttribute> neededBy; 58 : public List<SubmitRecordAttribute> submitRecords; 59 : public List<AccountAttribute> allReviewers; 60 : public List<PluginDefinedInfo> plugins; 61 : }