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 Details

    • init

      void init(org.springframework.web.multipart.MultipartFile multipartFile) throws Exception
      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

      void setId(String id)
      See Also:
    • getName

      String getName()
      The name of the file
      Returns:
    • setName

      void setName(String name)
      See Also:
    • getContentType

      String getContentType()
      The content type of the file
      Returns:
    • setContentType

      void setContentType(String contentType)
      See Also:
    • getSize

      Long getSize()
      The size of the file (in bytes)
      Returns:
    • setSize

      void setSize(Long size)
      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

      void setDateUploaded(Date dateUploaded)
      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

      void setUrl(String url)
      See Also: