001package org.kuali.ole.docstore.model.xmlpojo.ingest; 002 003 004import java.util.ArrayList; 005import java.util.List; 006 007/** 008 * User: tirumalesh.b 009 * Date: 9/2/12 Time: 7:50 PM 010 */ 011public class ResponseDocument { 012 private List<LinkInformation> linkInformation; 013 private List<ResponseDocument> linkedDocuments = new ArrayList<ResponseDocument>(); 014 private List<ResponseDocument> linkedInstanceDocuments = new ArrayList<ResponseDocument>(); 015 private String id; 016 private String category; 017 private String type; 018 private String format; 019 private String uuid; 020 private Content content; 021 022 //New fields for License 023 024 private String documentName; 025 private String documentTitle; 026 private String documentMimeType; 027 private String status; 028 private String statusMessage; 029 private String version; 030 private AdditionalAttributes additionalAttributes; 031 032 public AdditionalAttributes getAdditionalAttributes() { 033 return additionalAttributes; 034 } 035 036 public void setAdditionalAttributes(AdditionalAttributes additionalAttributes) { 037 this.additionalAttributes = additionalAttributes; 038 } 039 040 public String getVersion() { 041 return version; 042 } 043 044 public void setVersion(String version) { 045 this.version = version; 046 } 047 048 public List<ResponseDocument> getLinkedInstanceDocuments() { 049 return linkedInstanceDocuments; 050 } 051 052 public void setLinkedInstanceDocuments(List<ResponseDocument> linkedInstanceDocuments) { 053 this.linkedInstanceDocuments = linkedInstanceDocuments; 054 } 055 056 public List<ResponseDocument> getLinkedDocuments() { 057 return linkedDocuments; 058 } 059 060 public void setLinkedDocuments(List<ResponseDocument> linkedDocuments) { 061 this.linkedDocuments = linkedDocuments; 062 } 063 064 public Content getContent() { 065 return content; 066 } 067 068 public void setContent(Content content) { 069 this.content = content; 070 } 071 072 public List<LinkInformation> getLinkInformation() { 073 return linkInformation; 074 } 075 076 public void setLinkInformation(List<LinkInformation> linkInformation) { 077 this.linkInformation = linkInformation; 078 } 079 080 public String getId() { 081 return id; 082 } 083 084 public void setId(String id) { 085 this.id = id; 086 } 087 088 public String getCategory() { 089 return category; 090 } 091 092 public void setCategory(String category) { 093 this.category = category; 094 } 095 096 public String getType() { 097 return type; 098 } 099 100 public void setType(String type) { 101 this.type = type; 102 } 103 104 public String getFormat() { 105 return format; 106 } 107 108 public void setFormat(String format) { 109 this.format = format; 110 } 111 112 public String getUuid() { 113 return uuid; 114 } 115 116 public void setUuid(String uuid) { 117 this.uuid = uuid; 118 } 119 120 public String getDocumentMimeType() { 121 return documentMimeType; 122 } 123 124 public void setDocumentMimeType(String documentMimeType) { 125 this.documentMimeType = documentMimeType; 126 } 127 128 public String getDocumentName() { 129 return documentName; 130 } 131 132 public void setDocumentName(String documentName) { 133 this.documentName = documentName; 134 } 135 136 public String getDocumentTitle() { 137 return documentTitle; 138 } 139 140 public void setDocumentTitle(String documentTitle) { 141 this.documentTitle = documentTitle; 142 } 143 144 public String getStatus() { 145 return status; 146 } 147 148 public void setStatus(String status) { 149 this.status = status; 150 } 151 152 public String getStatusMessage() { 153 return statusMessage; 154 } 155 156 public void setStatusMessage(String statusMessage) { 157 this.statusMessage = statusMessage; 158 } 159 160 public void addLinkedDocument(ResponseDocument responseDocument) { 161 if (!linkedDocuments.contains(responseDocument)) { 162 this.linkedDocuments.add(responseDocument); 163 } 164 } 165 166 public void addLinkedInstanseDocument(ResponseDocument responseDocument) { 167 if (!linkedInstanceDocuments.contains(responseDocument)) { 168 this.linkedInstanceDocuments.add(responseDocument); 169 } 170 } 171}