Class UserPortalFileViewModel
java.lang.Object
de.xima.fc.gui.model.portal.UserPortalFileViewModel
- All Implemented Interfaces:
Serializable
A temporary file stored on the file system.
- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUserPortalFileViewModel(UserPortalFileEntityViewModel entity, Path path, String fileName, long size, String contentType, Instant lastModified) -
Method Summary
-
Constructor Details
-
UserPortalFileViewModel
public UserPortalFileViewModel(UserPortalFileEntityViewModel entity, Path path, String fileName, long size, String contentType, Instant lastModified)
-
-
Method Details
-
getContentType
-
getEntity
The entity associated with the file. This is used to identify the entity with the file in the database.- Returns:
- The entity associated with the file, or
nullif the file is not associated with an entity (yet).
-
getFileName
-
getLastModified
Gets the file's last modified date.- Returns:
- The file's last modified date.
-
getPath
The file's path on the file system.- Returns:
- The file's path on the file system.
-
getSize
public long getSize()The file's size in bytes.- Returns:
- The file's size in bytes.
-
getSizeInt
public int getSizeInt()The file's size in bytes, as an integer.- Returns:
- The file's size in bytes.
-