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.core.common.transfer; 018 019import com.echothree.util.common.persistence.type.ByteArray; 020import com.echothree.util.common.transfer.BaseTransfer; 021import com.echothree.util.common.transfer.ListWrapper; 022 023public class CacheEntryTransfer 024 extends BaseTransfer { 025 026 private String cacheEntryKey; 027 private MimeTypeTransfer mimeType; 028 private String createdTime; 029 private Long unformattedCreatedTime; 030 private String validUntilTime; 031 private Long unformattedValidUntilTime; 032 private String clob; 033 private ByteArray blob; 034 035 private ListWrapper<CacheEntryDependencyTransfer> cacheEntryDependencies; 036 037 /** Creates a new instance of CacheEntryTransfer */ 038 public CacheEntryTransfer(String cacheEntryKey, MimeTypeTransfer mimeType, String createdTime, Long unformattedCreatedTime, String validUntilTime, 039 Long unformattedValidUntilTime, String clob, ByteArray blob) { 040 this.cacheEntryKey = cacheEntryKey; 041 this.mimeType = mimeType; 042 this.createdTime = createdTime; 043 this.unformattedCreatedTime = unformattedCreatedTime; 044 this.validUntilTime = validUntilTime; 045 this.unformattedValidUntilTime = unformattedValidUntilTime; 046 this.clob = clob; 047 this.blob = blob; 048 } 049 050 /** 051 * Returns the cacheEntryKey. 052 * @return the cacheEntryKey 053 */ 054 public String getCacheEntryKey() { 055 return cacheEntryKey; 056 } 057 058 /** 059 * Sets the cacheEntryKey. 060 * @param cacheEntryKey the cacheEntryKey to set 061 */ 062 public void setCacheEntryKey(String cacheEntryKey) { 063 this.cacheEntryKey = cacheEntryKey; 064 } 065 066 /** 067 * Returns the mimeType. 068 * @return the mimeType 069 */ 070 public MimeTypeTransfer getMimeType() { 071 return mimeType; 072 } 073 074 /** 075 * Sets the mimeType. 076 * @param mimeType the mimeType to set 077 */ 078 public void setMimeType(MimeTypeTransfer mimeType) { 079 this.mimeType = mimeType; 080 } 081 082 /** 083 * Returns the createdTime. 084 * @return the createdTime 085 */ 086 public String getCreatedTime() { 087 return createdTime; 088 } 089 090 /** 091 * Sets the createdTime. 092 * @param createdTime the createdTime to set 093 */ 094 public void setCreatedTime(String createdTime) { 095 this.createdTime = createdTime; 096 } 097 098 /** 099 * Returns the unformattedCreatedTime. 100 * @return the unformattedCreatedTime 101 */ 102 public Long getUnformattedCreatedTime() { 103 return unformattedCreatedTime; 104 } 105 106 /** 107 * Sets the unformattedCreatedTime. 108 * @param unformattedCreatedTime the unformattedCreatedTime to set 109 */ 110 public void setUnformattedCreatedTime(Long unformattedCreatedTime) { 111 this.unformattedCreatedTime = unformattedCreatedTime; 112 } 113 114 /** 115 * Returns the validUntilTime. 116 * @return the validUntilTime 117 */ 118 public String getValidUntilTime() { 119 return validUntilTime; 120 } 121 122 /** 123 * Sets the validUntilTime. 124 * @param validUntilTime the validUntilTime to set 125 */ 126 public void setValidUntilTime(String validUntilTime) { 127 this.validUntilTime = validUntilTime; 128 } 129 130 /** 131 * Returns the unformattedValidUntilTime. 132 * @return the unformattedValidUntilTime 133 */ 134 public Long getUnformattedValidUntilTime() { 135 return unformattedValidUntilTime; 136 } 137 138 /** 139 * Sets the unformattedValidUntilTime. 140 * @param unformattedValidUntilTime the unformattedValidUntilTime to set 141 */ 142 public void setUnformattedValidUntilTime(Long unformattedValidUntilTime) { 143 this.unformattedValidUntilTime = unformattedValidUntilTime; 144 } 145 146 /** 147 * Returns the clob. 148 * @return the clob 149 */ 150 public String getClob() { 151 return clob; 152 } 153 154 /** 155 * Sets the clob. 156 * @param clob the clob to set 157 */ 158 public void setClob(String clob) { 159 this.clob = clob; 160 } 161 162 /** 163 * Returns the blob. 164 * @return the blob 165 */ 166 public ByteArray getBlob() { 167 return blob; 168 } 169 170 /** 171 * Sets the blob. 172 * @param blob the blob to set 173 */ 174 public void setBlob(ByteArray blob) { 175 this.blob = blob; 176 } 177 178 /** 179 * Returns the cacheEntryDependencies. 180 * @return the cacheEntryDependencies 181 */ 182 public ListWrapper<CacheEntryDependencyTransfer> getCacheEntryDependencies() { 183 return cacheEntryDependencies; 184 } 185 186 /** 187 * Sets the cacheEntryDependencies. 188 * @param cacheEntryDependencies the cacheEntryDependencies to set 189 */ 190 public void setCacheEntryDependencies(ListWrapper<CacheEntryDependencyTransfer> cacheEntryDependencies) { 191 this.cacheEntryDependencies = cacheEntryDependencies; 192 } 193 194}