001package ch.gbrain.gwtstorage.manager; 002 003/* 004 * #%L 005 * GwtStorage 006 * %% 007 * Copyright (C) 2016 gbrain.ch 008 * %% 009 * Licensed under the Apache License, Version 2.0 (the "License"); 010 * you may not use this file except in compliance with the License. 011 * You may obtain a copy of the License at 012 * 013 * http://www.apache.org/licenses/LICENSE-2.0 014 * 015 * Unless required by applicable law or agreed to in writing, software 016 * distributed under the License is distributed on an "AS IS" BASIS, 017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 018 * See the License for the specific language governing permissions and 019 * limitations under the License. 020 * #L% 021 */ 022 023import java.util.Date; 024 025/** 026 * Holds some informations about a cached StorageObject 027 * 028 */ 029public class StorageInfo 030{ 031 032 private String storageKey; 033 private String version; 034 private String fileName; 035 private String filePath; 036 private String fileUrl; 037 private Long fileSize; 038 private Date lastModificationDate; 039 040 public String getStorageKey() 041 { 042 return storageKey; 043 } 044 045 public void setStorageKey(String storageKey) 046 { 047 this.storageKey = storageKey; 048 } 049 050 public String getVersion() 051 { 052 return version; 053 } 054 055 public void setVersion(String version) 056 { 057 this.version = version; 058 } 059 060 public String getFileName() 061 { 062 return fileName; 063 } 064 065 public void setFileName(String fileName) 066 { 067 this.fileName = fileName; 068 } 069 070 public String getFilePath() 071 { 072 return filePath; 073 } 074 075 public void setFilePath(String filePath) 076 { 077 this.filePath = filePath; 078 } 079 080 public String getFileUrl() 081 { 082 return fileUrl; 083 } 084 085 public void setFileUrl(String fileUrl) 086 { 087 this.fileUrl = fileUrl; 088 } 089 090 public Date getLastModificationDate() 091 { 092 return lastModificationDate; 093 } 094 095 public void setLastModificationDate(Date lastModificationDate) 096 { 097 this.lastModificationDate = lastModificationDate; 098 } 099 100 public Long getFileSize() 101 { 102 return fileSize; 103 } 104 105 public void setFileSize(Long fileSize) 106 { 107 this.fileSize = fileSize; 108 } 109 110}