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  
25      public String getUser() {
26          return user;
27      }
28  
29      public void setUser(String user) {
30          this.user = user;
31      }
32  
33      public String getUuid() {
34          return uuid;
35      }
36  
37      public void setUuid(String uuid) {
38          this.uuid = uuid;
39      }
40  
41      private String                uuid;
42  
43      private List<RequestDocument> linkedRequestDocuments = new ArrayList<RequestDocument>();
44      private AdditionalAttributes  additionalAttributes;
45  
46      public List<RequestDocument> getLinkedRequestDocuments() {
47          return linkedRequestDocuments;
48      }
49  
50      public void setLinkedRequestDocuments(List<RequestDocument> linkedRequestDocuments) {
51          this.linkedRequestDocuments = linkedRequestDocuments;
52      }
53  
54      public String getOperation() {
55          return operation;
56      }
57  
58      public void setOperation(String operation) {
59          this.operation = operation;
60      }
61  
62      public String getId() {
63          return id;
64      }
65  
66      public void setId(String id) {
67          this.id = id;
68      }
69  
70  
71  
72      public String getCategory() {
73          return category;
74      }
75  
76      public void setCategory(String category) {
77          this.category = category;
78      }
79  
80      public String getType() {
81          return type;
82      }
83  
84      public void setType(String type) {
85          this.type = type;
86      }
87  
88      public String getFormat() {
89          return format;
90      }
91  
92      public void setFormat(String format) {
93          this.format = format;
94      }
95  
96      public Content getContent() {
97          return content;
98      }
99  
100     public void setContent(Content content) {
101         this.content = content;
102     }
103 
104     public String getDocumentMimeType() {
105         return documentMimeType;
106     }
107 
108     public void setDocumentMimeType(String documentMimeType) {
109         this.documentMimeType = documentMimeType;
110     }
111 
112     public String getDocumentName() {
113         return documentName;
114     }
115 
116     public void setDocumentName(String documentName) {
117         this.documentName = documentName;
118     }
119 
120     public String getDocumentTitle() {
121         return documentTitle;
122     }
123 
124     public void setDocumentTitle(String documentTitle) {
125         this.documentTitle = documentTitle;
126     }
127 
128     public AdditionalAttributes getAdditionalAttributes() {
129         return additionalAttributes;
130     }
131 
132     public void setAdditionalAttributes(AdditionalAttributes additionalAttributes) {
133         this.additionalAttributes = additionalAttributes;
134     }
135 
136      public void addLinkedRequestDocument(RequestDocument requestDocument) {
137         if (!linkedRequestDocuments.contains(requestDocument)) {
138             this.linkedRequestDocuments.add(requestDocument);
139         }
140     }
141 
142     @Override
143     public Object clone() {
144         try {
145             return super.clone();
146         } catch (CloneNotSupportedException e) {
147             e.printStackTrace();
148             return null;
149         }
150     }
151 }