Package org.kuali.rice.krad.file
Interface FileMeta
- All Known Implementing Classes:
FileMetaBlob
public interface FileMeta
The file object interface used by the MultiFileUpload component(s), these component(s) expect objects which
implement this interface.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Method Summary
Modifier and TypeMethodDescriptionThe content type of the fileThe date the file was uploadedThe file uploaded date formatted ina more readable String formatgetId()Unique id of the FileMeta objectgetName()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 objectvoidsetContentType(String contentType) voidsetDateUploaded(Date dateUploaded) voidvoidvoidvoid
-
Method Details
-
init
Init method called to initialize the FileMeta object- Parameters:
multipartFile- the file this object contains or represents- Throws:
Exception
-
getId
String getId()Unique id of the FileMeta object- Returns:
-
setId
- See Also:
-
getName
String getName()The name of the file- Returns:
-
setName
- See Also:
-
getContentType
String getContentType()The content type of the file- Returns:
-
setContentType
- See Also:
-
getSize
Long getSize()The size of the file (in bytes)- Returns:
-
setSize
- See Also:
-
getSizeFormatted
String getSizeFormatted()The size of the file formatted into a more readable format- Returns:
-
getDateUploaded
Date getDateUploaded()The date the file was uploaded- Returns:
-
setDateUploaded
- See Also:
-
getDateUploadedFormatted
String getDateUploadedFormatted()The file uploaded date formatted ina more readable String format- Returns:
-
getUrl
String getUrl()The url to use to download the file- Returns:
- the url of the file download
-
setUrl
- See Also:
-