java.lang.Object
fr.paris.lutece.portal.business.file.File
All Implemented Interfaces:
Serializable

public class File extends Object implements Serializable
class File
See Also:
  • Constructor Details

    • File

      public File()
  • Method Details

    • getFileKey

      public String getFileKey()
      get file key
      Returns:
      the key
    • setFileKey

      public void setFileKey(String strFileKey)
      set file key
      Parameters:
      strFileKey -
    • getIdFile

      @Deprecated public int getIdFile()
      Deprecated.
      This method should be used for backward compatibility only, and could throw NumberFormatException if the key is not numeric
      Returns:
      the id of the file
    • setIdFile

      @Deprecated public void setIdFile(int idFile)
      Deprecated.
      This method should be used for backward compatibility only
      Parameters:
      idFile - id of the file
    • getTitle

      public String getTitle()
      Returns:
      the title of the file
    • setTitle

      public void setTitle(String title)
      set the title of the file
      Parameters:
      title - the title of the file
    • getSize

      public int getSize()
      Returns:
      the size of the file
    • setSize

      public void setSize(int size)
      set the size of the file
      Parameters:
      size - the size of the file
    • getExtension

      public String getExtension()
      Returns:
      the extension of the file
    • setExtension

      public void setExtension(String extension)
      set the extension of the file
      Parameters:
      extension - the title of the file
    • getMimeType

      public String getMimeType()
      Returns:
      the extension of the file
    • setMimeType

      public void setMimeType(String mimeType)
      set the mime type of the file
      Parameters:
      mimeType - the mime type of the file
    • getPhysicalFile

      public PhysicalFile getPhysicalFile()
      Returns:
      the PhysicalFile associate to the file
    • setPhysicalFile

      public void setPhysicalFile(PhysicalFile file)
      set the PhysicalFile associate to the file
      Parameters:
      file - PhysicalFile
    • getDateCreation

      public Timestamp getDateCreation()
      Returns:
      the creation date of the file
    • setDateCreation

      public void setDateCreation(Timestamp dateCreation)
      set the creation date of the file
      Parameters:
      dateCreation - the creation date of the file
    • getUrl

      public String getUrl()
      get url
      Returns:
      the url
    • setUrl

      public void setUrl(String strUrl)
      set url
      Parameters:
      strUrl - the url to set
    • getOrigin

      public String getOrigin()
      get origin
      Returns:
      the origin
    • setOrigin

      public void setOrigin(String strOrigin)
      set origin
      Parameters:
      _strOrigin -