View Javadoc
1   package org.kuali.ole.docstore.model.xmlpojo.ingest;
2   
3   import java.util.ArrayList;
4   import java.util.List;
5   
6   /**
7    * User: tirumalesh.b
8    * Date: 9/2/12 Time: 7:50 PM
9    */
10  public class RequestDocument implements Cloneable {
11      private String id;
12      private String category;
13      private String type;
14      private String format;
15      private String operation;
16      private Content content = new Content();
17  
18      //New fields for License
19  
20      private String documentName;
21      private String documentTitle;
22      private String documentMimeType;
23      private String user;
24      private String uuid;
25      private List<RequestDocument> linkedRequestDocuments = new ArrayList<RequestDocument>();
26      private AdditionalAttributes additionalAttributes;
27  
28      public String getUser() {
29          return user;
30      }
31  
32      public void setUser(String user) {
33          this.user = user;
34      }
35  
36      public String getUuid() {
37          return uuid;
38      }
39  
40      public void setUuid(String uuid) {
41          this.uuid = uuid;
42      }
43  
44      public List<RequestDocument> getLinkedRequestDocuments() {
45          return linkedRequestDocuments;
46      }
47  
48      public void setLinkedRequestDocuments(List<RequestDocument> linkedRequestDocuments) {
49          this.linkedRequestDocuments = linkedRequestDocuments;
50      }
51  
52      public String getOperation() {
53          return operation;
54      }
55  
56      public void setOperation(String operation) {
57          this.operation = operation;
58      }
59  
60      public String getId() {
61          return id;
62      }
63  
64      public void setId(String id) {
65          this.id = id;
66      }
67  
68  
69      public String getCategory() {
70          return category;
71      }
72  
73      public void setCategory(String category) {
74          this.category = category;
75      }
76  
77      public String getType() {
78          return type;
79      }
80  
81      public void setType(String type) {
82          this.type = type;
83      }
84  
85      public String getFormat() {
86          return format;
87      }
88  
89      public void setFormat(String format) {
90          this.format = format;
91      }
92  
93      public Content getContent() {
94          return content;
95      }
96  
97      public void setContent(Content content) {
98          this.content = content;
99      }
100 
101     public String getDocumentMimeType() {
102         return documentMimeType;
103     }
104 
105     public void setDocumentMimeType(String documentMimeType) {
106         this.documentMimeType = documentMimeType;
107     }
108 
109     public String getDocumentName() {
110         return documentName;
111     }
112 
113     public void setDocumentName(String documentName) {
114         this.documentName = documentName;
115     }
116 
117     public String getDocumentTitle() {
118         return documentTitle;
119     }
120 
121     public void setDocumentTitle(String documentTitle) {
122         this.documentTitle = documentTitle;
123     }
124 
125     public AdditionalAttributes getAdditionalAttributes() {
126         return additionalAttributes;
127     }
128 
129     public void setAdditionalAttributes(AdditionalAttributes additionalAttributes) {
130         this.additionalAttributes = additionalAttributes;
131     }
132 
133     public void addLinkedRequestDocument(RequestDocument requestDocument) {
134         if (!linkedRequestDocuments.contains(requestDocument)) {
135             this.linkedRequestDocuments.add(requestDocument);
136         }
137     }
138 
139     @Override
140     public Object clone() {
141         try {
142             return super.clone();
143         } catch (CloneNotSupportedException e) {
144             e.printStackTrace();
145             return null;
146         }
147     }
148 }