public class FileMetaBlob extends Object implements Serializable, FileMeta
| Constructor and Description |
|---|
FileMetaBlob() |
| Modifier and Type | Method and Description |
|---|---|
Blob |
getBlob()
Get the serialized blob data representing the file
|
String |
getContentType()
The content type of the file
|
Date |
getDateUploaded()
The date the file was uploaded
|
String |
getDateUploadedFormatted()
The file uploaded date formatted ina more readable String format
|
String |
getId()
Unique id of the FileMeta object
|
org.springframework.web.multipart.MultipartFile |
getMultipartFile()
Get the MultipartFile that is populated by the controller during the upload process.
|
String |
getName()
The name of the file
|
Long |
getSize()
The size of the file (in bytes)
|
String |
getSizeFormatted()
The size of the file formatted into a more readable format
|
String |
getUrl()
The url to use to download the file
|
void |
init(org.springframework.web.multipart.MultipartFile multipartFile)
Init method called to initialize the FileMeta object
|
void |
setBlob(Blob blob) |
void |
setContentType(String contentType) |
void |
setDateUploaded(Date dateUploaded) |
void |
setId(String id) |
void |
setMultipartFile(org.springframework.web.multipart.MultipartFile multipartFile) |
void |
setName(String name) |
void |
setSize(Long size) |
void |
setUrl(String url) |
String |
toString() |
public FileMetaBlob()
public void init(org.springframework.web.multipart.MultipartFile multipartFile) throws Exception
FileMetapublic void setId(String id)
setId in interface FileMetaFileMeta.getId()public void setName(String name)
setName in interface FileMetaFileMeta.getName()public String getContentType()
getContentType in interface FileMetapublic void setContentType(String contentType)
setContentType in interface FileMetaFileMeta.getContentType()public void setSize(Long size)
setSize in interface FileMetaFileMeta.getSize()public String getSizeFormatted()
getSizeFormatted in interface FileMetapublic Date getDateUploaded()
getDateUploaded in interface FileMetapublic void setDateUploaded(Date dateUploaded)
setDateUploaded in interface FileMetaFileMeta.getDateUploaded()public String getDateUploadedFormatted()
getDateUploadedFormatted in interface FileMetapublic void setUrl(String url)
setUrl in interface FileMetaFileMeta.getUrl()public org.springframework.web.multipart.MultipartFile getMultipartFile()
public void setMultipartFile(org.springframework.web.multipart.MultipartFile multipartFile)
getMultipartFile()public Blob getBlob()
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.