Package org.kuali.rice.krad.file
Class FileMetaBlob
java.lang.Object
org.kuali.rice.krad.file.FileMetaBlob
- All Implemented Interfaces:
Serializable,FileMeta
Class used for interactions between the controller and form when using the multifile upload widget.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBlob()Get the serialized blob data representing the fileThe content type of the fileThe date the file was uploadedThe file uploaded date formatted ina more readable String formatgetId()Unique id of the FileMeta objectorg.springframework.web.multipart.MultipartFileGet the MultipartFile that is populated by the controller during the upload process.getName()The name of the filegetSize()The size of the file (in bytes)The size of the file formatted into a more readable formatgetUrl()The url to use to download the filevoidinit(org.springframework.web.multipart.MultipartFile multipartFile) Init method called to initialize the FileMeta objectvoidvoidsetContentType(String contentType) voidsetDateUploaded(Date dateUploaded) voidvoidsetMultipartFile(org.springframework.web.multipart.MultipartFile multipartFile) voidvoidvoidtoString()
-
Constructor Details
-
FileMetaBlob
public FileMetaBlob()
-
-
Method Details
-
init
Description copied from interface:FileMetaInit method called to initialize the FileMeta object -
getId
Unique id of the FileMeta object -
setId
-
getName
The name of the file -
setName
-
getContentType
The content type of the file- Specified by:
getContentTypein interfaceFileMeta- Returns:
-
setContentType
- Specified by:
setContentTypein interfaceFileMeta- See Also:
-
getSize
The size of the file (in bytes) -
setSize
-
getSizeFormatted
The size of the file formatted into a more readable format- Specified by:
getSizeFormattedin interfaceFileMeta- Returns:
-
getDateUploaded
The date the file was uploaded- Specified by:
getDateUploadedin interfaceFileMeta- Returns:
-
setDateUploaded
- Specified by:
setDateUploadedin interfaceFileMeta- See Also:
-
getDateUploadedFormatted
The file uploaded date formatted ina more readable String format- Specified by:
getDateUploadedFormattedin interfaceFileMeta- Returns:
-
getUrl
The url to use to download the file -
setUrl
-
getMultipartFile
public org.springframework.web.multipart.MultipartFile getMultipartFile()Get the MultipartFile that is populated by the controller during the upload process.- Returns:
- the MultipartFile object
-
setMultipartFile
public void setMultipartFile(org.springframework.web.multipart.MultipartFile multipartFile) - See Also:
-
getBlob
Get the serialized blob data representing the file- Returns:
- the blob data
-
setBlob
- See Also:
-
toString
-