View Javadoc

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