001package org.kuali.ole.docstore.model.xmlpojo.ingest;
002
003import java.util.ArrayList;
004import java.util.List;
005
006/**
007 * User: tirumalesh.b
008 * Date: 9/2/12 Time: 7:50 PM
009 */
010public class RequestDocument implements Cloneable {
011    private String id;
012    private String category;
013    private String type;
014    private String format;
015    private String operation;
016    private Content content = new Content();
017
018    //New fields for License
019
020    private String documentName;
021    private String documentTitle;
022    private String documentMimeType;
023    private String user;
024    private String uuid;
025    private List<RequestDocument> linkedRequestDocuments = new ArrayList<RequestDocument>();
026    private AdditionalAttributes additionalAttributes;
027
028    public String getUser() {
029        return user;
030    }
031
032    public void setUser(String user) {
033        this.user = user;
034    }
035
036    public String getUuid() {
037        return uuid;
038    }
039
040    public void setUuid(String uuid) {
041        this.uuid = uuid;
042    }
043
044    public List<RequestDocument> getLinkedRequestDocuments() {
045        return linkedRequestDocuments;
046    }
047
048    public void setLinkedRequestDocuments(List<RequestDocument> linkedRequestDocuments) {
049        this.linkedRequestDocuments = linkedRequestDocuments;
050    }
051
052    public String getOperation() {
053        return operation;
054    }
055
056    public void setOperation(String operation) {
057        this.operation = operation;
058    }
059
060    public String getId() {
061        return id;
062    }
063
064    public void setId(String id) {
065        this.id = id;
066    }
067
068
069    public String getCategory() {
070        return category;
071    }
072
073    public void setCategory(String category) {
074        this.category = category;
075    }
076
077    public String getType() {
078        return type;
079    }
080
081    public void setType(String type) {
082        this.type = type;
083    }
084
085    public String getFormat() {
086        return format;
087    }
088
089    public void setFormat(String format) {
090        this.format = format;
091    }
092
093    public Content getContent() {
094        return content;
095    }
096
097    public void setContent(Content content) {
098        this.content = content;
099    }
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}