View Javadoc

1   package com.atlassian.plugins.rest.doclet.generators.schema.beans.issue;
2   
3   import org.codehaus.jackson.annotate.JsonProperty;
4   import org.codehaus.jackson.map.annotate.JsonSerialize;
5   
6   import java.util.Date;
7   import java.util.List;
8   import javax.xml.bind.annotation.XmlElement;
9   import javax.xml.bind.annotation.adapters.XmlAdapter;
10  import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
11  
12  /**
13   * @since v5.0
14   */
15  public class ChangelogBean
16  {
17      @JsonProperty
18      private Integer startAt;
19  
20      @JsonProperty
21      private Integer maxResults;
22  
23      @JsonProperty
24      private Integer total;
25  
26      @JsonProperty
27      private List<ChangeHistoryBean> histories;
28  
29      public static class ChangeHistoryBean
30      {
31          @JsonProperty
32          private String id;
33  
34          @JsonProperty
35          private UserJsonBean author;
36  
37          @JsonProperty
38          @XmlJavaTypeAdapter (XmlAdapter.class)
39          private Date created;
40  
41          @JsonProperty
42          private List<ChangeItemBean> items;
43  
44          /**
45           * @since JIRA 6.3
46           */
47          @JsonProperty
48          @JsonSerialize (include = JsonSerialize.Inclusion.NON_NULL)
49          @XmlElement (nillable = true)
50          private HistoryMetadata historyMetadata;
51      }
52  
53      public static class ChangeItemBean
54      {
55          @JsonProperty
56          private String field;
57          @JsonProperty
58          private String fieldtype;
59  
60          @JsonProperty
61          @JsonSerialize (include = JsonSerialize.Inclusion.ALWAYS)
62          @XmlElement (nillable = true)
63          private String from;
64          @JsonProperty
65          @JsonSerialize (include = JsonSerialize.Inclusion.ALWAYS)
66          @XmlElement (nillable = true)
67          private String fromString;
68          @JsonProperty
69          @JsonSerialize (include = JsonSerialize.Inclusion.ALWAYS)
70          @XmlElement (nillable = true)
71          private String to;
72          @JsonProperty
73          @JsonSerialize (include = JsonSerialize.Inclusion.ALWAYS)
74          @XmlElement (nillable = true)
75          private String toString;
76      }
77  }