Class File
java.lang.Object
fr.paris.lutece.portal.business.file.File
- All Implemented Interfaces:
Serializable
class File
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget file keyintDeprecated.get originintgetSize()getTitle()getUrl()get urlvoidsetDateCreation(Timestamp dateCreation) set the creation date of the filevoidsetExtension(String extension) set the extension of the filevoidsetFileKey(String strFileKey) set file keyvoidsetIdFile(int idFile) Deprecated.voidsetMimeType(String mimeType) set the mime type of the filevoidset originvoidsetPhysicalFile(PhysicalFile file) set the PhysicalFile associate to the filevoidsetSize(int size) set the size of the filevoidset the title of the filevoidset url
-
Constructor Details
-
File
public File()
-
-
Method Details
-
getFileKey
get file key- Returns:
- the key
-
setFileKey
set file key- Parameters:
strFileKey-
-
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.This method should be used for backward compatibility only- Parameters:
idFile- id of the file
-
getTitle
- Returns:
- the title of the file
-
setTitle
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
- Returns:
- the extension of the file
-
setExtension
set the extension of the file- Parameters:
extension- the title of the file
-
getMimeType
- Returns:
- the extension of the file
-
setMimeType
set the mime type of the file- Parameters:
mimeType- the mime type of the file
-
getPhysicalFile
- Returns:
- the PhysicalFile associate to the file
-
setPhysicalFile
set the PhysicalFile associate to the file- Parameters:
file- PhysicalFile
-
getDateCreation
- Returns:
- the creation date of the file
-
setDateCreation
set the creation date of the file- Parameters:
dateCreation- the creation date of the file
-
getUrl
get url- Returns:
- the url
-
setUrl
set url- Parameters:
strUrl- the url to set
-
getOrigin
get origin- Returns:
- the origin
-
setOrigin
set origin- Parameters:
_strOrigin-
-