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
FileMeta
public void setId(String id)
setId
in interface FileMeta
FileMeta.getId()
public void setName(String name)
setName
in interface FileMeta
FileMeta.getName()
public String getContentType()
getContentType
in interface FileMeta
public void setContentType(String contentType)
setContentType
in interface FileMeta
FileMeta.getContentType()
public void setSize(Long size)
setSize
in interface FileMeta
FileMeta.getSize()
public String getSizeFormatted()
getSizeFormatted
in interface FileMeta
public Date getDateUploaded()
getDateUploaded
in interface FileMeta
public void setDateUploaded(Date dateUploaded)
setDateUploaded
in interface FileMeta
FileMeta.getDateUploaded()
public String getDateUploadedFormatted()
getDateUploadedFormatted
in interface FileMeta
public void setUrl(String url)
setUrl
in interface FileMeta
FileMeta.getUrl()
public org.springframework.web.multipart.MultipartFile getMultipartFile()
public void setMultipartFile(org.springframework.web.multipart.MultipartFile multipartFile)
getMultipartFile()
public Blob getBlob()
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.