View Javadoc

1   package com.atlassian.plugins.rest.doclet.generators.schema.beans.attachment;
2   
3   import java.net.URI;
4   import java.util.Date;
5   import java.util.HashMap;
6   import javax.xml.bind.annotation.XmlElement;
7   import javax.xml.bind.annotation.XmlRootElement;
8   import javax.xml.bind.annotation.adapters.XmlAdapter;
9   import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
10  
11  /**
12   * @since v4.2
13   */
14  @XmlRootElement (name = "attachment")
15  public class AttachmentBean
16  {
17      @XmlElement
18      private URI self;
19  
20      @XmlElement
21      private String filename;
22  
23      @XmlElement
24      private UserBean author;
25  
26      @XmlJavaTypeAdapter (XmlAdapter.class)
27      private Date created;
28  
29      @XmlElement
30      private long size;
31  
32      @XmlElement
33      private String mimeType;
34  
35      // HACK (LGM) changed to a HashMap from PropertySet in order to get doc auto-generation working
36      @XmlElement
37      private HashMap<String, Object> properties;
38  
39      @XmlElement
40      private String content;
41  
42      @XmlElement
43      private String thumbnail;
44  }