001// -------------------------------------------------------------------------------- 002// Copyright 2002-2024 Echo Three, LLC 003// 004// Licensed under the Apache License, Version 2.0 (the "License"); 005// you may not use this file except in compliance with the License. 006// You may obtain a copy of the License at 007// 008// http://www.apache.org/licenses/LICENSE-2.0 009// 010// Unless required by applicable law or agreed to in writing, software 011// distributed under the License is distributed on an "AS IS" BASIS, 012// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013// See the License for the specific language governing permissions and 014// limitations under the License. 015// -------------------------------------------------------------------------------- 016 017package com.echothree.model.control.document.common.transfer; 018 019import com.echothree.model.control.core.common.transfer.MimeTypeTransfer; 020import com.echothree.util.common.persistence.type.ByteArray; 021import com.echothree.util.common.transfer.BaseTransfer; 022 023public class DocumentTransfer 024 extends BaseTransfer { 025 026 private String documentName; 027 private DocumentTypeTransfer documentType; 028 private MimeTypeTransfer mimeType; 029 private Integer pages; 030 private String description; 031 private ByteArray blob; 032 private String clob; 033 private String eTag; 034 035 /** Creates a new instance of DocumentTransfer */ 036 public DocumentTransfer(String documentName, DocumentTypeTransfer documentType, MimeTypeTransfer mimeType, Integer pages, String description, 037 ByteArray blob, String clob, String eTag) { 038 this.documentName = documentName; 039 this.documentType = documentType; 040 this.mimeType = mimeType; 041 this.pages = pages; 042 this.description = description; 043 this.blob = blob; 044 this.clob = clob; 045 this.eTag = eTag; 046 } 047 048 /** 049 * Returns the documentName. 050 * @return the documentName 051 */ 052 public String getDocumentName() { 053 return documentName; 054 } 055 056 /** 057 * Sets the documentName. 058 * @param documentName the documentName to set 059 */ 060 public void setDocumentName(String documentName) { 061 this.documentName = documentName; 062 } 063 064 /** 065 * Returns the documentType. 066 * @return the documentType 067 */ 068 public DocumentTypeTransfer getDocumentType() { 069 return documentType; 070 } 071 072 /** 073 * Sets the documentType. 074 * @param documentType the documentType to set 075 */ 076 public void setDocumentType(DocumentTypeTransfer documentType) { 077 this.documentType = documentType; 078 } 079 080 /** 081 * Returns the mimeType. 082 * @return the mimeType 083 */ 084 public MimeTypeTransfer getMimeType() { 085 return mimeType; 086 } 087 088 /** 089 * Sets the mimeType. 090 * @param mimeType the mimeType to set 091 */ 092 public void setMimeType(MimeTypeTransfer mimeType) { 093 this.mimeType = mimeType; 094 } 095 096 /** 097 * Returns the pages. 098 * @return the pages 099 */ 100 public Integer getPages() { 101 return pages; 102 } 103 104 /** 105 * Sets the pages. 106 * @param pages the pages to set 107 */ 108 public void setPages(Integer pages) { 109 this.pages = pages; 110 } 111 112 /** 113 * Returns the description. 114 * @return the description 115 */ 116 public String getDescription() { 117 return description; 118 } 119 120 /** 121 * Sets the description. 122 * @param description the description to set 123 */ 124 public void setDescription(String description) { 125 this.description = description; 126 } 127 128 /** 129 * Returns the blob. 130 * @return the blob 131 */ 132 public ByteArray getBlob() { 133 return blob; 134 } 135 136 /** 137 * Sets the blob. 138 * @param blob the blob to set 139 */ 140 public void setBlob(ByteArray blob) { 141 this.blob = blob; 142 } 143 144 /** 145 * Returns the clob. 146 * @return the clob 147 */ 148 public String getClob() { 149 return clob; 150 } 151 152 /** 153 * Sets the clob. 154 * @param clob the clob to set 155 */ 156 public void setClob(String clob) { 157 this.clob = clob; 158 } 159 160 /** 161 * Returns the eTag. 162 * @return the eTag 163 */ 164 public String geteTag() { 165 return eTag; 166 } 167 168 /** 169 * Sets the eTag. 170 * @param eTag the eTag to set 171 */ 172 public void seteTag(String eTag) { 173 this.eTag = eTag; 174 } 175 176}